This guide provides step-by-step instructions for submitting an order via Rye using your backend.
submitCart
mutation.
cost
field to determine how much you need to charge the shopper for the order.
When placing the order, it is up to you to charge the shopper. You may use any payment gateway you prefer, although our recommendation is generally Stripe as it is relatively easy to get set up with them. Once you have charged the shopper, you will have collected funds for the order, but the Rye cart will still be pending checkout.
submitCart
mutation to submit the cart.
For our mutation, we’ll request some new fields status
and orderId
from the stores
field. These fields will be used to track the status of the order, so be sure to take a look at the status
and copy the orderId
somewhere for later. We’ll also request errors
back on the store level just in case we have an issue with placing the order.
orderId
you copied from the response represents a Rye Order.
orderByID
query
OrderStatus
enum for all possible statuses.