Supermarket Vouchers Purchase
Run in Apidog
š§ Purchase Supermarket Vouchers# Executes the purchase of a supermarket voucher using the provided request body. This method supports flexible delivery options and validates recipient documentation when applicable. š Authentication# Authentication is handled via custom header parameters , as defined in the APIās global configuration: Header Name Type Required Description Ustring Yes Username assigned by CSQ. STstring Yes Unix timestamp (valid for 30 seconds). Used as a salt for hashing. SHstring Yes Salted hash. See Headers for more info.
š„ Request Body Parameters# Parameter Type Required Description amountToSendX100integer Conditional Amount to send in cents. Cannot be used with destinationAmountX100. destinationAmountX100integer Conditional Destination amount in cents. Cannot be used with amountToSendX100. localDateTimestring Yes Local timestamp of the transaction (YYYY-MM-DDTHH:mm:ss). beneficiaryPhoneNumberstring No Phone number of the voucher recipient. dynamicProductIdstring/null No Optional product identifier. receiverEmailstring/null No Email address for voucher delivery. receiverMessagestring/null No Custom message to include with the voucher. documentNumberstring Yes ID number of the recipient. documentTypeenum<string> No Type of document: PASSPORT or ID_CARD. firstNamestring No Recipientās first name. surnamestring No Recipientās surname. secondSurnamestring/null No Recipientās second surname (if applicable).
š¤ Response Example# {
"rc" : 0 ,
"items" : [
{
"finalstatus" : 0 ,
"resultcode" : "10" ,
"resultmessage" : "Voucher purchase successful" ,
"supplierreference" : "SUP-REF-78910" ,
"suppliertoken" : "ABC123XYZ456TOKEN" ,
"destinationcurrency" : "DOP" ,
"destinationamount" : 150000
}
]
} š§¾ Response Field Notes# rc: 0 Indicates that the operation was successfully processed.
finalstatus: 10 Suggests a successful outcome at the end of the transaction flow. The exact meaning may vary depending on internal status conventions.
destinationamount Value is expressed in cents. For example, 150000 represents DOP 1,500.00.
supplierreference and suppliertoken These fields are used to track the transaction with the external supplier.
Request Body Params application/json
{
"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 Code Samples
curl --location --request POST 'https://evsb.csqworld.com/pre-paid/supermarket-vouchers/purchase///123456789' \
--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 application/json Generate Code
{
"rc" : 0 ,
"items" : [
{
"finalstatus" : 0 ,
"resultcode" : "string" ,
"resultmessage" : "string" ,
"supplierreference" : "string" ,
"suppliertoken" : "string" ,
"destinationcurrency" : "string" ,
"destinationamount" : 0
}
]
} Modified atĀ 2025-07-28 20:17:26