Skip to main content
PATCH
cURL

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Path Parameters

id
string
required

Body

application/json
name
string
required
Required string length: 1 - 200
slug
string
required
Required string length: 1 - 200
Pattern: ^[a-z0-9-]+$
discountType
enum<string>
required
Available options:
percentage,
fixed_amount
scope
object
required

Discriminated union on kind: global | products | categories | destinations | markets | audiences | fare_codes | cabin_grades.

description
string
discountPercent
number

Required when discountType=percentage (>0, <=100)

discountAmountCents
integer

Required (with currency) when discountType=fixed_amount

currency
string

3-letter ISO 4217; required with fixed_amount

conditions
object
validFrom
string<date>
validUntil
string<date>
code
string
Required string length: 1 - 80
Pattern: ^[A-Za-z0-9_-]+$
stackable
boolean
active
boolean
metadata
object

Response

Updated offer

data
object