Skip to main content

Get Promo Code

Retrieve a single promo code by ID.

Endpointโ€‹

GET /v1/promo-codes/{id}

Authenticationโ€‹

Requires an API key with the promotions:read scope.

Path Parametersโ€‹

ParameterTypeDescription
idintegerThe promo code ID

Responseโ€‹

Success (200 OK)โ€‹

{
"data": {
"id": 1,
"code": "SUMMER25",
"name": "Summer Sale",
"description": "25% off all summer rentals",
"discount_type": "percentage",
"discount_value": 25.00,
"min_booking_amount": 50.00,
"max_discount_amount": 100.00,
"valid_from": "2026-01-01T00:00:00+00:00",
"valid_until": "2026-03-31T23:59:59+00:00",
"expires_on": "2026-03-31",
"max_uses": 100,
"max_uses_per_customer": 1,
"uses_count": 45,
"apply_to_all_products": true,
"apply_to_all_experiences": true,
"status": "active",
"created_at": "2025-12-15T00:00:00+00:00",
"updated_at": "2026-01-15T10:30:00+00:00"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-01-15T12:00:00+00:00"
}
}

Response Fieldsโ€‹

FieldTypeDescription
idintegerUnique identifier
codestringPromo code (e.g., "SUMMER25")
namestringDisplay name
descriptionstring|nullDescription
discount_typestringpercentage or flat
discount_valuefloatDiscount amount or percentage
min_booking_amountfloat|nullMinimum booking amount required
max_discount_amountfloat|nullMaximum discount cap (for percentage)
valid_fromstring|nullStart date (ISO 8601)
valid_untilstring|nullThe moment the code stops working (ISO 8601, UTC)
expires_onstring|nullThe last day the code works (YYYY-MM-DD), in the business's own timezone. Show this date to people; the UTC date of valid_until can be a day off.
max_usesinteger|nullTotal usage limit
max_uses_per_customerinteger|nullPer-customer usage limit
uses_countintegerCurrent usage count
apply_to_all_productsbooleanApplies to all products
apply_to_all_experiencesbooleanApplies to all experiences
statusstringactive, inactive, or expired
created_atstringISO 8601 datetime
updated_atstringISO 8601 datetime

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
401invalid_api_keyInvalid API key
403insufficient_scopeAPI key lacks promotions:read scope
403forbiddenPromo code belongs to different supplier
404resource_not_foundPromo code does not exist

Example Requestโ€‹

curl -X GET "https://app.equipdash.com/api/v1/promo-codes/1" \
-H "Authorization: Bearer eqd_live_abc123xyz789..."