Skip to main content

Path Parameters

locationId
string
required
The unique identifier for the restaurant location

Request Body

cartId
string
required
The unique identifier for the cart
code
string
required
The discount code to apply
customerId
string
The customer ID (required for customer-specific discounts)
{
  "cartId": "cart_123abc",
  "code": "SAVE10",
  "customerId": "cust_789xyz"
}
{
  "success": true
}
The endpoint applies the discount code to the cart and returns a simple success response. The discount details and updated cart totals can be retrieved by fetching the cart using the GET /locations//carts/ endpoint after applying the discount.