Skip to main content
POST
Apply Discount

Headers

X-Site-ID
string
required
X-Stella-Token
string | null

Path Parameters

cart_id
string<uuid>
required

Body

application/json
code
string
required
Required string length: 1 - 64

Response

Successful Response

Returned after a successful apply.

code
string
required
kind
string
required
amount_off
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
currency
string
required
allocations
CartDiscountAllocation · object[]
required