Skip to main content
PUT
Update cost basis settings

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
methodology
enum<string>
required

Cost basis disposal method. Input is case-insensitive. Omit this field to keep the current method.

Available options:
fifo,
lifo,
hifo,
acb,
wacb
accounting_based
enum<string>

Lot tracking scope. wallet tracks lots separately for each wallet. universal tracks lots across wallets. Omit this field to keep the current scope.

Available options:
wallet,
universal

Response

Saved cost-basis settings.

data
object
required