# Create a recurring invoice (/docs/api/v1/recurring-invoice/create-recurring-invoice)

Starts a recurring mobile-money invoice. The response is pending (`0001`) with a `requestId` and `otpPrefix`; the OTP lands on the Virtual Phone. After **Verify a recurring invoice** and the customer approves the prompt, the initial debit result is POSTed to `callbackUrl`. Use the same test numbers as Receive Money.

`POST https://rip.hubtel.com/api/proxy/{accountNumber}/create-invoice`

## 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
{
  "orderDate": "2022-01-28T08:57:00",
  "invoiceEndDate": "2022-01-31T08:57:00",
  "description": "My recurring service",
  "startTime": "14:00",
  "paymentInterval": "DAILY",
  "customerMobileNumber": "233240000000",
  "paymentOption": "MobileMoney",
  "channel": "mtn_gh_rec",
  "customerName": "Joe Doe",
  "recurringAmount": 0.1,
  "totalAmount": 0.1,
  "initialAmount": 0.1,
  "currency": "GHS",
  "callbackUrl": "https://webhook.site/b503d1a9-e726-f315254a6ede"
}
```

## Response 200: Business result in ResponseCode: `0001`, `4000`. See the response code table.

```json
{
  "responseCode": "0001",
  "message": "Your request has been processed successfully.",
  "data": {
    "recurringInvoiceId": "0f84e20a2839482e807128e8c21d08d6",
    "requestId": "a6487bc44eae44849fd80326a0dd802a",
    "otpPrefix": "OQDM"
  }
}
```

Full schema: /openapi/v1/recurring-invoice.json