Requirements
To use this query, please ensure that the
Rye-Shopper-IP is set in your HTTP headers. For more information about the Rye-Shopper-IP header, view this section.
Arguments
The
input object must at least include the cart id, any selectedShippingOptions, and the buyer billingAddress. See CartSubmitInputReturns
Any requested field from the
SubmitCartResult object.Example - request
Query arguments
GraphQL
Example - response
Response
Errors
If the cart is not found then a corresponding error is returnedJSON
JSON
Expected cart behavior
-
If the cart has already been submitted then
ALREADY_SUBMITTEDerror is returned -
If
BuyerIdentityhas not been provided withcreateCartorupdateCartBuyerIdentitythenBUYER_IDENTITY_MISSINGerror is returned. -
If
BuyerIdentitycontains invalid fields then a corresponding error is returned, e.g.BUYER_IDENTITY_INVALID_PHONE. -
If
BillingAddresscontains invalid fields then a corresponding error is returned, e.g.BILLING_ADDRESS_INVALID_PHONE. -
If the cart submission failed due to an unknown reason then
SUBMIT_CART_FAILEDerror is returned.
If the cart contains products from different stores then multiple orders will be created - one order per each store.
Success response of this mutation does not guarantee that the order has been placed successfully. To track order status use
checkoutByCartID or orderByID mutationsIf the cart has been successfully submitted, an attempt to submit the cart again will lead to an error.If the cart has multiple stores it is possible that checkout succeeds only for some of them. In this case, the cart can be submitted again. It has no effect on already submitted stores in the cart.

