POST api/HSCode/ImportExcel

Request Information

URI Parameters

None.

Body Parameters

HSCodeViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Year

integer

None.

Code

string

None.

Description

string

None.

ImportLicenceType

string

None.

ExportLicenceType

string

None.

ImportAutoLicence

string

None.

ExportAutoLicence

string

None.

AutoLicence

string

None.

ImportGroupCode

string

None.

ExportGroupCode

string

None.

ImportOGAId

integer

None.

ExportOGAId

integer

None.

ImportSection

string

None.

ExportSection

string

None.

ImportCardTypeId

integer

None.

ExportCardTypeId

integer

None.

ImportAutoLicenceApprove

string

None.

ExportAutoLicenceApprove

string

None.

AutoLicenceApprove

string

None.

ImportProhibited

string

None.

ExportProhibited

string

None.

ImportRestricted

string

None.

ExportRestricted

string

None.

IsActive

boolean

None.

CreatedUserId

integer

None.

CreatedDate

date

None.

UpdatedUserId

integer

None.

UpdatedDate

date

None.

No

integer

None.

ImportCardTypeName

string

None.

ExportCardTypeName

string

None.

HSYearList

Collection of Object

None.

HSCodeList

Collection of HSCodeViewModel

None.

HSCodeExcelType

string

None.

Unit

string

None.

CMP

string

None.

LicenceFree

string

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'API.Models.HSCodeViewModel'. Path 'HSCodeList'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'API.Models.HSCodeViewModel'. Path 'HSCodeList'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[API.Models.HSCodeViewModel, API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[API.Models.HSCodeViewModel, API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HSCodeViewModel'.

Response Information

Resource Description

Collection of ResponseMessage
NameDescriptionTypeAdditional information
Id

string

None.

ReferenceNo

string

None.

WholeSaleRegistrationId

string

None.

MessageType

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "sample string 1",
    "ReferenceNo": "sample string 2",
    "WholeSaleRegistrationId": "sample string 3",
    "MessageType": 4,
    "Message": "sample string 5"
  },
  {
    "Id": "sample string 1",
    "ReferenceNo": "sample string 2",
    "WholeSaleRegistrationId": "sample string 3",
    "MessageType": 4,
    "Message": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfResponseMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
  <ResponseMessage>
    <Id>sample string 1</Id>
    <Message>sample string 5</Message>
    <MessageType>4</MessageType>
    <ReferenceNo>sample string 2</ReferenceNo>
    <WholeSaleRegistrationId>sample string 3</WholeSaleRegistrationId>
  </ResponseMessage>
  <ResponseMessage>
    <Id>sample string 1</Id>
    <Message>sample string 5</Message>
    <MessageType>4</MessageType>
    <ReferenceNo>sample string 2</ReferenceNo>
    <WholeSaleRegistrationId>sample string 3</WholeSaleRegistrationId>
  </ResponseMessage>
</ArrayOfResponseMessage>