Path Parameters
The unique identifier for the restaurant location
Request Body
The unique identifier for the cart
The discount code to apply
The customer ID (required for customer-specific discounts)
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.
Authorizations
Path Parameters
The unique identifier for the restaurant location
Body
application/json
Response
Discount applied successfully
The response is of type object
.