Sandbox
¶ Business Receipts Sandbox Overview
Our Sandbox environment provides a way to test the endpoints and user flows without actually requesting a production trip.
It resembles production environmentas much as possible, so that you can test your integration. Any scenarios function similar to how they would work in production, execpt it can only operate on trips created using test accounts.
To use the Sandbox, make calls to: https://sandbox-api.uber.com/
¶ Getting Started
Follow the instructions in Getting Started to ensure that you have been approved for access to your organization’s data and the business.receipts
scope.
¶ API
All of the receipt and invoice endpoints can be invoked on Sandbox for test trips created under your org using a test account. Replace the host url to point to Uber Sandbox.
Environment | Host |
---|---|
Production | https://api.uber.com |
Sandbox | https://sandbox-api.uber.com |
¶ Webhooks
Any webhook event that you receive contains environment
header which indicates whether the request is coming from production or sandbox. All test trip receipt events will have the header value as Sandbox
.
Header | Description |
---|---|
X-Environment |
Indicates if this request is coming from the production or sandbox API. |