# Create MTN charge
Source: https://docs.lomi.africa/api/charge/ChargesController_createMtnCharge

Create MTN charge

***

title: "Create MTN charge"
description: "Create MTN charge"
full: true
method: post
path: /charge/mtn
operationId: ChargesController\_createMtnCharge
-----------------------------------------------

## Overview

Create MTN charge

Starts a payer-facing MTN RequestToPay charge. With a **test** API key the transaction completes in the ledger without calling the MTN sandbox. Responses include **`next_action`** (`await_webhook` with `status`) alongside `data.status`. Use a checkout session unless your app must lock this rail.

### When to use this

Use for server-initiated MTN collection when you are **not** using a hosted checkout session.

### Good to know

Live charges require MTN connected for your organization and a valid MSISDN. Refunds on live MTN payments use the Disbursement refund API via [Create refund](/api/refunds/RefundsController_create).

### See also

[Mobile money](/build/mobile-money) · [Direct charges](/build/accept/direct-charges) · [Create Wave charge](/api/charge/ChargesController_createWaveCharge) · [Create refund](/api/refunds/RefundsController_create) · [Transactions](/api/transactions/TransactionsController_findAll)

## Authentication

Merchant routes require an API key in the `X-API-KEY` header (see [Integration overview](/api)). Use a **test** key against `https://sandbox.api.lomi.africa` and a **live** key against `https://api.lomi.africa`.

## Endpoint

`POST /charge/mtn`

Base URLs:

* `https://sandbox.api.lomi.africa`
* `https://api.lomi.africa`

## Request

### Path parameters

*No path parameters beyond the URL pattern.*

### Query parameters

*No query parameters.*

### Headers

| Name           | In     | Required | Schema | Description                                                                                                                                          |
| -------------- | ------ | -------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Lomi-Account` | header | No       | -      | Optional lomi. Network account id (`acct_...`). When present, the API key acts as the Operator and the request targets the connected Member Account. |

### Request body

JSON request payload.

Schema: `CreateMtnChargeDto`

| Field            | Required | Type          | Description |
| ---------------- | -------- | ------------- | ----------- |
| `amount`         | Yes      | `number`      | -           |
| `currency`       | Yes      | `string`      | -           |
| `organizationId` | No       | `string`      | -           |
| `merchantId`     | No       | `string`      | -           |
| `customer`       | Yes      | `CustomerDto` | -           |
| `description`    | No       | `string`      | -           |
| `countryCode`    | No       | `string`      | -           |
| `productId`      | No       | `string`      | -           |
| `subscriptionId` | No       | `string`      | -           |
| `quantity`       | No       | `number`      | -           |

Example body:

```json
{
  "amount": 1000,
  "currency": "XOF",
  "customer": {
    "name": "...",
    "phoneNumber": "..."
  }
}
```

## Responses

| Status | Description          |
| ------ | -------------------- |
| `201`  | MTN charge initiated |

## Errors

Errors follow the standard JSON error format (status code and machine-readable message). Validate inputs before calling; **401** indicates a missing/invalid key, **404** a missing resource for this organization, **429** rate limiting. For safe retries on create-style calls, send an idempotency key when your flow supports it.

## Example

```bash
curl -sS -X POST "https://sandbox.api.lomi.africa/charge/mtn" \
  -H "X-API-KEY: $LOMI_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount":1000,"currency":"XOF","customer":{"name":"...","phoneNumber":"..."}}'
```

## OpenAPI

* **operationId**: `ChargesController_createMtnCharge`
* **Operation**: `POST /charge/mtn`

Full schemas and **Try it**: [API reference](/api). Machine-readable contract: repo `apps/docs/openapi.json`.
