Update a tax category

PATCH https://{{subdomain}}.commercelayer.io/api/tax_categories/{{tax_category_id}}

Request Body

{"data"=>{"type"=>"tax_categories", "id"=>"{{tax_category_id}}", "attributes"=>{"code"=>"{{tax_category_code}}", "reference"=>"{{tax_category_reference}}", "metadata"=>"{{tax_category_metadata}}"}, "relationships"=>{"sku"=>{"data"=>{"type"=>"skus", "id"=>"{{tax_category_rel_id}}"}}}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

{"data":{"id":"xYZkjABcde","type":"tax_categories","links":{"self":"https://yourdomain.commercelayer.io/api/tax_categories/xYZkjABcde"},"attributes":{"code":"31000","sku_code":"TSHIRTMM000000FFFFFFXLXX","created_at":"2018-01-01T12:00:00.000Z","updated_at":"2018-01-01T12:00:00.000Z","reference":"ANY-EXTERNAL-REFEFERNCE","reference_origin":"ANY-EXTERNAL-REFEFERNCE-ORIGIN","metadata":{"foo":"bar"}},"relationships":{"sku":{"links":{"self":"https://yourdomain.commercelayer.io/api/tax_categories/xYZkjABcde/relationships/sku","related":"https://yourdomain.commercelayer.io/api/tax_categories/xYZkjABcde/sku"}},"tax_calculator":{"links":{"self":"https://yourdomain.commercelayer.io/api/tax_categories/xYZkjABcde/relationships/tax_calculator","related":"https://yourdomain.commercelayer.io/api/tax_categories/xYZkjABcde/tax_calculator"}},"attachments":{"links":{"self":"https://yourdomain.commercelayer.io/api/tax_categories/xYZkjABcde/relationships/attachments","related":"https://yourdomain.commercelayer.io/api/tax_categories/xYZkjABcde/attachments"}},"versions":{"links":{"self":"https://yourdomain.commercelayer.io/api/tax_categories/xYZkjABcde/relationships/versions","related":"https://yourdomain.commercelayer.io/api/tax_categories/xYZkjABcde/versions"}}},"meta":{"mode":"test"}}}