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

> List of RazorpayX APIs available in Malaysia to validate beneficiaries and make payouts.

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

You can use our APIs to make payouts in Malaysia. Payouts above the approval amount set for your account are approved on the [RazorpayX Dashboard](https://x.razorpay.com/auth). Payouts below this amount go to the bank directly.

## Before You Start

| Item | Details |
| - | - |
| Base URL | `https://api.razorpay.com/v1` |
| Authentication | HTTP Basic Authentication. Use your API key ID as the username and the key secret as the password. The owner of the account [generates the API keys](https://curlec.com/docs/x/dashboard/api-keys.md) on the Dashboard. |
| IP allowlist | Live API calls work only from your [allowlisted server IPs](https://curlec.com/docs/x/dashboard/allowlist-ip.md). A call from any other IP returns HTTP 401. |
| Request format | JSON. |
| Currency | `MYR`. Amounts are in sen: `100000` is RM 1,000.00. |
| Payout modes | `IBFT` for a bank account and `DUITNOW` for a DuitNow proxy, in upper case. |
| Your account | Send your 16-digit RazorpayX account number as `account_number`. |

## List of APIs

The table below lists the various APIs and gives a brief description of each API:

| API | Description |
| - | - |
| [Composite APIs](https://curlec.com/docs/api/x/payout-composite.md) | APIs to make a payout with the beneficiary inline as `fund_account` with `contact`. You do not need to create a contact or fund account first. |
| [Payout APIs](https://curlec.com/docs/x/payouts/api.md) | APIs to create, fetch or cancel a payout. |
| [Account Validation APIs](https://curlec.com/docs/x/fund-account-validation/api.md) | APIs to validate a bank account or a DuitNow proxy before you pay. The validation is a name enquiry. No amount is credited. |
| [Contacts APIs](https://curlec.com/docs/x/contacts/api.md) | APIs to create, fetch and update a contact to whom payouts can be made. |
| [Fund Account APIs](https://curlec.com/docs/x/fund-accounts/api.md) | APIs to fetch the fund accounts to which payouts are made. Fund accounts are created by composite payouts and composite validations. |
| [Fetch Balance API](https://curlec.com/docs/api/x/account-validation/balance-fetch.md) | API to fetch the balance of your RazorpayX account. |
| [Payout Idempotency](https://curlec.com/docs/api/x/payout-idempotency.md) | The `X-Payout-Idempotency` header that protects you from duplicate payouts. It is mandatory on every payout create request. |

## Errors

* An invalid request returns HTTP 400. `error.field` names the field. No payout is created.
* A wrong key or secret, or a call from an IP that is not allowlisted, returns HTTP 401.
* Malaysia accounts accept the currency `MYR` and the modes `IBFT` and `DUITNOW` only.

```json Error 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"
  }
}
```

### Related Information

* [API Reference](https://curlec.com/docs/api/x.md)
* [Go-Live Checklist](https://curlec.com/docs/x/apis/checklist.md)
* [Subscribe to Webhooks](https://curlec.com/docs/x/apis/subscribe.md)
* [Payouts](https://curlec.com/docs/x/payouts.md)
