applyDiscount
View as MarkdownAlias for applyDiscountCodes - Apply a discount to an existing order Deprecated: Use applyDiscountCodes instead. This field will be removed in a future release.
mutation
Requires one of commerce.order:create, commerce.order:update, commerce.order:cancel, or commerce.order:complete (use the scope that matches the operation).
Alias for applyDiscountCodes - Apply a discount to an existing order Deprecated: Use applyDiscountCodes instead. This field will be removed in a future release.
Deprecated: Use applyDiscountCodes instead. This field will be removed in a future release.
Required headers
| Header | Required | Description |
|---|---|---|
x-store-id | Yes | ID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: extensions.code: "UNAUTHENTICATED". |
Go to Authentication for credential setup.
Arguments
inputApplyDiscountCodesInput!requireddiscountCodes[String!]!requiredorderIdID!required — Global ID in formatOrder_\<KSUID\>
Possible returns
OrderOrder
Last updated on
How is this guide?