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

      Create Cart

      POST
      /physical-products/cart/create/{terminalId}/{operatorId}
      physical-product-controller
      Creates a shopping cart with the selected product and customer details. Currently, the cart allows only one product to be added.

      Request

      Path Params
      terminalId
      integer <int32>
      required
      operatorId
      integer <int32>
      required
      Header Params
      U
      string 
      required
      Default:
      {{U}}
      SH
      string 
      required
      Default:
      {{SH}}
      ST
      string 
      required
      Default:
      {{ST}}
      Body Params application/json
      productId
      integer <int64>
      optional
      countryId
      integer <int32>
      optional
      stateId
      integer <int32>
      optional
      locationId
      integer <int32>
      optional
      municipalityId
      integer <int32>
      optional
      buyerName
      string 
      optional
      buyerSurname
      string 
      optional
      buyerPhone
      string 
      optional
      buyerEmail
      string 
      optional
      buyerDocumentNumber
      string 
      optional
      beneficiaryName
      string 
      optional
      beneficiarySurname
      string 
      optional
      beneficiaryPhone
      string 
      optional
      beneficiaryEmail
      string 
      optional
      beneficiaryDocumentNumber
      string 
      optional
      city
      string 
      optional
      address
      string 
      optional
      beneficiaryDocumentType
      enum<string> 
      optional
      Allowed values:
      PASSPORTID_CARD
      Example
      {
          "productId": 0,
          "countryId": 0,
          "stateId": 0,
          "locationId": 0,
          "municipalityId": 0,
          "buyerName": "string",
          "buyerSurname": "string",
          "buyerPhone": "string",
          "buyerEmail": "string",
          "buyerDocumentNumber": "string",
          "beneficiaryName": "string",
          "beneficiarySurname": "string",
          "beneficiaryPhone": "string",
          "beneficiaryEmail": "string",
          "beneficiaryDocumentNumber": "string",
          "city": "string",
          "address": "string",
          "beneficiaryDocumentType": "PASSPORT"
      }

      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/cart/create//' \
      --header 'U;' \
      --header 'SH;' \
      --header 'ST;' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "productId": 0,
          "countryId": 0,
          "stateId": 0,
          "locationId": 0,
          "municipalityId": 0,
          "buyerName": "string",
          "buyerSurname": "string",
          "buyerPhone": "string",
          "buyerEmail": "string",
          "buyerDocumentNumber": "string",
          "beneficiaryName": "string",
          "beneficiarySurname": "string",
          "beneficiaryPhone": "string",
          "beneficiaryEmail": "string",
          "beneficiaryDocumentNumber": "string",
          "city": "string",
          "address": "string",
          "beneficiaryDocumentType": "PASSPORT"
      }'

      Responses

      🟢200OK
      application/json
      OK
      Body
      resultMessage
      string 
      required
      resultCode
      integer 
      required
      cartId
      integer 
      required
      productPriceX100
      integer 
      required
      amountToSendX100
      integer 
      required
      deliveryPriceX100
      integer 
      required
      Example
      {
          "resultMessage": "string",
          "resultCode": 0,
          "cartId": 0,
          "productPriceX100": 0,
          "amountToSendX100": 0,
          "deliveryPriceX100": 0
      }
      Modified at 2025-06-17 13:26:52
      Previous
      Get Products
      Next
      Purchase
      Built with