This guide walks you through integrating with the Rye API, from setting up your account to submitting your first order to Shopify.
The example in this guide uses Shopify, but the same process can be used to send orders to Amazon, non‑Shopify stores, and other merchants. You only need to replace the product URL with one from the merchant you want to order from.
POST
request to /api/v1/checkout-intents
with the product URL and buyer identity.
You can send orders to Amazon, non-Shopify stores, and other merchants by simply changing the product URL in the request. Here are some example URLs you can use for testing:Note: Orders are only supported for US shipping addresses and a quantity of 1.
- https://flybyjing.com/collections/shop/products/sichuan-chili-crisp
- https://www.amazon.com/Apple-MX532LL-A-AirTag/dp/B0CWXNS552/
awaiting_confirmation
/api/v1/checkout-intents/{id}
enpdoint with a GET
request until it reaches the awaiting_confirmation
state. Use the value of the id
field returned in step 3.
For additional context:
- All processing is asynchronous. Always poll the
GET
endpoint after each major step.- Once in a terminal state (
completed
orfailed
), the intent is complete.- Use
failureReason
to display helpful error messages to users.
GET /api/v1/checkout-intents/{id}
response payload.
tok_visa
as the card token in staging to place a test order. Alternatively, you can use the steps here to create a simple React app to generate the card token.
Note: With the current integration, Rye uses Stripe to tokenize users’ credit cards. This makes Rye the merchant of record for orders.
POST /api/v1/checkout-intents/{id}/confirm
. Replace the stripeToken
value with the token generated in step 6.
Checkout intents cannot be updated once created. To change buyer details such as the shipping address, you must create a new checkout intent with the updated information.
GET
endpoint again until you reach one of the terminal states:
completed
: Order was placed successfully.failed
: Something went wrong (e.g., out of stock, expired).For API V2, the order won’t show up in the Rye console, but you can confirm it was submitted through the API. Note: Rye does not provide post-purchase tracking or webhooks (except for Amazon). Tracking and order updates are sent directly to the buyer via their email address.