Welcome to the Bila API reference documentation. Our API allows you to integrate payment processing capabilities directly into your applications.
The Bila API is organized around REST principles, with resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
We also offer a GraphQL API for more flexible querying capabilities.
Environment | Base URL |
---|---|
Production | https://api.usebila.com/v1 |
Sandbox | https://sandbox.usebila.com/v1 |
We strongly recommend using our sandbox environment for testing before moving to production.
The Bila API uses API keys to authenticate requests. You can view and manage your API keys in the Bila Console.
Authentication to the API is performed via HTTP Bearer Authentication. Provide your API key as the bearer token value in the Authorization header:
Your API keys carry many privileges, so be sure to keep them secure! Do not share your API keys in publicly accessible areas such as GitHub, client-side code, etc.
All requests should include the following header:
All API responses include a standard structure:
The Bila API uses conventional HTTP response codes to indicate the success or failure of an API request:
2xx
range indicates success4xx
range indicates an error that failed given the information provided (e.g., a required parameter was omitted)5xx
range indicates an error with Bila’s serversFor more information on error handling, see our Error Handling Guide.
The Bila API implements rate limiting to protect our infrastructure and ensure fair usage. Current limits are:
For more information on rate limits, see our Rate Limits Guide.
The Bila API is versioned using a date-based versioning scheme. The current version is v1
.
When we make backwards-incompatible changes to the API, we release a new dated version. You can specify which version to use by including it in the request URL:
Bila can send webhook events to notify your application when specific events occur. For more information, see our Webhooks Guide.
We provide official client libraries for several popular programming languages:
Official Node.js library for the Bila API
Official Python library for the Bila API
Official PHP library for the Bila API
If you have any questions or need help with the API, you can: