20.03.24 Tax Code

The TaxCode Object

Object PropertyRequiredObject TypeDescriptionMax Character Length
TaxCodeYesStringTaxCode of Task Type10
FormulaYesStringFormula of Task Type10
AccountTaxCodeIdNoIntegerId of Task Type10
IsDisabledNoBooleanDisabled Status of Task Type1

List All TaxCodes

Returns a list of your all TaxCodes in your UNItekTIME account.
GET /API/TaxCodes

Example Request

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

Example Response

[
     {
        "AccountTaxCodeId": 0001,
        "TaxCode": "Airport Tax",
        "Formula": "10.00",
        "IsDisabled": "No"
    },
    {
        "AccountTaxCodeId": 0002,
        "TaxCode": "GST",
        "Formula": "Net * 0.05",
        "IsDisabled": "No"
    }
]

Retrieve a TaxCode

Retrieves the TaxCode with the given ID. Returns a TaxCode object and a 200 OK response code if a valid identifier was provided.
GET /API/TaxCodes/{TaxCode_ID}

Example Request

curl "https://demo.unitektime.com/api/TaxCodes/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

[
     {
        "AccountTaxCodeId": 13949,
        "TaxCode": "Airport Tax",
        "Formula": "10.00",
        "IsDisabled": "No"
    }
]

Create a TaxCode

Creates a TaxCode in your UNItekTIME account and returns the Response Message.
POST /API/TaxCodes
Object PropertyRequiredObject TypeDescriptionMax Character Length
TaxCodeYesStringTaxCode of Task Type10
FormulaYesStringFormula of Task Type10

Example Request

curl "https://demo.unitektime.com/api/TaxCodes" \
      -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 "{'TaxCode': 'demo','Formula':'Net*0.15'}"

Example Response

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

Update a TaxCode

Update an TaxCode in your UNItekTIME account and returns the Response Message.
POST /API/TaxCodes/{TaxCode_ID}

Example Request

curl "https://demo.unitektime.com/api/TaxCodes/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 "{'TaxCode': 'demo'}"

Example Response

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

Delete a TaxCode

Delete a TaxCode. Returns a 200 OK response code if the call succeeded.
DELETE /API/TaxCodes/{TaxCode_ID}

Example Request

curl "https://demo.unitektime.com/api/TaxCodes/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": "TaxCode Delete Successfully"
    }
]