Update an account
Changed onUpdates properties on an existing account.
Note: To manage entity relationships, use the /entity_relationships endpoints. Status changes should use dedicated endpoints (/activate, /deactivate, /close).
Idempotency
The Idempotency-Key header is required.
Request
- Base URLhttps://api.sandbox.lead.bank
- URLhttps://api.sandbox.lead.bank/v0/accounts/{id}
- AuthHTTP bearer
Path parameters
The ID of the Account object.
Account ID
Headers
Unique key to ensure idempotent requests
Request body
Example request
{
"application_id": "application_xyz123",
"details": {
"credit": {
"currency": "USD"
}
},
"documents": [
{
"document_id": "document_2N5Hk8xYmQpL9rBvC3jD",
"version": "v1"
}
]
}Response
Account updated 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 - info
added the new
autopay_authorizationenum value to the request property/// - info
added the new
autopay_authorizationenum value to the request property// - info
added the new
cardholder_agreementenum value to the request property/// - info
added the new
cardholder_agreementenum value to the request property// - info
added the new
deposit_agreementenum value to the request property/// - info
added the new
deposit_agreementenum value to the request property// - info
added the new
periodic_statementenum value to the request property/// - info
added the new
periodic_statementenum value to the request property//
- warning