Move your integration from sandbox to production

Created by Mosaab Musa, Modified on Tue, 1 Dec at 2:34 PM by Mosaab Musa

In short: when your integration and testing are done in the sandbox, press Request publishing on your app card and contact the Torod team. The team tests the integration with you and, once it passes, moves your app to production.


The two environments

EnvironmentAPI base URLUse
Sandboxhttps://demo.stage.torod.co/en/apiDevelopment and testing, no real shipments
Productionhttps://torod.co/en/apiReal orders and shipments


The environments are separate: each has its own merchant account, keys and wallet. Sandbox shipments are charged to the sandbox wallet, not your real balance.


Before you request publishing

Test the full flow in the sandbox:

  1. Get Token.
  2. Pickup address (Create Address).
  3. Create Order.
  4. Carrier rates (Order Carrier Partners List).
  5. Ship and print the shipping label (Order Ship Process).
  6. Webhook updates reach your system.
  7. Cancel and refund (Shipment / Order Cancel & Refund).

Full details for every step are in "Connect your system through the API".


Steps

  1. In the sandbox open Settings ← API ← Apps.
  2. On your app card press the last icon: Request publishing.
  3. Contact the Torod team from Support with the app name.
  4. The Torod team contacts you and tests the integration.
  5. Once the test passes, the Torod team moves your app to production. After the move, your production keys are in your app on the production environment: Settings ← API ← Apps ← the key icon.


After the move to production

  1. Switch the API base URL and keys in your system to production.
  2. Add your pickup addresses in production. Sandbox addresses don't carry over.
  3. Top up your wallet, or use your own carrier contract.
  4. Set your production webhook URL.
  5. Ship one real order and check the shipping label prints correctly and updates reach your system.

Requests to production become real shipments, and shipping is charged to your wallet when you ship on Torod's contracts.


Several stores, or a platform serving many merchants?

  1. First test as a regular merchant with one store, using the same sandbox steps.
  2. If the test passes, contact the Torod Sales team to complete a commercial agreement, or open a ticket from Support and we'll redirect you.
  3. After the agreement, the Torod team shares the extra APIs you need to connect all your stores through the Torod plugin.


The Torod plugin is used by each store on your platform to connect to Torod. The Torod team shares how to install it after the commercial agreement.


When to contact us

  • You pressed Request publishing and want to book the integration test.
  • You have several stores or a platform, and the first store's test passed.
  • Send: the app name, your registered email, and the number of stores if you're a platform. Never send your client secret or token.


Related articles

  • Connect your system through the API
  • Receive shipment updates through webhooks
  • Ways to connect your store

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article