POST api/Data/GetVATDetails
Request Information
URI Parameters
None.
Body Parameters
VATRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| APIKey | string |
None. |
|
| TokenAgencyId | integer |
None. |
|
| TokenMemberId | integer |
None. |
|
| AccountCode | string |
None. |
|
| ProductType | string |
None. |
|
| ClientID | string |
None. |
|
| ClientIP | string |
None. |
|
| TokenID | string |
None. |
|
| OriginCountry | string |
None. |
|
| DestinationCountry | string |
None. |
|
| AgencyId | integer |
None. |
|
| IpAddress | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"APIKey": "sample string 1",
"TokenAgencyId": 2,
"TokenMemberId": 3,
"AccountCode": "sample string 4",
"ProductType": "sample string 5",
"ClientID": "sample string 6",
"ClientIP": "sample string 7",
"TokenID": "sample string 8",
"OriginCountry": "sample string 9",
"DestinationCountry": "sample string 10",
"AgencyId": 11,
"IpAddress": "sample string 12"
}
application/xml, text/xml
Sample:
<VATRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestEntities"> <APIKey>sample string 1</APIKey> <AccountCode>sample string 4</AccountCode> <AgencyId>11</AgencyId> <ClientID>sample string 6</ClientID> <ClientIP>sample string 7</ClientIP> <DestinationCountry>sample string 10</DestinationCountry> <IpAddress>sample string 12</IpAddress> <OriginCountry>sample string 9</OriginCountry> <ProductType>sample string 5</ProductType> <TokenAgencyId>2</TokenAgencyId> <TokenID>sample string 8</TokenID> <TokenMemberId>3</TokenMemberId> </VATRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VATResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | ResponseStatus |
None. |
|
| Error | Error |
None. |
|
| TokenId | string |
None. |
|
| CentralMarkUp | CentralMarkUp |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": "NotSet",
"Error": {
"ErrorMsg": "sample string 1",
"ErrorCode": "NotSet"
},
"TokenId": "sample string 1",
"CentralMarkUp": {
"VATMarkupType": "Percentage",
"IsVatApplicable": true,
"VATMarkUpValue": 2.0,
"VATCurrency": "sample string 3",
"Error": {
"ErrorMsg": "sample string 1",
"ErrorCode": "NotSet"
}
}
}
application/xml, text/xml
Sample:
<VATResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ResponseEntities">
<CentralMarkUp>
<Error>
<ErrorCode>NotSet</ErrorCode>
<ErrorMsg>sample string 1</ErrorMsg>
</Error>
<IsVatApplicable>true</IsVatApplicable>
<VATCurrency>sample string 3</VATCurrency>
<VATMarkUpValue>2</VATMarkUpValue>
<VATMarkupType>Percentage</VATMarkupType>
</CentralMarkUp>
<Error>
<ErrorCode>NotSet</ErrorCode>
<ErrorMsg>sample string 1</ErrorMsg>
</Error>
<Status>NotSet</Status>
<TokenId>sample string 1</TokenId>
</VATResponse>