Skip to main content
PUT
/
vouchers
/
{id}
Update a voucher
curl --request PUT \
  --url https://da.liteapi.travel/vouchers/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "voucher_code": "e58d5d73",
  "discount_type": "percentage",
  "discount_value": 13,
  "minimum_spend": 60,
  "maximum_discount_amount": 20,
  "currency": "USD",
  "validity_start": "2026-07-03",
  "validity_end": "2026-07-30",
  "usages_limit": 100,
  "status": "active"
}
'
{
  "message": "Voucher updated successfully"
}

Authorizations

X-Api-Key
string
header
required

API key required for authorization

Path Parameters

id
integer
required

Unique identifier of the voucher to update

Body

application/json
voucher_code
string
required

A unique code for the new voucher. e.g. manhattan-holidays-100

discount_type
string
required

Type of discount, such as percentage or points redemption

discount_value
number
required

Value of the discount applied by the voucher. For percentage discounts, a value of 10 represents a 10% discount. For points_redemption, it indicates the fixed amount of points to be redeemed e.g. 10 equals 10 points

minimum_spend
number
required

Minimum rate to apply the discount voucher in the voucher currency. e.g. a minimum_spend of USD$100 will only apply for bookings with a price USD$100 or more

maximum_discount_amount
number
required

Maximum discount amount that can be applied using the voucher in voucher currency. e.g. a with a maximum_discount_amount of 50 in USD, will discount from 0 to USD$50

currency
string
required

Currency of the discount

validity_start
string<date>
required

Updated start date of the voucher's validity

validity_end
string<date>
required

Updated end date of the voucher's validity

usages_limit
number
required

Updated usage limit for the voucher

status
string
required

Updated status of the voucher (e.g., active, inactive)

Response

Voucher updated successfully