POST api/Logistics/postAddLocationDelivery

Request Information

URI Parameters

None.

Body Parameters

mPostAddLocationDelivery
NameDescriptionTypeAdditional information
Name

string

None.

Country

string

None.

Province

string

None.

District

string

None.

Sub_District

string

None.

Address

string

None.

Zip

string

None.

Contact_Name

string

None.

TaxId

string

None.

tels

Collection of m_tel_lg

None.

fax

Collection of m_fax_lg

None.

roadId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Country": "sample string 2",
  "Province": "sample string 3",
  "District": "sample string 4",
  "Sub_District": "sample string 5",
  "Address": "sample string 6",
  "Zip": "sample string 7",
  "Contact_Name": "sample string 8",
  "TaxId": "sample string 9",
  "tels": [
    {
      "country_code": "sample string 1",
      "phone_number": "sample string 2"
    },
    {
      "country_code": "sample string 1",
      "phone_number": "sample string 2"
    }
  ],
  "fax": [
    {
      "country_code": "sample string 1",
      "fax": "sample string 2"
    },
    {
      "country_code": "sample string 1",
      "fax": "sample string 2"
    }
  ],
  "roadId": 1
}

application/xml, text/xml

Sample:
<mPostAddLocationDelivery xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Logistics">
  <Address>sample string 6</Address>
  <Contact_Name>sample string 8</Contact_Name>
  <Country>sample string 2</Country>
  <District>sample string 4</District>
  <Name>sample string 1</Name>
  <Province>sample string 3</Province>
  <Sub_District>sample string 5</Sub_District>
  <TaxId>sample string 9</TaxId>
  <Zip>sample string 7</Zip>
  <fax>
    <m_fax_lg>
      <country_code>sample string 1</country_code>
      <fax>sample string 2</fax>
    </m_fax_lg>
    <m_fax_lg>
      <country_code>sample string 1</country_code>
      <fax>sample string 2</fax>
    </m_fax_lg>
  </fax>
  <roadId>1</roadId>
  <tels>
    <m_tel_lg>
      <country_code>sample string 1</country_code>
      <phone_number>sample string 2</phone_number>
    </m_tel_lg>
    <m_tel_lg>
      <country_code>sample string 1</country_code>
      <phone_number>sample string 2</phone_number>
    </m_tel_lg>
  </tels>
</mPostAddLocationDelivery>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.