POST api/TIR/InsertTIRData_Base64

Request Information

URI Parameters

None.

Body Parameters

TIRDATA_Base64
NameDescriptionTypeAdditional information
header

TIRDATA_Base64HEADER

None.

documents

Collection of TIRDATA_Base64DOCUMENT

None.

items

Collection of TIRDATA_Base64ITEM

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": "sample string 7",
    "cOUNTRYOFFICEField": "sample string 8",
    "oFFICERNAMEField": "sample string 9",
    "aPPROVALDATEField": "2024-11-17T22:20:23.6563952+03:00"
  },
  "dOCUMENTSField": [
    {
      "tYPEField": "sample string 1",
      "fileNameField": "sample string 2",
      "fileBase64StringField": "sample string 3"
    },
    {
      "tYPEField": "sample string 1",
      "fileNameField": "sample string 2",
      "fileBase64StringField": "sample string 3"
    }
  ],
  "iTEMSField": [
    {
      "sERIALNUMBERField": 1,
      "oRIGINCOUNTRYField": "sample string 2",
      "iNVOICENUMBERField": "sample string 3",
      "iNVOICEDATEField": "2024-11-17T22:20:23.6563952+03:00",
      "qUANTITYField": 5.0,
      "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:20:23.6563952+03:00",
      "qUANTITYField": 5.0,
      "cATEGORYField": "sample string 6",
      "pRODUCTDESCRIPTIONField": "sample string 7",
      "lICENCETERREFField": "sample string 8"
    }
  ]
}

application/xml, text/xml

Sample:
<TIRDATA_Base64 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>sample string 7</INSPECTIONDATE>
    <COUNTRYOFFICE>sample string 8</COUNTRYOFFICE>
    <OFFICERNAME>sample string 9</OFFICERNAME>
    <APPROVALDATE>2024-11-17</APPROVALDATE>
  </HEADER>
  <DOCUMENTS>
    <DOCUMENT>
      <TYPE>sample string 1</TYPE>
      <FileName>sample string 2</FileName>
      <FileBase64String>sample string 3</FileBase64String>
    </DOCUMENT>
    <DOCUMENT>
      <TYPE>sample string 1</TYPE>
      <FileName>sample string 2</FileName>
      <FileBase64String>sample string 3</FileBase64String>
    </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_Base64>

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.