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

LiveSandbox
CostA subscription, taxpayer seats and a document balance.Free. Your organization can connect a maximum of 100,000 Sandbox taxpayers.
Your setupAPI keys, OAuth client and webhook endpoints for Live.Separate API keys, OAuth client and webhook endpoints. Nothing goes from Sandbox to Live.
API addresshttps://api.wafeq.com/ae/v1The same address. The Sandbox API key (pk_test_…) selects Sandbox.
A business connectsIt onboards in EmaraTax, then approves your app.You act as the business. Wafeq e-invoicing ASP simulates the onboarding.
The buyerWafeq 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 deliveryWafeq 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 FTAWafeq 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 eventsThe events of your endpoint.The same events. The events of a simulated delivery or report contain simulated: true.
DeregistrationThe 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://localhost is also permitted.
  • Add a webhook endpoint for Sandbox.

What you can test

PageWhat you test
Connect a Sandbox taxpayerThe connection flow of your app, with a Sandbox taxpayer instead of a real business.
Send a document in the SandboxA submission, its route, its delivery and the answer to its report.
Receive a document in the SandboxThe side of the buyer: your app reads a document that another Sandbox taxpayer sent.
Test buyersEach 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 builderA test buyer for the case that you choose, and a request that runs it in Sandbox.
Simulate a deregistrationWhat your app does when a business leaves.