eshopUpdate

PUThttps://api.twisto.pl/psp/v2/eshop/{eshopId}/

Update all values of an e-shop specified by its identifier

Security: Token Auth

Provide your auth token in the Authorization header when making requests to protected resources.
Example: Authorization: Token 123

Path Parameters

Param nameTypeDescriptionRequiredDefault valuesMin/Max values
eshopIdstringE-shop identifiertrue

Request body

  • id: integer
    required

    Identifier

  • name: string
    required

    Name

    <= 50 characters
  • url: string<uri>
    required

    E-shop's website URL

    <= 255 characters
  • merchant_id: integer or null
    required

    Identifier of a linked merchant

  • external_id: string or null
    required

    External ID provided by PSP

    <= 255 characters
  • mcc: integer or null

    MCC code used by PSP

    >= 0 <= 2147483647
  • is_blocked: boolean
    required

    True if and only if e-shop is blocked from performing new orders

  • services: array[object]
    • type: string
      required
      Allowed values: twisto-pay pay-in-three 
    • immediate_activation: boolean or null

      Order is activated immediately without waiting for a confirmation message. Overrides PaymentProcessor config.

Request Body example

{ "id": 75, "name": "string", "url": "http://api.example.org/accounts/?skip=400&limit=100", "merchant_id": 69, "external_id": "string", "mcc": 817, "is_blocked": false, "services": [ { "type": "twisto-pay", "immediate_activation": true } ] }

Responses

Body

  • id: integer
    required

    Identifier

  • name: string
    required

    Name

    <= 50 characters
  • url: string<uri>
    required

    E-shop's website URL

    <= 255 characters
  • merchant_id: integer or null
    required

    Identifier of a linked merchant

  • external_id: string or null
    required

    External ID provided by PSP

    <= 255 characters
  • mcc: integer or null

    MCC code used by PSP

    >= 0 <= 2147483647
  • is_blocked: boolean
    required

    True if and only if e-shop is blocked from performing new orders

  • services: array[object]
    • type: string
      required
      Allowed values: twisto-pay pay-in-three 
    • immediate_activation: boolean or null

      Order is activated immediately without waiting for a confirmation message. Overrides PaymentProcessor config.

Response example

{ "id": 974, "name": "string", "url": "http://api.example.org/accounts/?skip=400&limit=100", "merchant_id": 168, "external_id": "string", "mcc": 377, "is_blocked": false, "services": [ { "type": "twisto-pay", "immediate_activation": true } ] }