Skip to main content
POST
/
v1
/
public
/
offers
/
redeem
Redeem offer code
curl --request POST \
  --url https://{operatorDomain}/v1/public/offers/redeem \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "departureId": "<string>"
}
'
{
  "id": "offer_01h...",
  "slug": "<string>",
  "title": "<string>",
  "discountType": "percentage",
  "value": 123
}

Body

application/json
code
string
required
departureId
string | null

Response

200 - application/json

Redeemed offer

id
string
Example:

"offer_01h..."

slug
string
title
string
discountType
string
Example:

"percentage"

value
number