Skip to main content
PUT
Set realized gain or loss account

Authorizations

X-API-Key
string
header
required

Your organization API key. See Authentication.

Headers

Idempotency-Key
string

Opaque idempotency key; UUIDv4 is recommended. Same key + same body = cached original response. Same key + different body = 422 IDEMPOTENCY_KEY_REUSED. An unusable key (empty, or longer than 256 characters) is ignored and the request runs without replay protection, signalled by X-Idempotency-Applied: false. Keys are retained for 24 hours. Validation failures do not consume the key. Inspect X-Idempotency-Applied and X-Idempotency-Replay on the response.

Required string length: 1 - 256

Body

application/json
purpose
enum<string>
required
Available options:
REALIZED_GAIN_LOSS
ledger_account_id
string
required

Prefixed lac_ id of a ledger account in your organization.

Pattern: ^(lac_)?[a-fA-F0-9]{24}$

Response

Saved realized gain or loss account.

data
object
required