Sandbox
Use Sandbox to test your integration before you go live. Sandbox works like Live, but nothing in it is real. No business onboards in EmaraTax, nothing goes on Peppol, and no report goes to the FTA.
This page uses these terms:
- Live and Sandbox: the two modes of Wafeq e-invoicing ASP. Live is real e-invoicing. Sandbox is for tests.
- Sandbox taxpayer: a taxpayer that Wafeq e-invoicing ASP makes in Sandbox. No real business is behind it.
- Test buyer: a buyer TIN that makes Sandbox give a chosen answer, for example a rejected report.
Live and Sandbox side by side
| Live | Sandbox | |
|---|---|---|
| Cost | A subscription, taxpayer seats and a document balance. | Free. Your organization can connect a maximum of 100,000 Sandbox taxpayers. |
| Your setup | API keys, OAuth client and webhook endpoints for Live. | Separate API keys, OAuth client and webhook endpoints. Nothing goes from Sandbox to Live. |
| API address | https://api.wafeq.com/ae/v1 | The same address. The Sandbox API key (pk_test_…) selects Sandbox. |
| A business connects | It onboards in EmaraTax, then approves your app. | You act as the business. Wafeq e-invoicing ASP simulates the onboarding. |
| The buyer | Wafeq e-invoicing ASP looks for the buyer on Peppol. | Wafeq e-invoicing ASP makes no Peppol lookup. The TIN of the buyer decides the route. |
| The delivery | Wafeq e-invoicing ASP delivers the document on Peppol. The buyer's provider answers. | Wafeq e-invoicing ASP simulates the delivery. A test buyer sets the answer of the buyer's provider. |
| The report to the FTA | Wafeq e-invoicing ASP sends the report, and the FTA answers. | Wafeq e-invoicing ASP makes the report, but does not send it. Sandbox answers it, approximately 5 seconds later. |
| Webhook events | The events of your endpoint. | The same events. The events of a simulated delivery or report contain simulated: true. |
| Deregistration | The business deregisters in EmaraTax. | You simulate it in the workspace of the Sandbox taxpayer. |
When your integration works in Sandbox, move it to Live. Refer to Go live.
Before you start
In the Wafeq e-invoicing ASP portal, select Sandbox. Then do the setup of your organization in Sandbox. Refer to Set up your organization (stage 1).
- Create a Sandbox API key. It starts with
pk_test_. - Get the Sandbox OAuth client, and add your callback URLs. In Sandbox,
http://localhostis also permitted. - Add a webhook endpoint for Sandbox.
What you can test
| Page | What you test |
|---|---|
| Connect a Sandbox taxpayer | The connection flow of your app, with a Sandbox taxpayer instead of a real business. |
| Send a document in the Sandbox | A submission, its route, its delivery and the answer to its report. |
| Receive a document in the Sandbox | The side of the buyer: your app reads a document that another Sandbox taxpayer sent. |
| Test buyers | Each answer that your app must handle: from the FTA, from the buyer's provider, and from Wafeq e-invoicing ASP when it is unavailable. |
| Test buyer builder | A test buyer for the case that you choose, and a request that runs it in Sandbox. |
| Simulate a deregistration | What your app does when a business leaves. |
Updated 4 days ago