The sandbox environment gives you a safe space to build and test your Batch Relay integration without touching production fulfillment. You activate it by settingDocumentation Index
Fetch the complete documentation index at: https://docs.batchrelay.com/llms.txt
Use this file to discover all available pages before exploring further.
"environment": "sandbox" in your request body, and from that point forward the request runs through the full API pipeline — authentication, validation, idempotency, and billing — without ever dispatching a real print job.
What the Sandbox Supports
The sandbox is designed to exercise all of the meaningful API behaviors your integration will encounter in production:- Validate API keys — confirm your credentials are correctly configured before you go live.
- Create API print-order records — generate real order objects in your account that you can inspect via the dashboard or API.
- Exercise idempotency — replay requests with the same
Idempotency-Keyand verify that duplicate orders are not created. - Exercise billing gates — trigger the
billing_requiredresponse path without spending real money. - Import orders into WHCC sandbox validation endpoints — later-stage testing against the WHCC sandbox can be layered on top of Batch Relay sandbox orders.
Testing the Billing Gate
To verify that your integration handles a missing or inactive billing method correctly, include thebilling.required flag in your sandbox request. This instructs the API to enforce the billing check even though no production fulfillment will occur:
402 Payment Required response with the billing_required error code. Your integration should detect this response and surface a clear prompt for the user to complete billing setup.