Production API usage requires an active billing method on your account. Without it, order creation will be blocked and your integration will receive aDocumentation Index
Fetch the complete documentation index at: https://docs.batchrelay.com/llms.txt
Use this file to discover all available pages before exploring further.
402 error before any fulfillment is attempted. Setting up billing takes only a few moments through the developer dashboard, and you can validate the full billing flow using Stripe’s test mode before you go live.
Adding a Billing Method
Open the developer dashboard and click Add billing. Batch Relay uses Stripe in test mode during development, so no real charges are made until you switch to a live Stripe key. When prompted by the Stripe payment form, use the following test card details:| Field | Value |
|---|---|
| Card number | 4242 4242 4242 4242 |
| Expiration date | Any future date |
| CVC | Any 3-digit value |
| ZIP code | Any value |
Billing States
Your account’s billing status is reflected by one of four states. You can view the current state in the developer dashboard at any time:| State | Meaning |
|---|---|
not_configured | No usable billing method is attached to your account. |
active | Billing setup is complete and your account can create production orders. |
past_due | Your billing method requires attention — production order creation may be restricted. |
disabled | API billing has been administratively disabled for your account. |
Testing Billing in the Sandbox
Sandbox order creation is normally free and does not interact with your billing method. If you want to exercise the billing gate — for example, to verify that your integration handles a missing payment method gracefully — include thebilling.required flag in your sandbox request body:
402 Payment Required error:
The
402 response is only returned when billing.required is true and your account billing is inactive. Sandbox requests without this flag succeed regardless of your billing state.