POST api/Shipment/GetLabel

Request Information

URI Parameters

None.

Body Parameters

ShipInfo
NameDescriptionTypeAdditional information
ShipNo

string

None.

CusShipNo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ShipNo": "sample string 1",
  "CusShipNo": "sample string 2"
}

text/xml

Sample:
<ShipInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webapitest.Controllers">
  <CusShipNo>sample string 2</CusShipNo>
  <ShipNo>sample string 1</ShipNo>
</ShipInfo>

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

Response Information

Resource Description

Collection of ShipLabel
NameDescriptionTypeAdditional information
result

integer

None.

code

string

None.

msg

string

None.

data

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "result": 1,
    "code": "sample string 2",
    "msg": "sample string 3",
    "data": "sample string 4"
  },
  {
    "result": 1,
    "code": "sample string 2",
    "msg": "sample string 3",
    "data": "sample string 4"
  }
]

text/xml

Sample:
<ArrayOfShipLabel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webapitest.Models">
  <ShipLabel>
    <code>sample string 2</code>
    <data>sample string 4</data>
    <msg>sample string 3</msg>
    <result>1</result>
  </ShipLabel>
  <ShipLabel>
    <code>sample string 2</code>
    <data>sample string 4</data>
    <msg>sample string 3</msg>
    <result>1</result>
  </ShipLabel>
</ArrayOfShipLabel>