Cancel payout
Changed onCancel a payout. A payout can only be canceled while it has the status requested. Once the payout moves to initiated, it is too late to cancel.
The canceled payout object is returned with the status set to canceled.
Request
- Base URLhttps://api.mollie.com
- URLhttps://api.mollie.com/v2/payouts/{payoutId}
- Auth
- HTTP bearer
- or HTTP bearer
Query parameters
Most API credentials are specifically created for either live mode or test mode. In those cases the testmode query parameter must not be sent. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting the testmode query parameter to true.
Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
Headers
A unique key to ensure idempotent requests. This key should be a UUID v4 string.
Response
The canceled payout object.
Example response
{
"resource": "payout",
"id": "payout_j8NvRAM2WNZtsykpLEX8J",
"balanceId": "bal_gVMhHKqSSRYJyPsuoPNFH",
"amount": {
"currency": "EUR",
"value": "10.00"
},
"description": "My payout description",
"status": "requested",
"statusReason": {
"code": "requested",
"message": "The payout has been requested."
},
"createdAt": "2024-03-20T09:13:37+00:00",
"initiatedAt": "2024-03-20T09:13:40+00:00",
"completedAt": "2024-03-20T14:00:00+00:00",
"mode": "live",
"_links": {
"self": {
"href": "https://...",
"type": "application/hal+json"
},
"documentation": {
"href": "https://...",
"type": "application/hal+json"
}
}
}Changes
- breaking
the response property
became nullable for the status
- breaking
- info
the endpoint scheme security
oAuthwas removed from the API
- info