Create bundle voucher
In order to create a voucher for specific bundle with Centili Vouchers API, you need to send an HTTP POST request with Content-Type: application/json composed of parameters with associated values.
Before initiating a voucher create request you will need to obtain an access token, with client vouchers
and provided secret.
URL to which a request should be sent
https://capi.centili.com/vouchers/v1/bundle
POST bundle voucher request
https://capi.centili.com/vouchers/v1/bundle HTTP/1.1
Host: capi.centili.com:443
Content-Type: application/json
Authorization:bearer token
{
"numberOfVouchers": 2,
"bundleId": "01234567-1234-5678-9012-123456789012",
"expirationDate": "2024-12-31"
}
Parameter | Description | Example |
---|---|---|
numberOfVouchers | Number of vouchers you wish to create | 2 |
bundleId | ID uniquely identifying a bundle in the Centili system | 01234567-1234-5678-9012-123456789012 |
expirationDate | Date after which voucher stops being valid, in ISO8601 format | 2024-12-31 |
All parameters are required.
POST bundle voucher response
200
Payment transaction initiated
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"code": "12AB34XY56Z"
},
{
"code": "GH789PQRST"
}
]
Updated 9 months ago