VAT Rates [API]


Description List available VAT rates
Action GET
URL <your URL here>/api/vat_rates
Sample request parameters (empty – no data required)
Sample Successful Response
[
  {
    "id": 1,
    "name": "Tax Rate",
    "rate": "20.0",
    "created_at": "2016-11-03T02:00:03.000+11:00",
    "updated_at": "2017-11-29T04:48:36.000+11:00"
  },
  {
    "id": 2,
    "name": "Zero Tax",
    "rate": "0.0",
    "created_at": "2016-11-03T02:00:03.000+11:00",
    "updated_at": "2017-11-29T04:48:40.000+11:00"
  },
  {
    "id": 3,
    "name": "21%",
    "rate": "21.0",
    "created_at": "2019-01-15T03:22:25.000+11:00",
    "updated_at": "2019-01-15T03:22:25.000+11:00"
  }
]
		

Description Create VAT Rate
Action POST
URL <your URL here>/api/vat_rates
Sample request parameters
{"name":"NY Rate","rate":"8.875"}
		
Sample Successful Response
{
  "id": 4,
  "name": "NY Rate",
  "rate": "8.875",
  "created_at": "2019-05-15T01:20:48.845-05:00",
  "updated_at": "2019-05-15T01:20:48.845-05:00"
}
		

Description Update VAT rate
Action PATCH/PUT
URL <your URL here>/api/vat_rates/<id of VAT rate>
Sample request parameters
{"name":"NY Rate - update","rate":"8.875"}
		
Sample Successful Response
{
  "id": 4,
  "name": "NY Rate - update",
  "rate": "8.875",
  "created_at": "2019-05-15T18:20:48.000+12:00",
  "updated_at": "2019-05-15T18:23:03.957+12:00"
}
		

Still need help? Contact Us Contact Us