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
}
}
WRITE
access to the ADMIN
module is required to access this endpointcurl --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
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Standard tax model that returns all properties by default
Successful Operation
The response is of type object
.