Skip to main content

Promotions API

The Promotions API provides read-only access to your promo codes and vouchers/gift cards.

Promo Codes vs Vouchersโ€‹

EquipDash supports two types of promotional tools:

TypeDescriptionExample
Promo CodesDiscount codes customers enter at checkout"SUMMER25" for 25% off
Vouchers/Gift CardsPrepaid value that can be redeemed$100 gift card

Promo Codesโ€‹

Promo codes offer discounts with various rules:

Discount Typesโ€‹

TypeDescriptionExample
percentagePercentage off the booking25% off
flatFlat amount off$10 off

Promo Code Rulesโ€‹

RuleDescription
min_booking_amountMinimum booking value required
max_discount_amountCap on percentage discounts
valid_from / valid_untilDate range validity
max_usesTotal usage limit
max_uses_per_customerPer-customer limit
apply_to_all_productsWorks on all products
apply_to_all_experiencesWorks on all experiences

Vouchers / Gift Cardsโ€‹

Vouchers are prepaid credit that can be applied to bookings:

Voucher Statusโ€‹

StatusDescription
activeHas remaining balance, within validity
redeemedFully used (zero balance)
expiredPast validity date

Voucher Sourcesโ€‹

SourceDescription
online_purchaseBought through online store
posSold at point of sale
manualManually created by staff

API Endpointsโ€‹

Promo Codesโ€‹

MethodEndpointDescriptionScope Required
GET/v1/promo-codesList all promo codespromotions:read
GET/v1/promo-codes/{id}Get a single promo codepromotions:read
POST/v1/promo-codesCreate a promo codepromotions:write
POST/v1/promo-codes/importBulk import promo codespromotions:write
PATCH/v1/promo-codes/{id}Update a promo codepromotions:write
DELETE/v1/promo-codes/{id}Delete a promo codepromotions:write
POST/v1/promo-codes/validateValidate a promo codepromotions:read

Vouchersโ€‹

MethodEndpointDescriptionScope Required
GET/v1/vouchersList all voucherspromotions:read
GET/v1/vouchers/{id}Get a single voucherpromotions:read
POST/v1/vouchersCreate a voucherpromotions:write
POST/v1/vouchers/importBulk import voucherspromotions:write
PATCH/v1/vouchers/{id}Update a voucherpromotions:write
DELETE/v1/vouchers/{id}Delete a voucherpromotions:write
POST/v1/vouchers/validateValidate a voucherpromotions:read
POST/v1/vouchers/balanceCheck voucher balancepromotions:read

Common Use Casesโ€‹

Checking Promo Code Statusโ€‹

Monitor promo code usage and validity:

curl "https://app.equipdash.com/api/v1/promo-codes?status=active" \
-H "Authorization: Bearer YOUR_API_KEY"

Tracking Gift Card Balancesโ€‹

Get voucher details including remaining balance:

curl "https://app.equipdash.com/api/v1/vouchers/123" \
-H "Authorization: Bearer YOUR_API_KEY"

Marketing Analyticsโ€‹

Track promo code performance:

# Get all promo codes with usage counts
curl "https://app.equipdash.com/api/v1/promo-codes" \
-H "Authorization: Bearer YOUR_API_KEY"

Response includes uses_count to track redemptions.

  • Bookings - Promotions are applied to bookings
  • Webhooks - voucher.sold and voucher.redeemed events