Cancel Payout

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Cancels a payout that is still pending. The amount is refunded to the wallet and a payout_cancelled webhook is sent.

Request:

FieldTypeRequiredDescription
idStringYesThe payout's refid, as returned by Initiate Payout. Not its numeric id

Example request

curl --location 'https://api.myvendy.com/payout/cancel-payout' \
--header 'Content-Type: application/json' \
--header "AccessKey: $VENDY_ACCESS_KEY" \
--header "SecretKey: $VENDY_SECRET_KEY" \
--data '{
    "id": "ebb8c13f-8e59-4d63-b214-09f3225b8cf1"
}'

Response:

FieldTypeDescription
statusBooleanStates if request was successfully executed or not
codeIntegerInternal code, success if 200
msgStringA description of the status of the request
dataJSONEmpty

Example response

{
  "status": true,
  "code": 200,
  "msg": "Payout has been cancelled",
  "error": "Payout has been cancelled",
  "data": {}
}

Possible errors

Error codeDescription
204Input is invalid. id is missing (the message names it payoutId)
329Payout not found. Check you sent the refid
330Payout already processed. Only pending payouts can be cancelled
Body Params
string
required
Defaults to ebb8c13f-8e59-4d63-b214-09f3225b8cf1

The payout's refid (not its numeric id).

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json