cURL
curl --request POST \ --url https://api.example.com/accounts/{accountId}:block \ --header 'Content-Type: application/json' \ --data ' { "correlationId": "019bdb2a-960f-789d-8955-21720e6cdef0" } '
{ "type": "https://api.ledger.finventi.com/errors/bad-request", "title": "Bad Request", "status": 400, "detail": "Invalid request body: correlationId is required", "instance": "/accounts/019bdb2a-960f-789d-8955-21720e6cdeed" }
Blocks an account by changing its status to BLOCKED. Returns 202 Accepted when the request is queued for processing.
Account ID
Request to update account status
Unique correlation identifier for tracking the request
"019bdb2a-960f-789d-8955-21720e6cdef0"
Account status change to BLOCKED request accepted