The TaxZone Object

Object Property Required Object Type Description Max Character Length
AccountTaxZone Yes String TaxZone of Taxzone 10
AccountTaxZoneId No Integer Id of Taxzone 10
IsDisabled No Boolean Disabled Status of Taxzone 1

List All TaxZones

Returns a list of your all TaxZones in your TimeLive account.

GET /API/TaxZones

Example Request

curl "https://demo.livetecs.com/api/TaxZones" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "Content-Type: application/json" \
      -H "User-Agent: MyApp (yourname@example.com)"

Example Response

[
     {
        "AccountTaxZoneId": 0001,
        "AccountTaxZone": "Default",
        "IsDisabled": "No"
    },
    {
        "AccountTaxZoneId": 0002,
        "AccountTaxZone": "Sample",
        "IsDisabled": "No"
    }
]

Retrieve a TaxZone

Retrieves the TaxZone with the given ID. Returns a TaxZone object and a 200 OK response code if a valid identifier was provided.

GET /API/TaxZones/{TaxZone_ID}

Example Request

curl "https://demo.livetecs.com/api/TaxZones/0001" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "Content-Type: application/json" \
      -H "User-Agent: MyApp (yourname@example.com)"

Example Response

[
     {
        "AccountTaxZoneId": 0001,
        "AccountTaxZone": "Default",
        "IsDisabled": "No"
    }
]

Create a TaxZone

Creates a TaxZone in your TimeLive account and returns the Response Message.

POST /API/TaxZones
Object Property Required Object Type Description Max Character Length
AccountTaxZone Yes String TaxZone of Taxzone 10

Example Request

curl "https://demo.livetecs.com/api/TaxZones" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "User-Agent: MyApp (yourname@example.com)" \
      -X POST \
      -H "Content-Type: application/json" \
      -d "{'AccountTaxZone': 'demo'}"

Example Response

[
    {
        "id": "00001",
        "message": "Tax Zone Added Successfully"
    }
]

Update a TaxZone

Update an TaxZone in your TimeLive account and returns the Response Message.

POST /API/TaxZones/{TaxZone_ID}

Example Request

curl "https://demo.livetecs.com/api/TaxZones/0001" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "User-Agent: MyApp (yourname@example.com)" \
      -X POST \
      -H "Content-Type: application/json" \
      -d "{'AccountTaxZone': 'demo'}"

Example Response

[
    {
        "id": "0001",
        "message": "Tax Zone Updated Successfully"
    }
]

Delete a TaxZone

Delete a TaxZone. Returns a 200 OK response code if the call succeeded.

DELETE /API/TaxZones/{TaxZone_ID}

Example Request

curl "https://demo.livetecs.com/api/TaxZones/0001" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "User-Agent: MyApp (yourname@example.com)" \
      -X DELETE \
      -H "Content-Type: application/json"

Example Response

[
    {
        "id": "0001",
        "message": "Tax Zone Deleted Successfully"
    }
]