GET api/GetTaxCodes?TaxCodeID={TaxCodeID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| TaxCodeID | integer |
Default value is -1 |
Body Parameters
None.
Response Information
Resource Description
Collection of MYOBTaxCodes| Name | Description | Type | Additional information |
|---|---|---|---|
| TaxCodeID | integer |
None. |
|
| TaxCode | string |
None. |
|
| TaxCodeDescription | string |
None. |
|
| TaxPercentageRate | decimal number |
None. |
|
| TaxCodeTypeID | string |
None. |
|
| TaxThreshold | decimal number |
None. |
|
| TaxCollectedAccountID | integer |
None. |
|
| TaxPaidAccountID | integer |
None. |
|
| LinkCardID | integer |
None. |
|
| TaxType | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"TaxCodeID": 1,
"TaxCode": "sample string 2",
"TaxCodeDescription": "sample string 3",
"TaxPercentageRate": 1.0,
"TaxCodeTypeID": "sample string 4",
"TaxThreshold": 1.0,
"TaxCollectedAccountID": 1,
"TaxPaidAccountID": 1,
"LinkCardID": 1,
"TaxType": "sample string 5"
},
{
"TaxCodeID": 1,
"TaxCode": "sample string 2",
"TaxCodeDescription": "sample string 3",
"TaxPercentageRate": 1.0,
"TaxCodeTypeID": "sample string 4",
"TaxThreshold": 1.0,
"TaxCollectedAccountID": 1,
"TaxPaidAccountID": 1,
"LinkCardID": 1,
"TaxType": "sample string 5"
}
]
text/html
Sample:
[{"TaxCodeID":1,"TaxCode":"sample string 2","TaxCodeDescription":"sample string 3","TaxPercentageRate":1.0,"TaxCodeTypeID":"sample string 4","TaxThreshold":1.0,"TaxCollectedAccountID":1,"TaxPaidAccountID":1,"LinkCardID":1,"TaxType":"sample string 5"},{"TaxCodeID":1,"TaxCode":"sample string 2","TaxCodeDescription":"sample string 3","TaxPercentageRate":1.0,"TaxCodeTypeID":"sample string 4","TaxThreshold":1.0,"TaxCollectedAccountID":1,"TaxPaidAccountID":1,"LinkCardID":1,"TaxType":"sample string 5"}]
application/xml, text/xml
Sample:
<ArrayOfMYOBTaxCodes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iHubLibrary.DB.Models">
<MYOBTaxCodes>
<LinkCardID>1</LinkCardID>
<TaxCode>sample string 2</TaxCode>
<TaxCodeDescription>sample string 3</TaxCodeDescription>
<TaxCodeID>1</TaxCodeID>
<TaxCodeTypeID>sample string 4</TaxCodeTypeID>
<TaxCollectedAccountID>1</TaxCollectedAccountID>
<TaxPaidAccountID>1</TaxPaidAccountID>
<TaxPercentageRate>1</TaxPercentageRate>
<TaxThreshold>1</TaxThreshold>
<TaxType>sample string 5</TaxType>
</MYOBTaxCodes>
<MYOBTaxCodes>
<LinkCardID>1</LinkCardID>
<TaxCode>sample string 2</TaxCode>
<TaxCodeDescription>sample string 3</TaxCodeDescription>
<TaxCodeID>1</TaxCodeID>
<TaxCodeTypeID>sample string 4</TaxCodeTypeID>
<TaxCollectedAccountID>1</TaxCollectedAccountID>
<TaxPaidAccountID>1</TaxPaidAccountID>
<TaxPercentageRate>1</TaxPercentageRate>
<TaxThreshold>1</TaxThreshold>
<TaxType>sample string 5</TaxType>
</MYOBTaxCodes>
</ArrayOfMYOBTaxCodes>