Set the tax lot method.
PATCH
/api/users/me/tax-lot-method
const url = 'https://api.tradr.cloud/api/users/me/tax-lot-method';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"taxLotMethod":"fifo"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.tradr.cloud/api/users/me/tax-lot-method \ --header 'Content-Type: application/json' \ --data '{ "taxLotMethod": "fifo" }'Authed. fifo or average overrides the jurisdiction default; null returns to it. Changes only the stored method — no fill, lot choice or ledger row changes.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
taxLotMethod
required
string
Responses
Section titled “ Responses ”The stored and effective lot method.
Validation error.