Skip to main content
POST
Validate a code (shop)

Authorizations

X-API-Key
string
header
required

Path Parameters

shopId
string
required

Shop ID (ObjectId)

Body

application/json
code
string
required

Discount code

Required string length: 1 - 50
Example:

"LATO10"

orderValue
number
required

Order value

Required range: x >= 0.01
Example:

50

productId
string

Product ID

Example:

"664f1a2b3c4d5e6f7a8b9c0d"

serverId
string

Server ID

Example:

"664f1a2b3c4d5e6f7a8b9c0e"

Response

OK

success
boolean
Example:

true

data
object
message
string