This guide walks you through everything you need to submit your first print order against the Batch Relay API. By the end you’ll have a working sandbox order and a clear picture of how the billing gate behaves—all without touching production fulfillment.Documentation Index
Fetch the complete documentation index at: https://docs.batchrelay.com/llms.txt
Use this file to discover all available pages before exploring further.
Create an API account
Open the developer dashboard and create an individual API account. This gives you access to key management, usage reporting, and sandbox tooling.
You don’t need an active billing method to create an account or submit sandbox orders. Billing is only required when you switch to the production environment.
Create an API key
Inside the developer dashboard, create a new API key and assign it the following scopes:
| Scope | Why you need it |
|---|---|
print_orders:write | Allows your key to create new print orders. |
print_orders:read | Allows your key to check order status. |
Create a sandbox order
With your key in hand, send a A successful response uses a stable envelope with a top-level
POST request to the print-orders endpoint. Setting "environment": "sandbox" ensures the order goes through validation and returns a real response without triggering live fulfillment.data object, the active environment, and a unique request_id you can use for support and logging:Test billing in sandbox
You can exercise the billing gate in sandbox mode without touching production fulfillment. Add a If your account doesn’t have an active billing method, the API responds with a
billing object to your request body with "required": true:402 status and the billing_required error code. This lets you verify that your integration handles the billing gate correctly before going live.