POST /taxRates

Add a new tax rate with the given details.

application/json

Body Required

  • taxRateID integer
  • name string
  • rate number(double)
  • isDefault boolean
  • isActive boolean

Responses

  • 201

    Tax rate created successfully

  • 500

    Error occurred while creating tax rate

POST /taxRates
curl \
 -X POST http://api.example.com/taxRates \
 -H "Content-Type: application/json" \
 -d '{"taxRateID":42,"name":"string","rate":42.0,"isDefault":true,"isActive":true}'
Request example
{
  "taxRateID": 42,
  "name": "string",
  "rate": 42.0,
  "isDefault": true,
  "isActive": true
}