Skip to main content
POST
/
v1
/
public
/
finance
/
vouchers
/
validate
Validate a voucher
curl --request POST \
  --url https://{operatorDomain}/v1/public/finance/vouchers/validate \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "WELCOME50",
  "bookingId": "<string>",
  "currency": "<string>"
}
'
{
  "data": {
    "valid": true,
    "code": "WELCOME50",
    "remainingCents": 5000,
    "currency": "EUR",
    "reason": "<string>"
  }
}

Body

application/json
code
string
required
Example:

"WELCOME50"

bookingId
string | null
currency
string | null
Required string length: 3

Response

200 - application/json

Validation result

data
object