API Reference

Logs promotional codes or discounts applied to orders.

Log in to see full request history

Order Promotions API

The Order Promotions API tracks promotional codes or discounts applied to specific orders. It provides insights into promotional campaigns, including the discount amounts, associated orders, and performance metrics. This API is crucial for evaluating the effectiveness of promotions and refining marketing strategies.

Example Response

After a successful call, the API will return a response similar to the below structure.

[ { "ticket_id": 595661265, "location_id": 233605, "order_source": "Ordering Source Name", "order_number": "D1656", "subtotal": 19.85, "web_subtotal": 19.85, "closed_at": "2024-11-06T01:30:00.020Z", "created_at": "2024-11-06T01:29:57.443Z", "promo_name": null, "promo_amount": "4.08", "promo_code": "BOGO", "order_payload_id": 385098636, "external_store_id": null } ]

Field Descriptions

Field NameDescription
ticket_idIdentifier for the associated ticket.
location_idIdentifier for the restaurant location where the promotion was applied.
order_sourceName of the platform or source where the order originated.
order_numberUnique identifier for the order.
subtotalSubtotal amount of the order, excluding taxes and fees.
web_subtotalSubtotal amount for web orders.
closed_atTimestamp when the order was closed.
created_atTimestamp when the promotion was applied.
promo_nameName of the promotion applied to the order.
promo_amountDiscount amount provided by the promotion.
promo_codePromotional code applied to the order (e.g., BOGO).
order_payload_idIdentifier for the order payload associated with the promotion.
external_store_idIdentifier for the external store, if applicable.

This API facilitates the detailed tracking of promotional activities, enabling marketers to analyze the impact of discounts and codes on overall sales performance and customer engagement.

Query Params
array of int32s
required
Defaults to 6486

External store identifier IDs should be separated by commas (e.g., 4089, 5689), with a maximum of 200 IDs

location_ids*
string
required
Defaults to 2024-11-06 00:00:00

Start Date time for the range of 24 hours

string
required
Defaults to 2024-11-07 00:00:00

End Date time for the range of 24 hours

Headers
string
required
Defaults to b7e9f1ca-62c9-4a44-9d2d-2185e03b0895

Brand token

Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json