POST Api/CalculateTax
Request Information
URI Parameters
None.
Body Parameters
ESPL_MODEL_MAIN_TAX_CALCULATION| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemDetails | Collection of ESPL_MODEL_TAX_CALCULATION |
None. |
Request Formats
application/json, text/json
Sample:
{
"ItemDetails": [
{
"ItemCode": "sample string 1",
"TaxCode": "sample string 2",
"TotalBfDisc": 3.1,
"TotalAfDisc": 4.1
},
{
"ItemCode": "sample string 1",
"TaxCode": "sample string 2",
"TotalBfDisc": 3.1,
"TotalAfDisc": 4.1
}
]
}
application/xml, text/xml
Sample:
<ESPL_MODEL_MAIN_TAX_CALCULATION xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ESPL_ERP_API">
<ItemDetails>
<ESPL_MODEL_TAX_CALCULATION>
<ItemCode>sample string 1</ItemCode>
<TaxCode>sample string 2</TaxCode>
<TotalAfDisc>4.1</TotalAfDisc>
<TotalBfDisc>3.1</TotalBfDisc>
</ESPL_MODEL_TAX_CALCULATION>
<ESPL_MODEL_TAX_CALCULATION>
<ItemCode>sample string 1</ItemCode>
<TaxCode>sample string 2</TaxCode>
<TotalAfDisc>4.1</TotalAfDisc>
<TotalBfDisc>3.1</TotalBfDisc>
</ESPL_MODEL_TAX_CALCULATION>
</ItemDetails>
</ESPL_MODEL_MAIN_TAX_CALCULATION>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |