ShiwakeDocs
Accounts

/ledger/accounts/{accountId}/rename-code

Repair an account's code within this tenant. Exists for the mis-templated-product incident class: an account created under a wrong AccountCodeTemplate breaks every code-addressed posting (e.g. a payout capture) AFTER money has moved. Balances, journal lines and holds reference the account by ID, so renaming the code is safe: only future code lookups change. Codes stay unique per tenant.

POST
/api/v1/ledger/accounts/{accountId}/rename-code
X-Api-Key<token>

Tenant API key (sk_live_…), minted from the platform console.

In: header

Path Parameters

accountId*string

Header Parameters

Idempotency-Key*string

Unique key for this write. Retrying with the same key replays the original response instead of applying the write twice.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Platform-ops repair: change an account's code (see PlatformTenantInspectionController).

Response Body

curl -X POST "https://example.com/api/v1/ledger/accounts/string/rename-code" \  -H "Idempotency-Key: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
Empty
Edit on GitHub

Last updated on