# PayIn — Get order by External ID

```
POST /PayInMobileMoney/GetPayInMobileMoneyOrderByExternalID?ExternalID=xxx
```

Returns the current state of a PayIn order.

{% hint style="info" %}
This is a read-only operation that uses `POST` with a query parameter. No request body is required.
{% endhint %}

## Query parameters

| Name         | Type   | Required | Description                                |
| ------------ | ------ | -------- | ------------------------------------------ |
| `ExternalID` | string | yes      | The `externalID` submitted at create time. |

## Response

| Field              | Type          | Description                |
| ------------------ | ------------- | -------------------------- |
| `orderID`          | string (UUID) | Nexterpay identifier.      |
| `externalID`       | string        | Echo of your `externalID`. |
| `validationStatus` | string        | Lifecycle state.           |
| `amount`           | number        | Transaction amount.        |
| `currency`         | string        | Transaction currency.      |
| `operator`         | string        | Operator.                  |
| `countryCode`      | string        | Country.                   |

## Example

```bash
curl -X POST "https://api-sandbox.nexterpay.io/PayInMobileMoney/GetPayInMobileMoneyOrderByExternalID?ExternalID=payin-20260423-000123" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

```json
{
  "orderID": "c9a1f8e0-4b3c-4b9e-8a2d-5e6f7a8b9c0d",
  "externalID": "payin-20260423-000123",
  "validationStatus": "Success",
  "amount": 100,
  "currency": "XAF",
  "operator": "Orange",
  "countryCode": "CM"
}
```


---

# 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-status.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.
