Compliance
Close an account
Changed onTransitions an account to closed status (terminal state). This action cannot be undone.
Idempotency
The Idempotency-Key header is required.
post/v0/accounts/{id}/close
Request
- Base URLhttps://api.sandbox.lead.bank
- URLhttps://api.sandbox.lead.bank/v0/accounts/{id}/close
- AuthHTTP bearer
Path parameters
idstring required
The ID of the Account object.
Example:account_xyz123
Account ID
Headers
Idempotency-Keystring required
Unique key to ensure idempotent requests
Request body
Response
Account closed successfully.
Example response
{
"id": "account_xyz123",
"application_id": "application_xyz123",
"details": {
"credit": {
"currency": "USD"
}
},
"documents": [
{
"document_id": "document_2N5Hk8xYmQpL9rBvC3jD",
"version": "v1"
}
]
}Changes
- warning
added the new
autopay_authorizationenum value to the//response property for the response status - warning
added the new
cardholder_agreementenum value to the//response property for the response status - warning
added the new
deposit_agreementenum value to the//response property for the response status - warning
added the new
periodic_statementenum value to the//response property for the response status
- warning