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 U
string Yes Username assigned by CSQ. ST
string Yes Unix timestamp (valid for 30 seconds). Used as a salt for hashing. SH
string Yes Salted hash. See Headers for more info.
š„ Request Body Parameters# Parameter Type Required Description amountToSendX100
integer Conditional Amount to send in cents. Cannot be used with destinationAmountX100
. destinationAmountX100
integer Conditional Destination amount in cents. Cannot be used with amountToSendX100
. localDateTime
string Yes Local timestamp of the transaction (YYYY-MM-DDTHH:mm:ss
). beneficiaryPhoneNumber
string No Phone number of the voucher recipient. dynamicProductId
string/null No Optional product identifier. receiverEmail
string/null No Email address for voucher delivery. receiverMessage
string/null No Custom message to include with the voucher. documentNumber
string Yes ID number of the recipient. documentType
enum<string> No Type of document: PASSPORT
or ID_CARD
. firstName
string No Recipientās first name. surname
string No Recipientās surname. secondSurname
string/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