# Send an invoice (/docs/api/v1/invoicing/create-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.

`POST https://invoicing.hubtel.com/api/v2.0/invoice/{accountNumber}/simple`

## Parameters

| Name | In | Required | Description |
|---|---|---|---|
| `accountNumber` | path | Yes | Your **collection account number** (POS sales), where customer payments land. Find it in your Hubtel merchant account under [Programmable keys → Account ID](/dashboard/account-ids). In the sandbox, use the collection account in Workbench. |

## Request example

```json
{
  "invoiceNumber": "12345",
  "dueDate": "2026-06-02T23:59:59Z",
  "createdBy": "John",
  "customerName": "John",
  "customerPhoneNumber": "233555654321",
  "customerEmail": "username@domain.com",
  "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"
}
```

## Response 200: Success.

```json
{
  "message": "Invoice has been created.",
  "code": 201,
  "data": {
    "invoiceId": "pY3HfCTXZb",
    "paymentUrl": "https://approval.biz/pY3HfCTXZb"
  }
}
```

Full schema: /openapi/v1/invoicing.json