Send an invoice
Creates an itemised invoice with optional discounts, fees and taxes and sends it by SMS and email with a payment link. Hubtel sends a callback when the invoice is paid.
Authorization
basicAuth Base64 of API ID:API Key.
In: header
Path Parameters
Your collection account number (POS sales), where customer payments land. Find it in your Hubtel merchant account under Programmable keys → Account ID. In the sandbox, use the collection account in Workbench.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
Callbacks
curl -X POST "https://example.com/api/v2.0/invoice/string/simple" \ -H "Content-Type: application/json" \ -d '{ "invoiceNumber": "12345", "dueDate": "2026-06-02T23:59:59Z", "createdBy": "John", "customerName": "John", "customerPhoneNumber": "233555654321", "customerEmail": "[email protected]", "note": "Test simple invoice", "items": [ { "description": "Item", "quantity": 1, "unitPrice": 1 } ], "discounts": [ { "name": "Discount", "value": 1, "isFlat": false } ], "fees": [ { "name": "Fee", "value": 2, "isFlat": true } ], "appliedTaxes": [ { "name": "Tax", "value": 1, "isFlat": false } ], "callbackUrl": "https://webhook.site/4636d303-1234-440f-9920-68e34f43ebf9" }'{ "message": "Invoice has been created.", "code": 201, "data": { "invoiceId": "pY3HfCTXZb", "paymentUrl": "https://approval.biz/pY3HfCTXZb" }}