Cancel draft transfer
Changed on🚧 Beta feature
This feature is currently in beta testing, and the final specification may still change.
Cancels a draft transfer created via this API. Transitions the draft transfer to declined with statusReason.code set to deleted-by-creator.
Only draft transfers created via this API, and still in pending-review, can be cancelled this way. A 422 is returned if the initiator has already started approving it.
In test mode, this always returns a synthetic declined draft. See Create draft transfer for how to simulate approved and declined outcomes.
Request
- Base URLhttps://api.mollie.com
- URLhttps://api.mollie.com/v2/business-accounts/draft-transfers/{draftTransferId}
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://my.mollie.com/oauth2/authorizeToken URL: https://api.mollie.com/oauth2/tokens scopes: business-account-draft-transfers.write
Headers
A unique key to ensure idempotent requests. This key should be a UUID v4 string.
Request body
Response
The cancelled (declined) draft transfer object.
Example response
{
"resource": "business-account-draft-transfer",
"id": "badrt_87GByBuj4UCcUTEbs6aGJ",
"mode": "live",
"debtorIban": "NL55MLLE0123456789",
"debtor": {
"fullName": "Jan Jansen",
"account": {
"iban": "NL02ABNA0123456789"
}
},
"creditor": {
"fullName": "Jan Jansen",
"account": {
"iban": "NL02ABNA0123456789"
}
},
"amount": {
"currency": "EUR",
"value": "10.00"
},
"description": "Invoice 12345",
"scheduledExecutionDate": "2025-03-01",
"status": "pending-review",
"statusReason": {
"code": "deleted-by-creator",
"message": "The draft transfer has been deleted by the user who created it"
},
"createdAt": "2024-03-20T09:13:37+00:00",
"approvedAt": "2025-01-01T12:05:00+00:00",
"declinedAt": "2025-01-01T12:05:00+00:00",
"deletedAt": "2025-01-01T12:05:00+00:00",
"_links": {
"self": {
"href": "https://api.mollie.com/v2/business-accounts/draft-transfers/badrt_87GByBuj4UCcUTEbs6aGJ",
"type": "application/hal+json"
}
}
}Changes
- warning
removed the optional property
/////from the response with the status
- warning
- info
endpoint added
- info