Overview
All API calls occur in either our staging or production environment. Our staging environment acts as a sandbox. Developers can safely work on their integration without the risk of placing real orders or charging real credit cards. The staging environment is where all new API integrations begin. After working on your integration in the staging environment, you can go live and launch to customers using our production environment. In production, it is possible to charge real payment methods and purchase products from the various marketplaces the REST API supports. Both environments are completely isolated from each other to ensure security. A cart belonging to a customer in your production environment is inaccessible in the staging environment, and vice versa. Each environment uses a separate API key for authentication.Switching Enviroments in Console
Once you are signed in the Console to either environment, you will see a switch in the top-right corner of the page which tells you which environment you are currently signed in to. Clicking this switch will swap your browser between each environment. Below you can see an example of what this looks like when signed in to the staging environment:
API Endpoints by Environment
Below you can find the REST API endpoints for each environment. When making requests you will need to provide authorization headers for your account in that environment for your requests to run successfully.Environment | Console | Base API URL |
---|---|---|
Staging | https://staging.console.rye.com | https://staging.api.rye.com/api/v1/ |
Production | https://console.rye.com | https://api.rye.com/api/v1/ |
Differences Between Staging and Production Environments
- Order Placement
- No actual orders will be placed through the /confirm endpoint in staging. You can use this to test order flows safely without affecting live inventory or fulfillment.
- Payments
- Payments in the staging environment use Stripe test cards. No real financial transactions are processed.
- You can find a full list of supported Stripe test cards in the official Stripe documentation: Stripe Test Cards
- Use the following Stripe API key to tokenize credit card information:
pk_test_51LgDhrHGDlstla3fdqlULAne0rAf4Ho6aBV2cobkYQ4m863Sy0W8DNu2HOnUeYTQzQnE4DZGyzvCB8Yzl1r38isl00H9sVKEMu