# PayIn — Create order

```
POST /PayInMobileMoney/PayInMobileMoney
```

Initiates a Mobile Money debit against a customer's wallet.

## Request

**Body**

| Field           | Type   | Required | Description                             |
| --------------- | ------ | -------- | --------------------------------------- |
| `externalID`    | string | yes      | Unique transaction ID generated by you. |
| `transactionIn` | object | yes      | Transaction details (see below).        |

**`transactionIn` object**

| Field               | Type                        | Required | Description                                                        |
| ------------------- | --------------------------- | -------- | ------------------------------------------------------------------ |
| `firstName`         | string                      | yes      | Customer's first name.                                             |
| `lastName`          | string                      | yes      | Customer's last name.                                              |
| `email`             | string                      | yes      | Customer's email address.                                          |
| `mobileCountryCode` | integer                     | yes      | Numeric country dialing code (e.g., `237` for Cameroon).           |
| `mobileNumber`      | string                      | yes      | Mobile number without country code.                                |
| `description`       | string                      | no       | Free-text description shown on the ledger entry.                   |
| `currency`          | string (ISO 4217)           | yes      | e.g., `XAF`.                                                       |
| `countryCode`       | string (ISO 3166-1 alpha-2) | yes      | e.g., `CM`.                                                        |
| `operator`          | string                      | yes      | Mobile Money operator name (case-sensitive). Validate via Catalog. |
| `amount`            | number                      | yes      | Amount in the minor-agnostic currency unit. For XAF, whole units.  |

## Response

| Field              | Type          | Description                                    |
| ------------------ | ------------- | ---------------------------------------------- |
| `orderID`          | string (UUID) | Nexterpay identifier.                          |
| `externalID`       | string        | The `externalID` you submitted.                |
| `validationStatus` | string        | Initial lifecycle state (typically `Pending`). |

## Example

```bash
curl -X POST "https://api-sandbox.nexterpay.io/PayInMobileMoney/PayInMobileMoney" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "externalID": "payin-20260423-000123",
    "transactionIn": {
      "firstName": "Amina",
      "lastName": "Ngono",
      "email": "amina.ngono@example.com",
      "mobileCountryCode": 237,
      "mobileNumber": "670000000",
      "description": "Order #4521",
      "currency": "XAF",
      "countryCode": "CM",
      "operator": "Orange",
      "amount": 100
    }
  }'
```

```json
{
  "orderID": "c9a1f8e0-4b3c-4b9e-8a2d-5e6f7a8b9c0d",
  "externalID": "payin-20260423-000123",
  "validationStatus": "Pending"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nexterpay.io/api-reference/payin-create.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
