Create Tax

POST {{baseUrl}}/taxes

This endpoint allows you to create a new tax and return the corresponding tax id.

You must add tax rate and specify which country that tax will be applied to by providing a country id.

Note: you can get country id from List Countries Endpoint.

Request Body

{"tax"=>"<string>", "country_id"=>"<number>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;tax&quot;:&quot;\u003cnumber\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;,&quot;country&quot;:&quot;\u003cstring\u003e&quot;}}