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

# Get Started

> Get started with the RazorpayX APIs to make payouts in Malaysia.

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 cannot sign up for RazorpayX on your own. Razorpay Curlec reviews your request and sets up your RazorpayX account. Know more about [availability](https://curlec.com/docs/x/availability.md) and [account set-up](https://curlec.com/docs/x/set-up.md).

Once your account is set up, you can use the APIs to make payouts in MYR to bank accounts in Malaysia (mode `IBFT`) and to DuitNow proxies (mode `DUITNOW`). To make a payout:

1. Create a [composite payout](https://curlec.com/docs/api/x/payout-composite.md). You send the beneficiary inline as `fund_account` with `contact`. You do not need a separate contact or fund account call.
2. If the payout is above the approval amount set for your account, a checker on your team approves it on the RazorpayX Dashboard. Until then, the payout status is `pending`. Payouts below this amount go to the bank directly.
3. Track the payout using [webhooks](https://curlec.com/docs/x/apis/subscribe.md) or the [Fetch Payout With ID](https://curlec.com/docs/api/x/payouts/fetch-with-id.md) API.

> [!WARNING]
>
> **Watch Out!**
>
> According to PCI regulations, payout processing is allowed on **TLS version 1.2** or higher. RazorpayX will not acknowledge APIs if they are triggered without **TLS version 1.2** or higher.

> [!NOTE]
>
> **Handy Tips**
>
> It is assumed that you have already added funds to your RazorpayX account. You cannot do this using the APIs. Top up before you make a payout. Know more about [how to add funds to your RazorpayX account](https://curlec.com/docs/x/account.md).

## Payout APIs

The following API sections are available for Malaysia. Know more about the [RazorpayX APIs](https://curlec.com/docs/x/apis.md).

> [card] [Composite Payouts](https://curlec.com/docs/api/x/payout-composite.md)
>
> Create a payout to a bank account or a DuitNow proxy in a single request.

> [card] [Payouts](https://curlec.com/docs/api/x/payouts.md)
>
> Create a payout to a saved fund account, and fetch or cancel payouts.

> [card] [Payout Idempotency](https://curlec.com/docs/api/x/payout-idempotency.md)
>
> Pass the mandatory `X-Payout-Idempotency` header on every payout create request.

> [card] [Composite Account Validation](https://curlec.com/docs/api/x/composite-account-validation.md)
>
> Validate a bank account or a DuitNow proxy with the beneficiary details inline.

> [card] [Account Validation](https://curlec.com/docs/api/x/account-validation.md)
>
> Fetch fund account validations and their details.

> [card] [Balance](https://curlec.com/docs/api/x/account-validation/balance-fetch.md)
>
> Fetch the balance of your RazorpayX account.

> [card] [Contacts](https://curlec.com/docs/api/x/contacts.md)
>
> Create, update and fetch contacts.

> [card] [Fund Accounts](https://curlec.com/docs/api/x/fund-accounts.md)
>
> Fetch the fund accounts created by your payouts and validations.

## API Gateway URL

The Gateway URL for the RazorpayX APIs is `https://api.razorpay.com/v1`. Include it before each API endpoint to make API calls. For example, use the URL `https://api.razorpay.com/v1/payouts` to access payout resources.

## API Authentication

All our APIs are authenticated using Basic Auth. Basic auth requires the following:

* `<YOUR_KEY_ID>` as the username
* `<YOUR_KEY_SECRET>` as the password

```bash Curl theme={null}
curl -u <YOUR_KEY_ID>:<YOUR_KEY_SECRET> \
-X GET https://api.razorpay.com/v1/banking_balances
```

The API key identifies your RazorpayX account. A request with a missing or incorrect key ID or key secret returns HTTP 401.

### Generate API Key

RazorpayX API keys are generated on the RazorpayX Dashboard. Only the owner of the RazorpayX account can generate them.

To generate your API keys:

1. Log in to your [RazorpayX Dashboard](https://x.razorpay.com/) as the owner.
2. Navigate to the user icon on the top-right of the screen, and to **My Account & Settings** → **Developer Controls**.
3. In the **API Keys** section, click **GENERATE KEY**, or **REGENERATE KEY** if you want to generate your API keys again.
4. Click **Download Key Details** to download your API keys for future reference.

> [!WARNING]
>
> **Watch Out!**
>
> After you generate the keys on the Dashboard, download and save them securely. The key secret is shown only once, at the time of key generation.
>
> If you lose the key secret, regenerate the keys on the [RazorpayX Dashboard](https://x.razorpay.com/settings/developer-controls) and replace them in your integration. Regeneration asks for an OTP. You can deactivate the old key immediately or within 24 hours.

Know more about [API keys](https://curlec.com/docs/x/dashboard/api-keys.md).

## IP Allowlist

Live API calls work only from your allowlisted server IPs. A call from any other IP address returns HTTP 401. To add or change your server IPs, contact your account manager before you make the change. Know more about the [IP allowlist](https://curlec.com/docs/x/dashboard/allowlist-ip.md).

## Errors

| HTTP status | Reason |
| - | - |
| 400 | The request is invalid. `error.field` names the field that failed validation. No payout is created. |
| 401 | The key ID or key secret is missing or incorrect, or the request was made from an IP address that is not on your allowlist. |

Malaysia accounts accept the currency `MYR` and the modes `IBFT` and `DUITNOW` only.

## Rate Limits

Razorpay employs a **request rate limiter** that limits the number of requests received by the API within a time window. This is to maintain system stability in the event of unintentional high traffic loads.

While integrating with APIs, watch for `HTTP status code 429` and build the retry mechanism based on the requirement.

To make the best use of the limits, we recommend that you use an exponential backoff or stepped backoff strategy to reduce request volume and stay within the limit. We also recommend some randomisation within the backoff schedule to avoid the [thundering herd effect](https://en.wikipedia.org/wiki/Thundering_herd_problem).

## Webhooks

[Set up webhooks](https://curlec.com/docs/x/apis/subscribe.md) to receive notifications when a payout or a fund account validation changes status. When one of these events is triggered, we send an HTTP POST [payload](https://curlec.com/docs/webhooks) in JSON to the webhook's configured URL.

### Related Information

* [Set up your RazorpayX account](https://curlec.com/docs/x/set-up.md)
* [Your RazorpayX account](https://curlec.com/docs/x/account.md)
* [Go-live checklist](https://curlec.com/docs/x/apis/checklist.md)
