CSQ Docs
  1. Supermarket vouchers
CSQ Docs
eVSB
  • eVSB
  • Overview
  • Headers
  • Methods
  • Error Codes
  • Test connection
    • ping echo
      GET
    • ping
      GET
  • Utils
    • Balances
      GET
    • Prices Direct
      GET
    • Prices Reverse
      GET
  • Prepaid
    • Recharge
      • Get Products
      • Purchase
    • Vouchers
      • Get Products
      • Vouchers Purchase
      • Voucher Additional Data
      • Get Finished Vouchers
    • Supermarket vouchers
      • Supermarket Vouchers Purchase
        POST
  • Postpaid
    • Billpayment
      • Get Parameters
      • Get Invoices
      • Payment
  1. Supermarket vouchers

Supermarket Vouchers Purchase

POST
/pre-paid/supermarket-vouchers/purchase/{terminalId}/{operatorId}/{localReference}
Prepaid supermarket vouchers

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
localDateTime
string <date-time>
optional
beneficiaryPhoneNumber
string 
optional
dynamicProductId
string  | null 
optional
receiverEmail
string  | null 
optional
receiverMessage
string  | null 
optional
documentNumber
string 
optional
documentType
enum<string> 
optional
Allowed values:
PASSPORTID_CARD
firstName
string 
optional
surname
string 
optional
secondSurname
string  | null 
optional
Example
{
  "amountToSendX100": 0,
  "destinationAmountX100": 0,
  "localDateTime": "2019-08-24T14:15:22Z",
  "beneficiaryPhoneNumber": "string",
  "dynamicProductId": "string",
  "receiverEmail": "string",
  "receiverMessage": "string",
  "documentNumber": "string",
  "documentType": "PASSPORT",
  "firstName": "string",
  "surname": "string",
  "secondSurname": "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/pre-paid/supermarket-vouchers/purchase///' \
--header 'U;' \
--header 'SH;' \
--header 'ST;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amountToSendX100": 0,
    "destinationAmountX100": 0,
    "localDateTime": "2019-08-24T14:15:22Z",
    "beneficiaryPhoneNumber": "string",
    "dynamicProductId": "string",
    "receiverEmail": "string",
    "receiverMessage": "string",
    "documentNumber": "string",
    "documentType": "PASSPORT",
    "firstName": "string",
    "surname": "string",
    "secondSurname": "string"
}'

Responses

🟢200OK
application/json
Body
rc
integer <int32>
optional
items
array [object {7}] 
optional
finalstatus
integer <int32>
optional
resultcode
string 
optional
resultmessage
string 
optional
supplierreference
string 
optional
suppliertoken
string 
optional
destinationcurrency
string  | null 
optional
destinationamount
number  | null 
optional
Example
{
  "rc": 0,
  "items": [
    {
      "finalstatus": 0,
      "resultcode": "string",
      "resultmessage": "string",
      "supplierreference": "string",
      "suppliertoken": "string",
      "destinationcurrency": "string",
      "destinationamount": 0
    }
  ]
}
Previous
Supermarket vouchers
Next
Billpayment
Built with