Skip to main content

Promotions Tools

Manage promo codes and gift vouchers. List, view details, validate, and create new promotions.

Required scope: promotions:read for read tools, promotions:write for write tools

Tools Overviewโ€‹

ToolDescriptionRead-only?
list_promo_codesList promo codesYes
get_promo_codeGet promo code details and usage statsYes
validate_promo_codeCheck if a promo code is validYes
create_promo_codeCreate a new promo codeNo
list_vouchersList gift cards, and gift card sales for a periodYes
get_voucherGet voucher details and usage statsYes
validate_voucherCheck if a voucher is valid and has balanceYes
create_voucherCreate a new gift voucherNo

list_promo_codesโ€‹

List promo codes with optional search.

Parametersโ€‹

NameTypeRequiredDescription
searchstringNoSearch by code or name
limitintegerNoNumber of results (default 10)

get_promo_codeโ€‹

Get promo code details and usage statistics.

Parametersโ€‹

NameTypeRequiredDescription
promo_code_idintegerNoThe promo code ID
codestringNoThe promo code string (alternative to ID)

Provide either promo_code_id or code.


validate_promo_codeโ€‹

Check if a promo code is valid (without applying it to a booking).

Parametersโ€‹

NameTypeRequiredDescription
codestringYesThe promo code to validate

create_promo_codeโ€‹

Create a new promo code.

Parametersโ€‹

NameTypeRequiredDescription
codestringYesThe promo code (will be uppercased)
typestringYesDiscount type: percentage or fixed
valuenumberYesDiscount value (percentage or fixed amount)
max_usesintegerNoMaximum number of uses (null for unlimited)
valid_fromstringNoStart date for validity
valid_untilstringNoEnd date for validity
user_confirmedbooleanYesMust be true to create

list_vouchersโ€‹

List gift cards with the day each was issued (shop time), how it was issued and what was paid for it. Pass from and to to get period_sales: the cards sold in that period and the money taken, split by how they were sold. Refund credits, imported cards and staff cards with no payment recorded are not counted as sales.

Parametersโ€‹

NameTypeRequiredDescription
searchstringNoSearch by code, purchaser name, or recipient name
statusstringNoFilter by status: active, fully_redeemed, cancelled, expired_display
fromstringNoOnly cards issued on or after this day, YYYY-MM-DD in the shop's time zone
tostringNoOnly cards issued on or before this day, YYYY-MM-DD in the shop's time zone
limitintegerNoNumber of results (default 10)

get_voucherโ€‹

Get voucher details and usage statistics.

Parametersโ€‹

NameTypeRequiredDescription
voucher_idintegerNoThe voucher ID
codestringNoThe voucher code (alternative to ID)

Provide either voucher_id or code.


validate_voucherโ€‹

Check if a voucher code is valid and has remaining balance. Does not apply the voucher. Use apply_voucher (in Payments tools) to redeem against a booking.

Parametersโ€‹

NameTypeRequiredDescription
codestringYesThe voucher code to validate

create_voucherโ€‹

Create a new gift voucher.

Parametersโ€‹

NameTypeRequiredDescription
original_valuenumberYesVoucher value amount
purchaser_namestringNoName of the purchaser
purchaser_emailstringNoEmail of the purchaser
recipient_namestringNoName of the voucher recipient
recipient_emailstringNoEmail of the recipient
valid_untilstringNoExpiry date
personal_messagestringNoPersonal message for the gift card
user_confirmedbooleanYesMust be true to create