Tax API

Get all TaxCodes
URL /TaxCodes
Method GET
Body

 

Response

[
{
"Id": 1,
"Name": "Tax",
"Description": "Taxable Sales",
"Taxable": true,
"QuickBooksNumber": 1
},
{
"Id": 2,
"Name": "Non",
"Description": "Non-Taxable Sales",
"Taxable": false,
"QuickBooksNumber": 2
}
]

Comments

 

  Create TaxCode
URL /TaxCode/Create
Method POST
Body

{
"Name":"taxname",
"Description":"description",
"QuickBooksNumber":"432",
"Taxable":"true"
}

Response

{
"Id": 4,
"Name": "taxname",
"Description": "description",
"Taxable": true,
"QuickBooksNumber": 432
}

Comments

 

  Update TaxCode
URL /TaxCode
Method PUT
Body

{
"Id": 4,
"Name": " new taxname",
"Description": "description",
"Taxable": "false",
"QuickBooksNumber": 432
}

Response

{
"Id": 4,
"Name": " new taxname",
"Description": "description",
"Taxable": false,
"QuickBooksNumber": 432
}

Comments

 

  Delete TaxCode
URL /TaxCode/{id}
Method DELETE
Body

 

Response

Response Model - status code 200 or error message with 400 code 

Comments

 

 

TaxNames

 

  Get all TaxNames
URL /TaxNames
Method GET
Body

 

Response

[
{
"Id": 1019,
"Name": "California",
"TaxRates": [
{
"Name": "California",
"Rate": 0.08,
"QuickBooksNumber": "3"
}
],
"QuickBooksId": "2"
},
{
"Id": 1021,
"Name": "Tucson",
"TaxRates": [
{
"Name": "AZ State tax",
"Rate": 0.071,
"QuickBooksNumber": "1"
},
{
"Name": "Tucson City",
"Rate": 0.02,
"QuickBooksNumber": "2"
}
],
"QuickBooksId": "3"
}
]

Comments

 

  Create TaxName
URL /TaxName/Create
Method POST
Body

{
"Name":"name",
"TaxRates":
[ {
"Name":"rate name",
"Rate":"2",
"QuickBooksNumber":31,
"QuickBooksId":480
}],
"QuickBooksId":400
}

Response

{
"Id": 1023,
"Name": "name",
"TaxRates": [
{
"Name": "rate name",
"Rate": 0.02,
"QuickBooksNumber": "31"
}
],
"QuickBooksId": "400"
}

Comments

 

  Update TaxName
URL /TaxName
Method PUT
Body

{
"Id": 1023,
"Name": "new name",
"TaxRates": [
{
"Name": "new rate name",
"Rate": 0.0002,
"QuickBooksNumber": "31"
}
],
"QuickBooksId": "400"
}

Response

{
"Id": 1023,
"Name": "new name",
"TaxRates": [
{
"Name": "new rate name",
"Rate": 0.0002,
"QuickBooksNumber": "31"
}
],
"QuickBooksId": "400"
}

Comments

 

  Delete TaxName
URL /TaxName/{id}
Method DELETE
Body

 

Response

Response Model - status code 200 or error message with 400 code 

Comments