API Reference

Order Promotions

Logs promotional codes or discounts applied to orders.

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.

Language
Click Try It! to start a request and see the response here!