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"
}
ParameterDescriptionExample
numberOfVouchersNumber of vouchers you wish to create2
bundleIdID uniquely identifying a bundle in the Centili system01234567-1234-5678-9012-123456789012
expirationDateDate after which voucher stops being valid, in ISO8601 format2024-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"
  }
]