POST api/TIR

Request Information

URI Parameters

None.

Body Parameters

TIRDATA
NameDescriptionTypeAdditional information
HEADER

TIRDATAHEADER

None.

DOCUMENTS

Collection of TIRDATADOCUMENT

None.

ITEMS

Collection of TIRDATAITEM

None.

Request 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:32:34.788994+03:00",
    "cOUNTRYOFFICEField": "sample string 8",
    "oFFICERNAMEField": "sample string 9",
    "aPPROVALDATEField": "2024-11-17T22:32:34.788994+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:32:34.788994+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:32:34.788994+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>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.