CIAO API
  1. Voucher Generation (Resellers)
CIAO API
  • Introduction
  • Authentication
  • Response Structure
  • Versioning
  • Redemption Intent (Partners)
    • Initialize Redemption Intent
      POST
    • Fetch/Verify Redemption Intent
      GET
  • Voucher Generation (Resellers)
    • Create Vouchers
      POST
    • Show Vouchers from Voucher Payment
      GET
  • General
    • Get all Counties
      GET
  1. Voucher Generation (Resellers)

Create Vouchers

Developing
POST
/api/v1/vouchers

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/vouchers' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "product_code": "CIAO-15",
    "quantity": 3,
    "customer_identifier": "1",
    "metadata": {
        "customer_id": 1,
        "order_id": 10
    }
}'
Response Response Example
{
    "status": true,
    "message": "Vouchers created successfully",
    "data": {
        "reference": "VOUCHER-01K47KSRP9GYCCNKJCEHRKBPN8",
        "codes": [
            "SJRHYJU53O",
            "P6FSY6IEFX",
            "H64ASEW4HB"
        ]
    }
}
Modified at 2025-10-03 19:28:05
Previous
Voucher Generation (Resellers)
Next
Show Vouchers from Voucher Payment
Built with