Supermarket Vouchers Purchase Simulation
๐ Simulating Supermarket Voucher Purchase with Dummy Product (ID: 9993)
9993
in the CSQ API. It is designed for developers testing voucher flows in the Supermarket Vouchers category, using real API methods without triggering actual transactions or contacting external suppliers.๐ฆ Dummy Product Overview
Product ID | Product Name | Behavior Summary |
---|---|---|
9993 | DummySuperMarket | Simulates supermarket voucher purchase in one step |
๐ Dummy Flow for Supermarket Vouchers
Simulate Voucher Purchase
POST /supermarket-vouchers/purchase/{terminalId}/{operatorId}/{localReference}
{
"amountToSendX100": 5000,
"localDateTime": "2025-07-08T10:00:00Z",
"documentNumber": "AB00000000"
}
๐ Field Descriptions
Field | Type | Description |
---|---|---|
amountToSendX100 | integer | Amount in cents (e.g. 500 = 5.00) |
localDateTime | string | ISO 8601 timestamp of the simulated purchase |
documentNumber | string | Simulated ID or passport number. |
๐งช Behavior Based on account
Suffix
Ends With | Simulated Result |
---|---|
000 | โ
Success and returns suppliertoken: FDSAGHJKLREWQTYUIO |
001 | โ
Success and returns suppliertoken: POIUYTREWQJHGFDSA |
other | โ Error 931 - invalid account |
documentNumber
field.๐ค Response Example
{
"rc": 0,
"items": [
{
"finalstatus": 0,
"resultcode": "10",
"resultmessage": "Voucher purchase successful",
"supplierreference": "SUP-REF-78910",
"suppliertoken": "FDSAGHJKLREWQTYUIO",
"destinationcurrency": "EUR",
"destinationamount": 500
}
]
}
๐ง Developer Notes
amountToSendX100
to test different denominations.documentNumber
field acts as a trigger for specific test results.resultcode
and resultmessage
in the response.
Modified atย 2025-07-08 13:49:50