> ## Documentation Index
> Fetch the complete documentation index at: https://curlec.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# About Payouts

> Create payouts by API, approve payouts above the approval amount on the RazorpayX Dashboard and track each payout to its final status.

Available in
🇲🇾 Malaysia

> [!NOTE]
>
> RazorpayX payouts in Malaysia are available on request. RazorpayX is not enabled on Razorpay Curlec accounts by default. To enquire about RazorpayX for your business, [contact our Support team](https://curlec.com/docs/payments/dashboard/support.md).

Payouts are transfers from your RazorpayX account to your beneficiaries in Malaysia. You can pay a bank account at a Malaysian bank by instant interbank transfer (IBFT) or a DuitNow proxy such as a mobile number, NRIC or business registration number.

A payout is made to a [Fund account](https://curlec.com/docs/x/fund-accounts.md) associated with a [Contact](https://curlec.com/docs/x/contacts.md). The Contact is the beneficiary (a person or a business) and the Fund account is the bank account or DuitNow proxy that receives the money.

The payout amount and fees are debited from your RazorpayX account balance. No tax is charged on payout fees in Malaysia. If the bank returns a payout, the amount is credited back to your balance. Know more about the [payout life cycle](https://curlec.com/docs/x/payouts/states-life-cycle.md).

> [!WARNING]
>
> **Watch Out!**
>
> * Payout modes are case-sensitive. Send `IBFT` or `DUITNOW` in upper case.
> * Send your own RazorpayX account number in `account_number`. This is the 16-digit number that starts with 818181, shown on the RazorpayX Dashboard. Do not send the beneficiary's account number in this field.
> * Live API calls work only from your allowlisted server IPs. A call from any other IP returns HTTP 401. Know more about the [IP allowlist](https://curlec.com/docs/x/dashboard/allowlist-ip.md).

## How to Make Payouts

1. Add funds to your RazorpayX account. Know how to [top up your account](https://curlec.com/docs/x/account.md).
2. Create the payout by API.
3. If the payout is above the approval amount set for your account, approve it on the Dashboard.
4. Track the payout until it reaches a final status.

### Create a Payout

You create payouts using the Payouts API. There are two ways:

* **Composite payout**: Send the beneficiary inline as `fund_account` with `contact`. RazorpayX creates the Contact, the Fund account and the payout in one call. You do not need a separate contact or fund account call. Refer to [composite payout to a bank account](https://curlec.com/docs/api/x/payout-composite/create/bank-account.md) and [composite payout to a DuitNow proxy](https://curlec.com/docs/api/x/payout-composite/create/duitnow.md).
* **Payout to a saved Fund account**: Send the `fund_account_id` of a Fund account that an earlier composite payout or validation created. Refer to [create a payout](https://curlec.com/docs/api/x/payouts/create/bank-account.md).

The sample below creates a composite payout of RM 1,000.00 to a bank account by IBFT.

```bash Curl theme={null}
curl -X POST https://api.razorpay.com/v1/payouts \
  -u <YOUR_KEY_ID>:<YOUR_KEY_SECRET> \
  -H "Content-Type: application/json" \
  -H "X-Payout-Idempotency: 53cda91c-8f81-4e77-bbb9-7388f4ac6bf4" \
  -d '{
    "account_number": "8181810000000000",
    "amount": 100000,
    "currency": "MYR",
    "mode": "IBFT",
    "purpose": "payout",
    "fund_account": {
      "account_type": "bank_account",
      "bank_account": {
        "name": "Siti Aminah",
        "account_number": "1234567890",
        "routing": [{ "type": "SWIFT", "code": "MBBEMYKL" }]
      },
      "contact": {
        "name": "Siti Aminah",
        "type": "vendor",
        "reference_id": "Acme Contact ID 12345"
      }
    },
    "reference_id": "INV-1042",
    "narration": "Acme Vendor Payment"
  }'
```

The sample below creates a composite payout of RM 50.00 to a DuitNow proxy (a mobile number).

```bash Curl theme={null}
curl -X POST https://api.razorpay.com/v1/payouts \
  -u <YOUR_KEY_ID>:<YOUR_KEY_SECRET> \
  -H "Content-Type: application/json" \
  -H "X-Payout-Idempotency: 53cda91c-8f81-4e77-bbb9-7388f4ac6bf4" \
  -d '{
    "account_number": "8181810000000000",
    "amount": 5000,
    "currency": "MYR",
    "mode": "DUITNOW",
    "purpose": "payout",
    "fund_account": {
      "account_type": "duitnow",
      "duitnow": {
        "proxy_type": "MBNO",
        "proxy_value": "+60123456789",
        "name": "Aishah Binti Rahman"
      },
      "contact": {
        "name": "Aishah Binti Rahman",
        "type": "customer"
      }
    },
    "reference_id": "INV-1042",
    "narration": "Acme Vendor Payment"
  }'
```

Amounts are in sen. `100000` is RM 1,000.00.

> [!NOTE]
>
> **Handy Tips**
>
> The `X-Payout-Idempotency` header is mandatory on every payout create request. Send a unique key in it, so that a retried request never pays twice. Know more about [idempotency](https://curlec.com/docs/api/x/payout-idempotency/make-request.md).

### Approve a Payout

Payouts above the approval amount set for your account wait for a checker on your team to approve them on the RazorpayX Dashboard. Until then, the payout status is `pending`. Payouts below this amount go to the bank directly. A payout that the checker rejects moves to the `rejected` state and is not sent to the bank.

Know more about the [approval workflow](https://curlec.com/docs/x/manage-teams/approval-workflow.md).

### Track a Payout

* Subscribe to [webhooks](https://curlec.com/docs/x/apis/subscribe.md) to receive each status change. Subscribe to `payout.failed` in particular. Without it, a failed payout is reported to you as `payout.reversed`.
* [Fetch the payout](https://curlec.com/docs/api/x/payouts/fetch-with-id.md) by its ID to read its latest `status`, `utr` and `status_details`.
* View your payouts on the Dashboard.

Know more about [payout status details](https://curlec.com/docs/x/payouts/status-details.md).

### Payout Purpose

Every payout carries a `purpose`. It gives the payout context and makes reconciliation easier. The following values are available:

* `payout`
* `salary`
* `utility bill`
* `vendor bill`

Use `narration` for the text shown on the beneficiary's statement and `reference_id` (up to 40 characters) for your own reference, such as an invoice number.

## Cancel Payouts

You can cancel a payout while it is in the [`queued`](https://curlec.com/docs/x/payouts/states-life-cycle#queued) state using the [Cancel a Queued Payout API](https://curlec.com/docs/api/x/payouts/cancel.md). A cancelled payout moves to the `cancelled` state and is not sent to the bank. A payout in the `processing` state cannot be cancelled.

### Actions

| Action | Where |
| - | - |
| Create a payout | API |
| Approve or reject a payout | Dashboard |
| View payout details | API and Dashboard |
| Cancel a queued payout | API |

Know more about creating [payouts using APIs](https://curlec.com/docs/x/payouts/api.md).

## Payout Modes and TAT

RazorpayX accounts in Malaysia accept the currency `MYR` and two payout modes.

| Mode | Pays | Fund account type | Processing time |
| - | - | - | - |
| `IBFT` | A bank account at a Malaysian bank | `bank_account` | Near-instant |
| `DUITNOW` | The account linked to a DuitNow proxy | `duitnow` | Near-instant |

Know more about [payout modes](https://curlec.com/docs/x/payouts/modes.md), including how to identify the beneficiary for each mode.

### Related Information

* [Payout Modes](https://curlec.com/docs/x/payouts/modes.md)
* [Payout Life Cycle and States](https://curlec.com/docs/x/payouts/states-life-cycle.md)
* [Payout Status](https://curlec.com/docs/x/payouts/status-details.md)
* [Payout Best Practices](https://curlec.com/docs/x/payouts/best-practices.md)
