Discount
The discount node
Method | Type | Description |
---|---|---|
id | ID! |
|
pk | Int |
|
order | OrderNode! |
|
pointsRedemption | PointsRedemptionNode |
|
stampsRedemption | StampsRedemptionNode |
|
offerRedemption | RedemptionNode |
|
createdAt | DateTime! |
|
updatedAt | DateTime! |
Add discount to order
Remove discount from order
Verify discount code
Input
Field | Type | Description |
---|---|---|
code | String! |
Discount code |
subtotal | Decimal! |
Order subtotal |
items | [VerifyDiscountCodeItemsInput] |
List of productId and quantity |
storeId | ID! |
Store id |
consumerId | ID |
Not required, used when calling the API as a merchant |