Set the tax jurisdiction.
PATCH
/api/users/me/tax-jurisdiction
const url = 'https://api.tradr.cloud/api/users/me/tax-jurisdiction';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"taxJurisdiction":"US"}'};
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-jurisdiction \ --header 'Content-Type: application/json' \ --data '{ "taxJurisdiction": "US" }'Authed. US applies wash-sale rules, CA superficial-loss rules; other and null apply neither. Changing it re-derives the tax summary and alters nothing that is stored.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
taxJurisdiction
required
string
Responses
Section titled “Responses”The stored jurisdiction.
Validation error.