The tax object

{
  "id": "016c5fea-5d7c-4555-b460-24852614a352",
  "title": "PST",
  "countryCode": "CA",
  "stateCode": "BC",
  "freight": 5,
  "food": 5,
  "generalMerchandise": 5,
  "wine": 5,
  "taxCalculation": "Added",
  "createdAt": "2018-05-18T16:53:46.620Z",
  "updatedAt": "2018-05-18T16:53:46.620Z"
 }

Create a tax

POST: /tax

{
 "title": "TAX",
 "countryCode": "CA",
 "stateCode": "AB",
 "freight": 5,
 "food": 5,
 "generalMerchandise": 5,
 "wine": 7,
 "taxCalculation": "Added"
}

RESPONSE: responds with a tax object.

Retrieve a tax

GET: /tax/:id

RESPONSE: responds with a tax object.

Update a tax

PUT: /tax/:id

{
 "title": "TAX",
 "countryCode": "CA",
 "stateCode": "BC",
 "freight": 5,
 "food": 5,
 "generalMerchandise": 5,
 "wine": 10,
 "taxCalculation": "Added"
}

RESPONSE: responds with a tax object.

Delete a tax

DELETE: /tax/:id

RESPONSE: responds with a tax object and 204 status.

List all taxes

GET: /tax

RESPONSE: responds with an array of tax objects and a total count.

{
 "taxes": [{
  "id": "54b4f5d6-7f13-4949-bb7d-7c5006e4e887",
  "title": "GST",
  "countryCode": "CA",
  "stateCode": null,
  "freight": 5,
  "food": 5,
  "generalMerchandise": 5,
  "wine": 5,
  "taxCalculation": "Added",
  "createdAt": "2018-05-18T16:53:46.617Z",
  "updatedAt": "2018-05-18T16:53:46.617Z"
 }, {
  "id": "8d6779a4-67b8-4f9e-a1c6-2a9e687bb898",
  "title": "PST",
  "countryCode": "CA",
  "stateCode": "AB",
  "freight": 5,
  "food": 5,
  "generalMerchandise": 5,
  "wine": 5,
  "taxCalculation": "Added",
  "createdAt": "2018-05-18T16:53:46.620Z",
  "updatedAt": "2018-05-18T16:53:46.620Z"
 }, {
  "id": "016c5fea-5d7c-4555-b460-24852614a352",
  "title": "PST",
  "countryCode": "CA",
  "stateCode": "BC",
  "freight": 5,
  "food": 5,
  "generalMerchandise": 5,
  "wine": 5,
  "taxCalculation": "Added",
  "createdAt": "2018-05-18T16:53:46.620Z",
  "updatedAt": "2018-05-18T16:53:46.620Z"
 }, {
  "id": "f7c4e1c4-8519-4a45-9964-c1e26edde280",
  "title": "HST",
  "countryCode": "CA",
  "stateCode": "MB",
  "freight": 5,
  "food": 5,
  "generalMerchandise": 5,
  "wine": 5,
  "taxCalculation": "Instead Of",
  "createdAt": "2018-05-18T16:53:46.620Z",
  "updatedAt": "2018-05-18T16:53:46.620Z"
 }, {
  "id": "1d822f37-89db-490c-81ce-e282f5150fcd",
  "title": "HST",
  "countryCode": "CA",
  "stateCode": "NB",
  "freight": 5,
  "food": 5,
  "generalMerchandise": 5,
  "wine": 5,
  "taxCalculation": "Instead Of",
  "createdAt": "2018-05-18T16:53:46.621Z",
  "updatedAt": "2018-05-18T16:53:46.621Z"
 }],
 "total": 5
}