Requires unauthenticated_write_checkouts_info access scope.
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Applies a discount to an existing checkout using a discount code.
Arguments
checkoutId ● String!non-null
The ID of the checkout.
discountCode ● String!non-null
Discount code to apply to checkout
Returns
checkout ● Checkout
The updated checkout object.
checkoutUserErrors ● [CheckoutUserError!]!non-null
error message
Error Code
For more information about common error codes, refer to Status and error codes.
Was this article helpful to you?