WalletD developers
Accounts

Close an account (terminal; requires zero balance, nothing reserved)

Closes an account for good. Terminal, and deliberately strict: the balance must be exactly zero and no pending may still be active, otherwise the request is refused as invalid with the offending fi...

POST/v1/ledgers/{ledgerId}/accounts/{accountId}/close

Closes an account for good. Terminal, and deliberately strict: the balance must be exactly zero and no pending may still be active, otherwise the request is refused as invalid with the offending figure in the detail. History is never deleted; the account simply stops accepting movement.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

ledgerId*string
Formatuuid
accountId*string
Formatuuid

Response Body

application/problem+json

curl -X POST "https://example.com/v1/ledgers/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/close"
Empty