VasBox API Documentation
Learn how to integrate VasBox into your application and start creating ZIMRA-compliant invoices and receipts.
VasBox provides a powerful REST API that enables you to create, manage, and submit fiscal documents to ZIMRA. Our API is designed to be intuitive, well-documented, and compliant with Zimbabwe's fiscal regulations.
API Version
/v1. Quick Start
Get up and running in 5 minutes with our step-by-step guide.
API Reference
Explore all available endpoints, parameters, and responses.
ZIMRA Compliance
Learn about fiscal requirements and device integration.
Looking for the User Guide?
Getting Started
To start using the VasBox API, you'll need to obtain API credentials and set up authentication. Follow the steps below to get your first integration running.
Installation
Install the VasBox SDK for your preferred programming language:
npm install @vasbox/sdkAuthentication
The VasBox API uses Bearer token authentication. Include your API key in the Authorization header of every request.
curl -H 'Authorization: Bearer YOUR_API_KEY' \
https://api.vasbox.co.zw/v1/me
Keep your API key secure
Making Your First Request
Here's an example of creating an invoice using the VasBox API. This demonstrates the basic structure of API requests.
curl -X POST https://api.vasbox.co.zw/v1/invoices \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "cust_123",
"items": [
{
"description": "Product A",
"quantity": 2,
"unit_price": 1500.00
}
]
}'That's it!
Next Steps
Now that you've made your first API request, explore these resources to learn more: