Applying a discount to cart
POST {{api-url}}/cart/{{tenant}}/carts/{{cartId}}/discounts
Applies a discount on the specified cart. Only one discount coupon can be applied to cart.
Required scopes
No specific scopes are required.
Request Body
{"code"=>"10E"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"yrn":"{discountYrn}","discountId":"1"}