Overview
Welcome to the API Documentation — your definitive guide to integrating with our platform. Whether you're automating billing, managing products, or handling customer onboarding, this documentation provides the specifications and examples you need to get up and running.
AUTHENTICATION
All requests to our APIs require authentication using an API key.
Authorization: Bearer YOUR_API_KEY
You can generate and manage your API keys from our Admin Console under Key Management System.
API OVERVIEW
Our APIs are organized into several categories based on functionality:
- Invoice Management APIs
- Product & Inventory APIs
- Customer Management API
- Sales Communication API
INVOICE MANAGEMENT API GUIDE
This guide provides a comprehensive breakdown of the Invoice Management APIs, including endpoints, required/optional parameters, sample requests, and responses.
The Invoice Management APIs let you:
- Create invoice drafts
- Retrieve all or specific invoices
- Void specific invoices
- Delete specific invoices
API ENDPOINTS
1. Create A New Invoice
EndPoint: POST /api/invoices
Description: Drafts a new invoice without sending it, perfect for saving work in progress.
Required Fields
Optional Fields
SAMPLE REQUEST
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'SAMPLE RESPONSE
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'2. Fetch All Invoices
EndPoint: GET /api/invoices
Description: Retrieves a list of all invoices.
Required Fields
Optional Fields
SAMPLE REQUEST
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'SAMPLE RESPONSE
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'1. Create A New Invoice
EndPoint: GET /api/invoices/:id
Description: Fetches and gets detailed information about a single invoice by its unique ID.
Required Fields
Optional Fields
SAMPLE REQUEST
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'SAMPLE RESPONSE
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'4. Delete A Specific Invoice
EndPoint: DELETE /api/invoices/:id
Description: Permanently removes a specific invoice that is no longer needed.
Required Fields
Optional Fields
SAMPLE REQUEST
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'SAMPLE RESPONSE
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'5. Void A Specific Invoice
EndPoint: PUT /api/invoices/:id
Description: Description: Marks an invoice as void to prevent payment while keeping a record for audit purposes
Required Fields
Optional Fields
SAMPLE REQUEST
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'SAMPLE RESPONSE
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'PRODUCT & INVENTORY API GUIDE
This guide provides a deep dive into the Product & Inventory APIs, detailing how to retrieve product metadata, available units, and real-time inventory information to support sales, invoicing, and stock monitoring systems.
The Product & Inventory APIs helps you:
- Track and manage your product units and stock availability
- Access up-to-date inventory for all listed products
- Integrate inventory data with invoicing or order management workflows
API ENDPOINTS
1. Fetch All Product Units
EndPoint: GET -/api/invoices-units
Description: Gets real-time inventory levels and stock status of all your products.
Required Fields
Optional Fields
SAMPLE REQUEST
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'SAMPLE RESPONSE
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'2. Fetch Specific Product Units
EndPoint: GET -/api/product-units/:id
Required Fields
Optional Fields
SAMPLE REQUEST
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'SAMPLE RESPONSE
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'CUSTOMER MANAGEMENT API GUIDE
This guide provides in-depth documentation on the Customer Management API, allowing you to create and manage customer records that can be linked to invoices, orders, and other business functions.
The Customer Management API helps you:
- Create new customer records
- Store and manage billing details
- Prepare customers for invoicing, notifications, and CRM workflows
API ENDPOINTS
1. Create New Customer
EndPoint: POST -/api/customers/:id
Description: Adds a new customer to your database with full contact and billing information.
Required Fields
Optional Fields
SAMPLE REQUEST
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'SAMPLE RESPONSE
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'SALES COMMUNICATION API GUIDE
This guide explains how to use the Sales Communication APIs to send targeted sales emails to your customers, enabling personalized outreach and follow-up as part of your business workflow.
The Sales Communication API helps you:
- Programmatically send emails to customers
- Include promotional messages, invoice links, or product updates
- Track communication status per customer
API ENDPOINTS
1. Send A Sales Email
EndPoint: POST -/api/send-sales-email/:id
Description: Triggers an automated sales email with personalized content to enhance customer engagement.
Required Fields
Optional Fields
SAMPLE REQUEST
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'SAMPLE RESPONSE
curl -X POST 'http://zoomac.sales/api/invoices' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"amount": 1500, "currency": "USD"}'STATUS CODES GUIDE
This guide outlines the standard status codes returned by all the APIs. Understanding these codes will help you handle failures gracefully, debug faster, and ensure robust integrations. Every API request returns an HTTP status code. Below is a list of the most common status codes.
| Description | Code | Message |
|---|---|---|
| Request was successful | 200 | OK |
| Resource was successfully created | 201 | Created |
| Missing required fields | 400 | Bad Request |
| Missing or invalid auth token | 401 | Unauthorized |
| Valid token but action not allowed | 403 | Forbidden |
| Resource not found | 404 | Not Found |
| HTTP method not supported | 405 | Method not allowed |
| Duplicate resource | 409 | Conflict |
| Unexpected error on server | 500 | Internal server error |
| Invalid response | 502 | Bad gateway |
| API is temporary unavailable | 503 | Service unavailable |
| Server took too long to respond | 504 | Gateway timeout |