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

# Cancel a Queued Payout

> Cancel a queued payout using the 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 cancel a queued payout. You can cancel only a payout that is in the `queued` state. A payout in the `processing` state cannot be cancelled.

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

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

```json Success theme={null}
{
  "id": "pout_F681qslJ3ba70q",
  "entity": "payout",
  "fund_account_id": "fa_F681qr6Bqy1Je7",
  "amount": 100000,
  "currency": "MYR",
  "notes": {},
  "fees": 0,
  "tax": 0,
  "status": "cancelled",
  "purpose": "payout",
  "utr": null,
  "mode": "IBFT",
  "reference_id": "INV-1042",
  "narration": "Acme Vendor Payment",
  "batch_id": null,
  "status_details": null,
  "created_at": 1795089601
}
```

## Path Parameters

**id** `string` *required*

The unique identifier of the payout that you want to cancel. For example, `pout_F681qslJ3ba70q`.

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

**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 RazorpayX 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.

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