Base URL
All API requests are made over HTTPS to the following base URL:https://api.billstack.co/v2/reserved-accounts).
Request & Response Format
All request bodies must be JSON, and all responses are returned as JSON. Set theContent-Type header on every request that includes a body:
Accept header : the API always responds with application/json.
Authentication
Authenticate your requests by passing your secret key as a Bearer token in theAuthorization header:
401 Unauthorized response. See the Authentication page for full details on public vs. secret keys and how to rotate them.
Response Envelope
Every API response : success or error : is wrapped in the same envelope. It always contains a booleanstatus, a human-readable message, and a data field. List responses additionally include a meta object with pagination details:
status is false, message describes what went wrong, and data is null:
status field to determine success or failure, and read message for context. See the Errors reference for HTTP status codes and how to handle them.
Pagination
All list endpoints support page-based pagination via two query parameters:integer
default:"1"
The page number to retrieve. Starts at
1.integer
default:"20"
The number of results to return per page.
meta object tells you where you are in the full result set:
object
Pagination metadata included on all list responses.
page=1, then keep incrementing page until it reaches meta.totalPages.
Idempotency
When you initiate a transfer, you can include anidempotency_key in the request body to safely retry without risking a duplicate payout. If a transfer with the same key has already been accepted for your account, BillStack returns the existing transfer instead of creating a second one.
Explore the API
Authentication
Learn how to obtain, use, and rotate your public and secret keys.
Errors
Browse the HTTP status codes BillStack returns and how to handle them gracefully.
Create Virtual Account
Provision a virtual bank account to start collecting payments for a customer.
Webhooks
Receive and verify real-time payment and transaction events on your server.
