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

# Create a Payout to a DuitNow Proxy Using Composite API

> Create a payout to a DuitNow proxy in Malaysia using the Composite API.

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).

Use this endpoint to create a payout to a DuitNow proxy using the Composite API. A DuitNow proxy is a mobile number, NRIC, passport number, business registration number or army or police number that is linked to the beneficiary's bank account.

> [!WARNING]
>
> **Watch Out!**
>
> * Call this API only from your allowlisted server IPs. A live call from any other IP returns HTTP 401. Know more about the [IP allowlist](https://curlec.com/docs/x/dashboard/allowlist-ip.md).
> * The `X-Payout-Idempotency` header is mandatory. Pass an [idempotency key](https://curlec.com/docs/api/x/payout-idempotency.md) in it with every payout request.

> [!NOTE]
>
> **Handy Tips**
>
> 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. Know more about the [approval workflow](https://curlec.com/docs/x/manage-teams/approval-workflow.md).

Consider the points given below before you call this API:

* The API creates a contact and a fund account from the details in `fund_account`.
* If the details match a contact and fund account that already exist on your account, the API reuses them and returns their details. It does not create duplicates.
* Use the [Update Contact API](https://curlec.com/docs/api/x/contacts/update.md) to change an existing contact.
* The response returns `fund_account.id`. You can pass it as `fund_account_id` to [pay the same beneficiary again](https://curlec.com/docs/api/x/payouts/create/bank-account.md).

To understand the status of the payouts, refer to [Payout Status Details](https://curlec.com/docs/x/payouts/status-details.md).

```bash Curl theme={null}
curl -u <YOUR_KEY_ID>:<YOUR_KEY_SECRET> \
-X POST https://api.razorpay.com/v1/payouts \
-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": "Acme Contact ID 12345"
    }
  },
  "reference_id": "INV-1042",
  "narration": "Acme Vendor Payment"
}'
```

```json Success theme={null}
{
  "id": "pout_F681qslJ3ba70q",
  "entity": "payout",
  "fund_account_id": "fa_F681qr6Bqy1Je8",
  "fund_account": {
    "id": "fa_F681qr6Bqy1Je8",
    "entity": "fund_account",
    "contact_id": "cont_F681qmU11CfPDl",
    "account_type": "duitnow",
    "duitnow": {
      "proxy_type": "MBNO",
      "proxy_value": "+60*****6789",
      "name": "Aishah Binti Rahman"
    },
    "active": true,
    "created_at": 1795089601
  },
  "amount": 5000,
  "currency": "MYR",
  "notes": {},
  "fees": 0,
  "tax": 0,
  "status": "pending",
  "purpose": "payout",
  "utr": null,
  "mode": "DUITNOW",
  "reference_id": "INV-1042",
  "narration": "Acme Vendor Payment",
  "batch_id": null,
  "status_details": null,
  "created_at": 1795089601
}
```

```json Failure theme={null}
{
  "error": {
    "code": "BAD_REQUEST_ERROR",
    "description": "passport_issuing_country is required for proxy_type PSPT",
    "source": "business",
    "step": "fund_account_validation",
    "reason": "input_validation_failed",
    "field": "fund_account.duitnow.passport_issuing_country"
  }
}
```

## Passport Proxy

To pay a passport proxy, set `proxy_type` to `PSPT` and pass `passport_issuing_country`. Only the `duitnow` object changes. The rest of the request stays the same.

```json theme={null}
"duitnow": {
  "proxy_type": "PSPT",
  "proxy_value": "A12345678",
  "passport_issuing_country": "IDN",
  "name": "Budi Santoso"
}
```

## Header Parameters

**X-Payout-Idempotency** `string` *required*

A unique key that you generate for the request. This header is mandatory on every payout create request. Use the same key when you retry the same payout. For example, `53cda91c-8f81-4e77-bbb9-7388f4ac6bf4`. Know more about [payout idempotency](https://curlec.com/docs/api/x/payout-idempotency.md).

## Request Parameters

**account\_number** `string` *required*

Your RazorpayX account number. The payout amount and fees are debited from this account. It is a 16-digit number that starts with `818181` and is shown on the Dashboard. For example, `8181810000000000`.

> [!WARNING]
>
> **Watch Out!**
>
> This is your RazorpayX account number. It is **not** the beneficiary's bank account number.

**amount** `integer` *required*

The payout amount, in sen. For example, pass `100000` to transfer RM 1,000.00. The amount does not include fees. Fees, if any, are debited from your RazorpayX account balance.

**currency** `string` *required*

The payout currency. Here, it is `MYR`.

**mode** `string` *required*

The mode used to create the payout. Here, it is `DUITNOW`. The mode is case-sensitive. Enter it in upper case.

**purpose** `string` *required*

The purpose of the payout. Possible values:

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

**fund\_account** `object` *required*

Details of the contact and the fund account to which the payout is made.

**fund\_account.account\_type** `string` *required*

The type of fund account. Here, it is `duitnow`.

**fund\_account.duitnow** `object` *required*

The beneficiary's DuitNow proxy details.

**fund\_account.duitnow\.proxy\_type** `string` *required*

The type of DuitNow proxy. Possible values:

* `MBNO`: Mobile number
* `NRIC`: NRIC number
* `PSPT`: Passport number
* `BREG`: Business registration number
* `ARMN`: Army or police number

**fund\_account.duitnow\.proxy\_value** `string` *required*

The proxy value. Maximum length is 255 characters. For example, `+60123456789`.

* For `MBNO`, you can pass the mobile number starting with `0`, `60` or `+60`.
* For `NRIC`, you can pass the number with dashes and spaces.

**fund\_account.duitnow\.name** `string` *required*

The beneficiary's name. Between 3 and 120 characters. For example, `Aishah Binti Rahman`.

**fund\_account.duitnow\.passport\_issuing\_country** `string`

The three-letter code of the country that issued the passport. For example, `IDN`. Required when `proxy_type` is `PSPT`. Do not pass it for other proxy types.

**fund\_account.contact** `object` *required*

Details of the contact to whom the payout is made.

**fund\_account.contact.name** `string` *required*

The beneficiary's name. For example, `Aishah Binti Rahman`.

**fund\_account.contact.type** `string`

Classification for the contact. For example, `vendor`, `customer` or `employee`.

**fund\_account.contact.reference\_id** `string`

Your reference for the beneficiary. For example, `Acme Contact ID 12345`.

**queue\_if\_low\_balance** `boolean`

Possible values:

* `true`: The payout is queued when your RazorpayX account does not have enough balance to process it. Top up your account to process the payout. Know more about [queued payouts](https://curlec.com/docs/x/payouts/queued.md).
* `false` (default): The payout is never queued. The payout fails if your RazorpayX account does not have enough balance to process it.

**reference\_id** `string`

Your reference for the payout. Maximum length is 40 characters. For example, `INV-1042`. You can use this field to store your own transaction ID.

**narration** `string`

The text shown on the beneficiary's bank statement. For example, `Acme Vendor Payment`.

**notes** `object`

Key-value pairs that you can use to store additional information about the payout. Maximum 15 key-value pairs. For example, `"invoice": "INV-1042"`.

## Response Parameters

**id** `string`

The unique identifier of the payout. For example, `pout_F681qslJ3ba70q`. Use it to fetch the payout.

**entity** `string`

The entity returned. Here, it is `payout`.

**fund\_account\_id** `string`

The unique identifier of the fund account to which the payout is made. For example, `fa_F681qr6Bqy1Je8`.

**fund\_account** `object`

The fund account created or reused for the beneficiary.

**fund\_account.id** `string`

The unique identifier of the fund account. For example, `fa_F681qr6Bqy1Je8`. You can pass it as `fund_account_id` in [later payouts](https://curlec.com/docs/api/x/payouts/create/bank-account.md).

**fund\_account.entity** `string`

Here, it is `fund_account`.

**fund\_account.contact\_id** `string`

The unique identifier of the contact linked to the fund account. For example, `cont_F681qmU11CfPDl`.

**fund\_account.account\_type** `string`

The type of fund account. Here, it is `duitnow`.

**fund\_account.duitnow** `object`

The beneficiary's DuitNow proxy details.

**fund\_account.duitnow\.proxy\_type** `string`

The type of DuitNow proxy: `MBNO`, `NRIC`, `PSPT`, `BREG` or `ARMN`.

**fund\_account.duitnow\.proxy\_value** `string`

The proxy value, masked to its last four characters. For example, `+60*****6789`.

**fund\_account.duitnow\.name** `string`

The beneficiary's name. For example, `Aishah Binti Rahman`.

**fund\_account.active** `boolean`

Possible values:

* `true`: The fund account is active.
* `false`: The fund account is inactive.

**fund\_account.created\_at** `integer`

Unix timestamp at which the fund account was created. For example, `1795089601`.

**amount** `integer`

The payout amount, in sen. For example, `100000` is RM 1,000.00. The amount does not include fees. Fees, if any, are debited from your RazorpayX account balance.

**currency** `string`

The payout currency. Here, it is `MYR`.

**notes** `object`

Key-value pairs that store additional information about the payout. Maximum 15 key-value pairs.

**fees** `integer`

The fees for the payout, in sen.

**tax** `integer`

The tax on the fees. No tax is charged on Malaysian payout fees, so this is always `0`.

**status** `string`

The status of the payout. Possible values:

* `pending`: Created and waiting for a checker to approve it on the Dashboard. This applies to payouts above the approval amount set for your account.
* `queued`: Waiting for balance or a processing window.
* `processing`: Sent to the bank.
* `processed`: The beneficiary is credited. This is a final status.
* `failed`: The payout failed. The reason is in `status_details`. This is a final status.
* `reversed`: The beneficiary was credited and the bank then returned the amount. This is a final status.
* `rejected`: Rejected by the checker. This is a final status.
* `cancelled`: Cancelled before processing. This is a final status.

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

**purpose** `string`

The purpose of the payout. Possible values:

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

**utr** `string`

The 30-character PayNet reference for the payout: the date (YYYYMMDD), the sending bank's BIC (8 characters), the transaction code (3), the channel (3) and an 8-digit sequence. It is `null` until the payout is processed. For example, `20261120XXXXMYKL010OBB12345678`.

**mode** `string`

The mode used to make the payout. Possible values:

* `IBFT`: A payout to a bank account at a Malaysian bank.
* `DUITNOW`: A payout to a DuitNow proxy.

Here, it is `DUITNOW`.

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

**reference\_id** `string`

Your reference for the payout. For example, `INV-1042`.

**narration** `string`

The text shown on the beneficiary's bank statement. For example, `Acme Vendor Payment`.

**batch\_id** `string`

This parameter is populated if the payout was created as part of a batch upload.

**status\_details** `object`

The reason for the current status of the payout, when there is one. Otherwise, it is `null`. Know more about [payout status details](https://curlec.com/docs/x/payouts/status-details.md).

**status\_details.description** `string`

A description of the current status. For example, `Payout is processed and the amount has been credited.`

**status\_details.reason** `string`

The reason for the current status. For example, `payout_processed`.

**status\_details.source** `string`

The source of the status. For example, `beneficiary_bank` for a processed payout.

**created\_at** `integer`

Unix timestamp at which the payout was created. For example, `1795089601`.

## Errors

* A payout with mode `IBFT` must use `account_type` `bank_account` with one SWIFT `routing` entry. A payout with mode `DUITNOW` must use `account_type` `duitnow`.
* Malaysia accounts accept the currency `MYR` and the modes `IBFT` and `DUITNOW` only.
* A request that does not meet these rules returns HTTP 400. `error.field` names the field. No payout is created.
* An incorrect API key or key secret, or a call from an IP address that is not on your allowlist, returns HTTP 401.

The Failure sample on this page shows the response when `passport_issuing_country` is missing for a `PSPT` proxy.
