# Retrieve a payout

> Returns one payout with its business date, accounts and status.

Source: https://docs.tappay.mn/reference/payouts/get/

Returns one [payout](https://docs.tappay.mn/glossary.md#payout) with its business date, accounts and status. Use it to follow a transfer after you created it.

`GET /api/v1/payouts/{id}` Since 2026-09-27

### Authentication

Secret key (Bearer)

### Headers

| Name | Type | Required | Values | Description |
| - | - | - | - | - |
| `TapPay-Version` | string | no | | |
| `TapPay-Timestamp` | string | no | | |
| `TapPay-Nonce` | string | no | | |
| `TapPay-Signature` | string | no | | |

### Path parameters

| Name | Type | Required | Values | Description |
| - | - | - | - | - |
| `id` | string (uuid) | yes | | |

### Response 200

| Name | Type | Required | Values | Description |
| - | - | - | - | - |
| `success` | boolean | yes | `true` | |
| `data` | object | yes | | |
| `data.id` | string (uuid) | yes | | |
| `data.createdAt` | string | yes | | |
| `data.businessDate` | string | yes | | |
| `data.merchant` | object | yes | | |
| `data.merchant.id` | string (uuid) | yes | | |
| `data.merchant.name` | string | yes | | |
| `data.merchant.merchantCode` | string \| null | yes | | |
| `data.sa` | object | yes | | |
| `data.sa.id` | string (uuid) | yes | | |
| `data.sa.bankCode` | string | yes | | |
| `data.sa.accountNumber` | string | yes | | |
| `data.payoutAccount` | object | yes | | |
| `data.payoutAccount.id` | string (uuid) | yes | | |
| `data.payoutAccount.bankCode` | string | yes | | |
| `data.payoutAccount.accountLast4` | string | yes | | |
| `data.kind` | string | yes | `SCHEDULED`, `MANUAL` | |
| `data.policy` | string \| null | yes | `EACH_CYCLE`, `DAILY`, `MIN_AMOUNT`, `null` | |
| `data.amount` | string | yes | | |
| `data.payoutFee` | string | yes | | |
| `data.manualFee` | string | yes | | |
| `data.currency` | string | yes | | |
| `data.status` | string | yes | `PENDING`, `SCHEDULED`, `IN_TRANSIT`, `PAID`, `FAILED` | |
| `data.statusChangedAt` | string | yes | | |
| `data.transfer` | object \| null | yes | | |
| `data.transfer.id` | string (uuid) | yes | | |
| `data.transfer.token` | string | yes | | |
| `data.transfer.status` | string | yes | | |
| `data.failureClass` | string \| null | yes | | |
| `data.failureReason` | string \| null | yes | | |
| `data.items` | array\<object> | yes | | |
| `data.items[].cycleId` | string (uuid) | yes | | |
| `data.items[].businessDate` | string | yes | | |
| `data.items[].seq` | integer | yes | | |
| `data.items[].amount` | string | yes | | |
| `data.journals` | array\<object> | yes | | |
| `data.journals[].id` | string (uuid) | yes | | |
| `data.journals[].kind` | string | yes | | |
| `data.journals[].createdAt` | string | yes | | |
| `data.accruals` | array\<object> | yes | | |
| `data.accruals[].id` | string (uuid) | yes | | |
| `data.accruals[].amount` | string | yes | | |
| `data.clearing` | boolean | yes | | |

### Errors

| Code | Status | Message |
| - | - | - |
| [`AUTH-001`](https://docs.tappay.mn/errors.md#AUTH-001) | 401 | The API key is missing, invalid or revoked. |
| [`EVT-206`](https://docs.tappay.mn/errors.md#EVT-206) | 401 | Production keys are not accepted in the sandbox. Use a sandbox key (sk_test\_/pk_test\_). |
| [`EVT-207`](https://docs.tappay.mn/errors.md#EVT-207) | 401 | Sandbox keys are not accepted in production. Use a production key (sk_live\_/pk_live\_). |
| [`AUTH-018`](https://docs.tappay.mn/errors.md#AUTH-018) | 403 | The request came from an IP address that is not on the key's allowlist. |
| [`AUTH-058`](https://docs.tappay.mn/errors.md#AUTH-058) | 403 | The API key does not have the scope this operation requires. |
| [`SIG-002`](https://docs.tappay.mn/errors.md#SIG-002) | 401 | The request timestamp is outside the allowed time window. |
| [`SIG-003`](https://docs.tappay.mn/errors.md#SIG-003) | 401 | The request signature is missing or does not match. |
| [`SIG-005`](https://docs.tappay.mn/errors.md#SIG-005) | 409 | This request nonce was already used. |
| [`VAL-014`](https://docs.tappay.mn/errors.md#VAL-014) | 400 | The TapPay-Version header is not a known API version. |
| [`BIZ-004`](https://docs.tappay.mn/errors.md#BIZ-004) | 403 | The terminal is not active. |
| [`BIZ-005`](https://docs.tappay.mn/errors.md#BIZ-005) | 403 | The merchant account is not in a state that allows this request. |
| [`EVT-201`](https://docs.tappay.mn/errors.md#EVT-201) | 403 | This operation is not available for the key environment: sandbox-only operations need a sandbox key, and the others need a production key. |

Try it in the playground: https://docs.tappay.mn/reference/payouts/get/

```bash title="curl"
curl -sS "https://api.tappay.mn/api/v1/payouts/00000000-0000-0000-0000-000000000000" \
  -H "Authorization: Bearer sk_test_YOUR_SECRET_KEY" \
  -H "TapPay-Version: 2026-09-27"
```

```js title="Node.js"
import { TapPay, TapPayError } from '@tappay-mn/node';

const tappay = new TapPay({ apiKey: 'sk_test_YOUR_SECRET_KEY' });
try {
  const payout = await tappay.payouts.retrieve({ id: '00000000-0000-0000-0000-000000000000' });
  console.log(JSON.stringify(payout));
} catch (e) {
  if (!(e instanceof TapPayError)) throw e;
  console.log(JSON.stringify({ error: { code: e.code, status: e.status } }));
}
```

```php title="PHP"
<?php
require 'vendor/autoload.php';

use TapPay\TapPay;
use TapPay\Exception\TapPayError;

$tappay = new TapPay(['apiKey' => 'sk_test_YOUR_SECRET_KEY']);
try {
    $payout = $tappay->payouts->retrieve(['id' => '00000000-0000-0000-0000-000000000000']);
    echo json_encode($payout);
} catch (TapPayError $e) {
    echo json_encode(['error' => ['code' => $e->code, 'status' => $e->status]]);
}
```

```python title="Python"
import json
import tappay

client = tappay.TapPay("sk_test_YOUR_SECRET_KEY")
try:
    payout = client.payouts.retrieve({"id": "00000000-0000-0000-0000-000000000000"})
    print(json.dumps(payout))
except tappay.TapPayError as e:
    print(json.dumps({"error": {"code": e.code, "status": e.status}}))
```

```json title="Response"
{
  "success": true,
  "data": {
    "id": "3f6c9a2e-7b41-4d58-9c1a-6e2f08d00000",
    "createdAt": "2026-10-03T08:15:00.000Z",
    "businessDate": "2026-10-03",
    "merchant": {
      "id": "e07d4b36-7b41-4d58-9c1a-6e2f08d00007",
      "name": "Demo Shop LLC",
      "merchantCode": "M-1001"
    },
    "sa": {
      "id": "8d1b4c70-7b41-4d58-9c1a-6e2f08d00001",
      "bankCode": "KHAN",
      "accountNumber": "5012345678"
    },
    "payoutAccount": {
      "id": "a52e7f19-7b41-4d58-9c1a-6e2f08d00002",
      "bankCode": "KHAN",
      "accountLast4": "5678"
    },
    "kind": "MANUAL",
    "policy": null,
    "amount": "50000",
    "payoutFee": "0",
    "manualFee": "500",
    "currency": "MNT",
    "status": "PENDING",
    "statusChangedAt": "2026-10-03T08:15:00.000Z",
    "transfer": null,
    "failureClass": null,
    "failureReason": null,
    "items": [
      {
        "cycleId": "c4d08b63-7b41-4d58-9c1a-6e2f08d00003",
        "businessDate": "2026-10-02",
        "seq": 1,
        "amount": "50000"
      }
    ],
    "journals": [
      {
        "id": "1e9a3d85-7b41-4d58-9c1a-6e2f08d00004",
        "kind": "PAYOUT_REQUEST",
        "createdAt": "2026-10-03T08:15:00.000Z"
      }
    ],
    "accruals": [
      {
        "id": "7b2c6e4f-7b41-4d58-9c1a-6e2f08d00005",
        "amount": "500"
      }
    ],
    "clearing": false
  }
}
```

> **Warning:** **No payouts in the sandbox**
>
> A [sandbox](https://docs.tappay.mn/glossary.md#sandbox) key cannot call any payout operation. TapPay answers with the status `403` and the code `EVT-201`. Use a [production](https://docs.tappay.mn/glossary.md#production) key for this call.

> **Note:** **Wait for PAID**
>
> The status `SCHEDULED` or `IN_TRANSIT` is not money in your bank account yet. Wait for `PAID`.

For the full flow, read the [guide](https://docs.tappay.mn/guides/reports.md).
