> For the complete documentation index, see [llms.txt](https://docs.tendar.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tendar.co/documentation/buy-now-pay-later/withdrawals.md). Agents can also search and read this documentation through its [MCP server](https://docs.tendar.co/~gitbook/mcp).

# Merchant Withdrawals

Your merchants are paid into a wallet when their sales are disbursed. To take the money out, a merchant asks for a withdrawal to its bank account, and you, its financing company, approve or reject it.

All endpoints need your secret key. You only see the requests of merchants signed up under your company.

### How it works

***

{% stepper %}
{% step %}

#### The merchant asks

From its dashboard, with its PIN, the merchant asks for an amount to one of its verified bank accounts. The amount is held on its wallet at once, so it can't be asked for twice.
{% endstep %}

{% step %}

#### You decide

* **You paid it yourself:** approve with `with_provider: false` and your proof of payment. The request is `success` at once.
* **Tendar pays it:** approve with `with_provider: true`. Tendar sends the money to the merchant's bank account. The request stays `pending` until the bank confirms, then becomes `success` — or `failed`, and the money goes back to the merchant's wallet.
* **Reject it:** the money goes back to the merchant's wallet.
  {% endstep %}
  {% endstepper %}

| Status     | Meaning                                                                         |
| ---------- | ------------------------------------------------------------------------------- |
| `pending`  | Waiting for you, or for the bank after you approved with `with_provider: true`. |
| `success`  | Paid. The amount has left the merchant's wallet.                                |
| `rejected` | You rejected it. The money is back on the wallet.                               |
| `failed`   | The transfer failed. The money is back on the wallet.                           |

### List and fetch requests

***

| Action | Endpoint                                   |
| ------ | ------------------------------------------ |
| List   | `GET /api/v1/withdrawal-request/list`      |
| Fetch  | `GET /api/v1/withdrawal-request/fetch/:id` |

The list takes these [query params](https://docs.tendar.co/documentation/getting-started/query-params.md): `status`, `user` (one merchant's ID), `reference`, `currency`, `amount`, `search`, `created_at`, `date_by`, `sort-created_at` and `sort-updated_at`.

```
GET /api/v1/withdrawal-request/list?status=pending
```

**Response** `200 OK` — fetch

```json
{
  "error": false,
  "message": "Success",
  "data": {
    "id": "6708b2c3d4e5f6a7b8c9d0f1",
    "user": {
      "id": "66fb2a1c3d4e5f6a7b8c9d02",
      "user_id": "66fb2a1c3d4e5f6a7b8c9d01",
      "first_name": "Tunde",
      "last_name": "Adeyemi",
      "email": "tunde@adeyemi-electronics.com",
      "phone": "+2348051234567",
      "role": "merchant",
      "image": ""
    },
    "user_type": "merchant",
    "amount": 150000,
    "currency": "NGN",
    "status": "pending",
    "reason": "Restocking",
    "beneficiary": {
      "id": "6708a9b8c7d6e5f4a3b2c1d0",
      "account_name": "ADEYEMI ELECTRONICS LTD",
      "account_number": "0123456789",
      "bank_name": "Guaranty Trust Bank",
      "bank_code": "058"
    },
    "reference": "wdr-6708b2c3d4e5f6a7",
    "rejection_reason": "",
    "proof_of_payment": "",
    "approver": "64b000000000000000000001",
    "created_at": "2026-10-11T08:00:00.000Z",
    "updated_at": "2026-10-11T08:00:00.000Z"
  }
}
```

| Field                                  | Description                                   |
| -------------------------------------- | --------------------------------------------- |
| `user`                                 | The merchant. `user_id` is the merchant's ID. |
| `beneficiary`                          | The bank account to pay.                      |
| `reason`                               | The merchant's reason.                        |
| `rejection_reason`, `proof_of_payment` | Yours, when you rejected or paid it.          |
| `approver`                             | Your company's ID.                            |

### Approve a request

***

```
POST /api/v1/withdrawal-request/approve/:id
```

**Request body**

```json
{ "with_provider": true }
```

| Field              | Required | Description                                                  |
| ------------------ | -------- | ------------------------------------------------------------ |
| `with_provider`    | Yes      | `true`: Tendar pays it. `false`: you already paid it.        |
| `proof_of_payment` | No       | Your receipt, such as a file URL, when you paid it yourself. |

**Response** `200 OK`

```json
{ "error": false, "message": "Withdrawal request approved" }
```

With `with_provider: true`, the request settles on its own once the bank confirms. To check it now, call:

```
POST /api/v1/withdrawal-request/transfer/verify/:id
```

```json
{ "data": { "reference": "wdr-6708b2c3d4e5f6a7" } }
```

It returns `200` once the transfer has a final result, or `400` `Transfer is still pending`. Fetch the request to see its status.

### Reject a request

***

```
POST /api/v1/withdrawal-request/reject/:id
```

```json
{ "rejection_reason": "Bank account name does not match the business name" }
```

| Field              | Required | Description            |
| ------------------ | -------- | ---------------------- |
| `rejection_reason` | No       | Shown to the merchant. |

**Response** `200 OK`

```json
{ "error": false, "message": "Withdrawal request rejected" }
```

### Errors

***

| Status | Message                                           | Cause                                               |
| ------ | ------------------------------------------------- | --------------------------------------------------- |
| 400    | `The with provider field is required.`            | `with_provider` is missing.                         |
| 400    | `only pending withdrawal request can be approved` | It's already decided, or its transfer is under way. |
| 400    | `only pending withdrawal request can be rejected` | It's already decided, or its transfer is under way. |
| 400    | `Transfer is still pending`                       | The bank hasn't confirmed yet. Try again later.     |
| 404    | `withdrawal request not found`                    | No request with that ID from your merchants.        |

See [Error](https://docs.tendar.co/documentation/getting-started/error.md) for the error format.

### Next steps

***

* [Merchant](https://docs.tendar.co/documentation/buy-now-pay-later/merchant.md) — how merchants sign up and get paid.
* [Transactions](https://docs.tendar.co/documentation/buy-now-pay-later/transactions.md) — the purchases that fill their wallets.
