CSQ Docs
    CSQ Docs
    eVSB
    • eVSB
    • Back to home
    • Location Based Products
    • Get Labels
      GET
    • Get Countries
      GET
    • Get Categories
      GET
    • Get States
      GET
    • Get Municipalities
      GET
    • Get Deliver Locations
      GET
    • Get Products
      GET
    • Create Cart
      POST
    • Purchase
      POST
    • Get Orders
      GET
    • Get Order Status
      GET

      Purchase

      POST
      /physical-products/purchase/{terminalId}/{operatorId}/{localReference}
      physical-product-controller
      Finalizes the purchase using a previously created cart.

      Request

      Path Params
      terminalId
      integer <int32>
      required
      operatorId
      integer <int32>
      required
      localReference
      integer <int32>
      required
      Header Params
      U
      string 
      required
      Default:
      {{U}}
      SH
      string 
      required
      Default:
      {{SH}}
      ST
      string 
      required
      Default:
      {{ST}}
      Body Params application/json
      amountToSendX100
      integer <int32>
      optional
      destinationAmountX100
      integer <int32>
      optional
      serviceFeeX100
      integer <int32>
      optional
      totalAmountX100
      integer <int32>
      optional
      destinationCurrency
      string 
      optional
      localDateTime
      string <date-time>
      optional
      senderPhoneNumber
      string 
      optional
      cartId
      string 
      optional
      Example
      {
          "amountToSendX100": 0,
          "destinationAmountX100": 0,
          "serviceFeeX100": 0,
          "totalAmountX100": 0,
          "destinationCurrency": "string",
          "localDateTime": "2019-08-24T14:15:22Z",
          "senderPhoneNumber": "string",
          "cartId": "string"
      }

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'http://evsbus.csqworld.com/physical-products/purchase///' \
      --header 'U;' \
      --header 'SH;' \
      --header 'ST;' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "amountToSendX100": 0,
          "destinationAmountX100": 0,
          "serviceFeeX100": 0,
          "totalAmountX100": 0,
          "destinationCurrency": "string",
          "localDateTime": "2019-08-24T14:15:22Z",
          "senderPhoneNumber": "string",
          "cartId": "string"
      }'

      Responses

      🟢200OK
      application/json
      OK
      Body
      rc
      integer <int32>
      optional
      items
      array [object {6}] 
      optional
      finalstatus
      integer <int32>
      optional
      resultcode
      string 
      optional
      resultmessage
      string 
      optional
      supplierreference
      string  | null 
      optional
      destinationcurrency
      string  | null 
      optional
      destinationamount
      number  | null 
      optional
      Example
      {
          "rc": 0,
          "items": [
              {
                  "finalstatus": 0,
                  "resultcode": "string",
                  "resultmessage": "string",
                  "supplierreference": "string",
                  "destinationcurrency": "string",
                  "destinationamount": 0
              }
          ]
      }
      Modified at 2025-06-18 15:04:49
      Previous
      Create Cart
      Next
      Get Orders
      Built with