Skip to content

Billing

Production API usage requires active billing.

Open the developer dashboard and click Add billing. Batch Relay uses Stripe test mode in development.

Use Stripe’s test card:

4242 4242 4242 4242

Any future expiration date, CVC, and ZIP code are accepted in Stripe test mode.

StateMeaning
not_configuredNo usable billing method is attached.
activeBilling setup is complete.
past_dueBilling needs attention.
disabledAPI billing is disabled.

Sandbox order creation is normally free. To test billing without production fulfillment, include:

{
"billing": {
"required": true
}
}

Inactive billing returns:

HTTP/1.1 402 Payment Required
{
"error": {
"code": "billing_required",
"message": "This sandbox request requires active billing for billing-flow testing."
},
"request_id": "req..."
}

The developer dashboard reports captured API charges. During setup-mode testing, saved cards do not create charges, so the total remains $0.00 until PaymentIntent-based order charging is enabled.