Skip to main content
POST
Validate a discount code against the cart

Parametry ścieżki

shopId
string
wymagane

Shop ID (ObjectId). Also accepts the uniqueName, an active custom domain or <uniqueName>.<hosting domain>.

Przykład:

"664f1a2b3c4d5e6f7a8b9c0d"

Treść

application/json
code
string
wymagane
Required string length: 1 - 50
Pattern: ^[A-Za-z0-9_-]+$
Przykład:

"LATO10"

items
object[]
wymagane

Cart lines (1–20). Several lines = a payment group: one order per line and one payment for the total (adr/0002)

Required array length: 1 - 20 elements
paymentMethodCode
string

Payment method — the product may have a different price for it

Required string length: 1 - 100
Przykład:

"imoje"

Odpowiedź

success
boolean
wymagane
Przykład:

true

data
object
wymagane