POST
/
v2
/
tax
curl --request POST \
  --url https://api.sonderplan.com/v2/tax \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "GST",
  "rate": "10",
  "code": "CAP: Capital Purchase",
  "compound": false
}'
{
  "success": {
    "id": 2384
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Standard tax model that returns all properties by default

name
string
required

Name of the Tax

Example:

"GST"

rate
number
required

Tax Rate in decimal format (0 -> 100)

Example:

"10"

code
string

An external number or code that identifes this tax

Example:

"CAP: Capital Purchase"

compound
boolean

Compound taxes are calculated on top of primary taxes

Example:

false

Response

200
application/json
Successful Operation
success
object