Integrate cinema voucher validation and redemption into your application
View API Reference →The ProCinema Voucher API allows you to validate and redeem cinema vouchers without purchasing real vouchers during development. Use our sandbox environment with pre-defined test codes to develop and test your integration quickly and cost-effectively.
https://api.procinemadev.com/v1POST /check - Validate a voucher codePOST /redeem - Redeem a voucherPOST /unredeem - Unredeem a voucherAll API requests require a valid API key passed in the X-API-KEY header.
curl -X POST https://api.procinemadev.com/v1/check \
-H "Content-Type: application/json" \
-H "X-API-KEY: your-api-key-here" \
-d '{"code": "SANDBOX867C42F3"}'The API key is unique to your cinema organisation. You can manage the API key from the ProCinema Portal. To get access to the Cinema Portal, you need to get in touch with ProCinema.
Use the /check endpoint to validate a voucher code before redemption.
Request:
curl -X POST https://api.procinemadev.com/v1/check \
-H "Content-Type: application/json" \
-H "X-API-KEY: your-api-key-here" \
-d '{"code": "SANDBOX867C42F3"}'Response (200 OK):
{"valid": true}Error Response (400 Bad Request):
{"valid": false, "error": "Invalid voucher code"}Use the /redeem endpoint to redeem a validated voucher. The amount must be between 1 and 100 (in CHF).
Request:
curl -X POST https://api.procinemadev.com/v1/redeem \
-H "Content-Type: application/json" \
-H "X-API-KEY: your-api-key-here" \
-d '{
"code": "SANDBOX867C42F3",
"amount": 25.00,
"suisanr": "123456",
"cinema_site_id": "1147630"
}'Request Body Fields:
code (required): Voucher code to redeem (string: XXXXXXXXXXXXXXX)amount (required): Amount in CHF (decimal: 1.00-100.00)suisanr (optional): Movie identifier (string: 1006682)cinema_site_id (optional): Cinema Site Identifier. Your Cinema Site(s) IDs can be found in the Portal, as External ID. This is the same ID used by the current database of ProCinema. Providing the Cinema Site ID helps with more granular tracking of redemptions, and enables better reporting.Response (200 OK):
{
"success": true,
"redemption_id": "166d00b1-2ed6-4b35-b5a2-36968a325e1a"
}Error Response (400 Bad Request):
{
"error": "Voucher code is invalid"
}Use the /unredeem endpoint to reverse a voucher redemption. This allows you to cancel a redemption transaction.
Request:
curl -X POST https://api.procinemadev.com/v1/unredeem \
-H "Content-Type: application/json" \
-H "X-API-KEY: your-api-key-here" \
-d '{
"code": "SANDBOX867C42F3"
}'Request Body Fields:
code (required): Voucher code to unredeemResponse (200 OK):
{
"success": true
}Error Response (400 Bad Request):
{
"error": "Voucher has not been redeemed"
}SANDBOX867C42F3Loading test codes...
These are actual voucher codes from the sandbox database that can be tested with the API.
LM5TL88G32DEA47HU4KW2BQC7858C8SZXSZXCB7146744TK95TJ2QBA37A93S2BETDCC54E4EF3XR9YWWUA2C01F34MGQ8RWLV12BBD02G652EUCBBFB7BB1ATPN2JRL292EAF0PW3HRGL5937D693Note: Each code can only be used once.