Openapi
Update a tax code of the specified organization.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidtaxCodeId*stringuuidThe tax code patch payload.
application/jsoncode?string1 <= length <= 32legalEntityId?|uuidname?string1 <= length <= 200rateBps?integer0 <= value <= 100000returnBoxes?array<>items <= 20type?taxCodeTypeSchema"sales""purchase""exempt""zero""reverse_charge""intra_eu_goods""intra_eu_services""export""margin"validFrom?stringdatearchived?booleanReturns the tax code.
application/jsonarchivedAt*|date-timecode*string1 <= lengthid*taxCodeIdSchemauuidlegalEntityId*|uuidname*string1 <= lengthorganizationId*stringuuidpurchaseAccountId*|uuidrates*array<>returnBoxes*array<string>salesAccountId*|uuidtype*taxCodeTypeSchema"sales""purchase""exempt""zero""reverse_charge""intra_eu_goods""intra_eu_services""export""margin"curl -X PATCH 'https://app.localhost/api/v1/organizations/123/tax-codes/123' \ -H 'Content-Type: application/json' \ -d '{}'{ "archivedAt": "2019-08-24T14:15:22Z", "code": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "legalEntityId": "41192155-f2be-4dd0-9ea4-e32ad94824f7", "name": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "purchaseAccountId": "ad192282-9292-4004-b8f1-dedc1ee16664", "rates": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "rateBps": 0, "validFrom": "2019-08-24", "validTo": "2019-08-24" } ], "returnBoxes": [ "string" ], "salesAccountId": "5d295434-90a4-44ec-a58c-c6e6aadd2de7", "type": "sales"}