Skip to main content
POST
Validate a discount code against an order context

Authorizations

X-API-KEY
string
header
required

API key for the Twice API

Body

application/json

Body

code
string
required
Required string length: 1 - 64
items
object
required

Response

200

valid
enum<boolean>
required
Available options:
true
code
object
required
appliedValue
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
allocations
object[]