Skip to main content

Cancel Payout

API to cancel a pending fund withdrawal (payout) request for the authenticated user. Only requests currently in RECEIVED status can be cancelled. Once a request moves to processing, it can no longer be cancelled. IMPS requests cannot be cancelled once initiated.

Request

curl --location --request DELETE 'https://api.upstox.com/v2/user/payments/payout/{transaction_id}' \
--header 'accept: application/json' \
--header 'Authorization: Bearer {your_access_token}'

Replace {transaction_id} with the transaction_id returned by the Payout Request API.

Additional samples in various languages are available in the Sample Code section on this page.

Responses

Response Body

{
"status": "success",
"data": {
"transaction_id": "ABC123XYZ-GC0173-7HIMPSABC",
"message": "Your withdrawal request of Amount 110.10 is deleted successfully."
}
}
NameTypeDescription
statusstringOutcome of the request.
dataobjectCancellation confirmation record.
data.transaction_idstringUnique identifier of the cancelled payout transaction.
data.messagestringUser-facing confirmation message.

Sample Code

Cancel payout

import requests

transaction_id = 'ABC123XYZ-GC0173-7HIMPSABC'
url = f'https://api.upstox.com/v2/user/payments/payout/{transaction_id}'
headers = {
'accept': 'application/json',
'Authorization': 'Bearer {your_access_token}',
}
print(requests.delete(url, headers=headers).json())
Loading...