POST api/CommercialInvoice/SaveHSCode

Request Information

URI Parameters

None.

Body Parameters

md_HsCode_new
NameDescriptionTypeAdditional information
models

Collection of md_HSCode

None.

tempData

string

None.

Request Formats

application/json, text/json

Sample:
{
  "models": [
    {
      "model_no": "sample string 1",
      "hs_code": 2.1,
      "hs_code_id": 3
    },
    {
      "model_no": "sample string 1",
      "hs_code": 2.1,
      "hs_code_id": 3
    }
  ],
  "tempData": "sample string 1"
}

application/xml, text/xml

Sample:
<md_HsCode_new xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models">
  <models>
    <md_HSCode>
      <hs_code>2.1</hs_code>
      <hs_code_id>3</hs_code_id>
      <model_no>sample string 1</model_no>
    </md_HSCode>
    <md_HSCode>
      <hs_code>2.1</hs_code>
      <hs_code_id>3</hs_code_id>
      <model_no>sample string 1</model_no>
    </md_HSCode>
  </models>
  <tempData>sample string 1</tempData>
</md_HsCode_new>

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 'md_HsCode_new'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.