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.
Scope: taxes.read_write
- Taxes Read & Write
Request Body
{"tax"=>"<string>", "country_id"=>"<number>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status":"\u003cnumber\u003e","success":"\u003cboolean\u003e","data":{"id":"\u003cnumber\u003e","tax":"\u003cnumber\u003e","status":"\u003cstring\u003e","country":"\u003cstring\u003e"}}