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

POST bundle voucher request HTTP/1.1
Content-Type: application/json
Authorization:bearer token

    "numberOfVouchers": 2,
    "bundleId": "01234567-1234-5678-9012-123456789012",
    "expirationDate": "2024-12-31"
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



Payment transaction initiated

HTTP/1.1 200 OK
Content-Type: application/json

    "code": "12AB34XY56Z"
    "code": "GH789PQRST"