GET api/TIR?pTIRNumber={pTIRNumber}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
pTIRNumber | string |
Required |
Body Parameters
None.
Response Information
Resource Description
TIRDATAName | Description | Type | Additional information |
---|---|---|---|
HEADER | TIRDATAHEADER |
None. |
|
DOCUMENTS | Collection of TIRDATADOCUMENT |
None. |
|
ITEMS | Collection of TIRDATAITEM |
None. |
Response Formats
application/json, text/json
Sample:
{ "hEADERField": { "sUBMITTERField": "sample string 1", "tIRNUMBERField": "sample string 2", "pORTNAMEField": "sample string 3", "sUPPLYCOUNTRYField": "sample string 4", "cONTACTPERSONField": "sample string 5", "eXPORTERCOMPANYField": "sample string 6", "iNSPECTIONDATEField": "2024-11-17T22:48:28.1982603+03:00", "cOUNTRYOFFICEField": "sample string 8", "oFFICERNAMEField": "sample string 9", "aPPROVALDATEField": "2024-11-17T22:48:28.1982603+03:00" }, "dOCUMENTSField": [ { "tYPEField": "sample string 1", "pATHField": "sample string 2" }, { "tYPEField": "sample string 1", "pATHField": "sample string 2" } ], "iTEMSField": [ { "sERIALNUMBERField": 1, "oRIGINCOUNTRYField": "sample string 2", "iNVOICENUMBERField": "sample string 3", "iNVOICEDATEField": "2024-11-17T22:48:28.1982603+03:00", "qUANTITYField": 5, "cATEGORYField": "sample string 6", "pRODUCTDESCRIPTIONField": "sample string 7", "lICENCETERREFField": "sample string 8" }, { "sERIALNUMBERField": 1, "oRIGINCOUNTRYField": "sample string 2", "iNVOICENUMBERField": "sample string 3", "iNVOICEDATEField": "2024-11-17T22:48:28.1982603+03:00", "qUANTITYField": 5, "cATEGORYField": "sample string 6", "pRODUCTDESCRIPTIONField": "sample string 7", "lICENCETERREFField": "sample string 8" } ] }
application/xml, text/xml
Sample:
<TIRDATA xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <HEADER> <SUBMITTER>sample string 1</SUBMITTER> <TIRNUMBER>sample string 2</TIRNUMBER> <PORTNAME>sample string 3</PORTNAME> <SUPPLYCOUNTRY>sample string 4</SUPPLYCOUNTRY> <CONTACTPERSON>sample string 5</CONTACTPERSON> <EXPORTERCOMPANY>sample string 6</EXPORTERCOMPANY> <INSPECTIONDATE>2024-11-17</INSPECTIONDATE> <COUNTRYOFFICE>sample string 8</COUNTRYOFFICE> <OFFICERNAME>sample string 9</OFFICERNAME> <APPROVALDATE>2024-11-17</APPROVALDATE> </HEADER> <DOCUMENTS> <DOCUMENT> <TYPE>sample string 1</TYPE> <PATH>sample string 2</PATH> </DOCUMENT> <DOCUMENT> <TYPE>sample string 1</TYPE> <PATH>sample string 2</PATH> </DOCUMENT> </DOCUMENTS> <ITEMS> <ITEM> <SERIALNUMBER>1</SERIALNUMBER> <ORIGINCOUNTRY>sample string 2</ORIGINCOUNTRY> <INVOICENUMBER>sample string 3</INVOICENUMBER> <INVOICEDATE>2024-11-17</INVOICEDATE> <QUANTITY>5</QUANTITY> <CATEGORY>sample string 6</CATEGORY> <PRODUCTDESCRIPTION>sample string 7</PRODUCTDESCRIPTION> <LICENCETERREF>sample string 8</LICENCETERREF> </ITEM> <ITEM> <SERIALNUMBER>1</SERIALNUMBER> <ORIGINCOUNTRY>sample string 2</ORIGINCOUNTRY> <INVOICENUMBER>sample string 3</INVOICENUMBER> <INVOICEDATE>2024-11-17</INVOICEDATE> <QUANTITY>5</QUANTITY> <CATEGORY>sample string 6</CATEGORY> <PRODUCTDESCRIPTION>sample string 7</PRODUCTDESCRIPTION> <LICENCETERREF>sample string 8</LICENCETERREF> </ITEM> </ITEMS> </TIRDATA>