POST v1/shipmentorder/CreateExpressOrder

创建运单

Request Information

URI Parameters

None.

Body Parameters

ShipmentOrderModel
NameDescriptionTypeAdditional information
IsTest

boolean

None.

Carrier

string

None.

CustomerOrderNumber

string

None.

CustomerCode

string

None.

ServiceCode

string

None.

ShipFrom

AddressInfo

None.

ShipTo

AddressInfo

None.

Packages

Collection of Packages

None.

PackageType

PackageType

None.

ReferenceNo1

string

None.

ReferenceNo2

string

None.

SignatureServiceType

string

None.

PickupDate

date

Required

Request Formats

application/json, text/json

Sample:
{
  "IsTest": true,
  "Carrier": "sample string 1",
  "CustomerOrderNumber": "sample string 2",
  "CustomerCode": "sample string 3",
  "ServiceCode": "sample string 4",
  "ShipFrom": {
    "uuid": "sample string 1",
    "city": "sample string 2",
    "name": "sample string 3",
    "email": "sample string 4",
    "addresses": [
      "sample string 1",
      "sample string 2"
    ],
    "postal_code": "sample string 5",
    "country_code": "sample string 6",
    "is_residential": true,
    "state_province_code": "sample string 8",
    "phone": "sample string 9",
    "attention": "sample string 10",
    "address_type": 1
  },
  "ShipTo": {
    "uuid": "sample string 1",
    "city": "sample string 2",
    "name": "sample string 3",
    "email": "sample string 4",
    "addresses": [
      "sample string 1",
      "sample string 2"
    ],
    "postal_code": "sample string 5",
    "country_code": "sample string 6",
    "is_residential": true,
    "state_province_code": "sample string 8",
    "phone": "sample string 9",
    "attention": "sample string 10",
    "address_type": 1
  },
  "Packages": [
    {
      "Dimension": {
        "width": 1.0,
        "height": 2.0,
        "length": 3.0,
        "code": "sample string 4"
      },
      "Weight": {
        "code": "sample string 1",
        "value": 2.0
      },
      "SKU": "sample string 1",
      "Insurance": 1.0,
      "Quantity": 2,
      "SerialNumber": 1
    },
    {
      "Dimension": {
        "width": 1.0,
        "height": 2.0,
        "length": 3.0,
        "code": "sample string 4"
      },
      "Weight": {
        "code": "sample string 1",
        "value": 2.0
      },
      "SKU": "sample string 1",
      "Insurance": 1.0,
      "Quantity": 2,
      "SerialNumber": 1
    }
  ],
  "PackageType": {
    "type": "sample string 1",
    "name": "sample string 2"
  },
  "ReferenceNo1": "sample string 5",
  "ReferenceNo2": "sample string 6",
  "SignatureServiceType": "sample string 7",
  "PickupDate": "2026-11-25T15:59:45.6185649+08:00"
}

application/xml, text/xml

Sample:
<ShipmentOrderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rose.Business.ModelExtension.ExpressOrder">
  <Carrier>sample string 1</Carrier>
  <CustomerCode>sample string 3</CustomerCode>
  <CustomerOrderNumber>sample string 2</CustomerOrderNumber>
  <IsTest>true</IsTest>
  <PackageType>
    <name>sample string 2</name>
    <type>sample string 1</type>
  </PackageType>
  <Packages>
    <Packages>
      <Dimension>
        <code>sample string 4</code>
        <height>2</height>
        <length>3</length>
        <width>1</width>
      </Dimension>
      <Insurance>1</Insurance>
      <Quantity>2</Quantity>
      <SKU>sample string 1</SKU>
      <SerialNumber>1</SerialNumber>
      <Weight>
        <code>sample string 1</code>
        <value>2</value>
      </Weight>
    </Packages>
    <Packages>
      <Dimension>
        <code>sample string 4</code>
        <height>2</height>
        <length>3</length>
        <width>1</width>
      </Dimension>
      <Insurance>1</Insurance>
      <Quantity>2</Quantity>
      <SKU>sample string 1</SKU>
      <SerialNumber>1</SerialNumber>
      <Weight>
        <code>sample string 1</code>
        <value>2</value>
      </Weight>
    </Packages>
  </Packages>
  <PickupDate>2026-11-25T15:59:45.6185649+08:00</PickupDate>
  <ReferenceNo1>sample string 5</ReferenceNo1>
  <ReferenceNo2>sample string 6</ReferenceNo2>
  <ServiceCode>sample string 4</ServiceCode>
  <ShipFrom>
    <address_type>1</address_type>
    <addresses xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </addresses>
    <attention>sample string 10</attention>
    <city>sample string 2</city>
    <country_code>sample string 6</country_code>
    <email>sample string 4</email>
    <is_residential>true</is_residential>
    <name>sample string 3</name>
    <phone>sample string 9</phone>
    <postal_code>sample string 5</postal_code>
    <state_province_code>sample string 8</state_province_code>
    <uuid>sample string 1</uuid>
  </ShipFrom>
  <ShipTo>
    <address_type>1</address_type>
    <addresses xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </addresses>
    <attention>sample string 10</attention>
    <city>sample string 2</city>
    <country_code>sample string 6</country_code>
    <email>sample string 4</email>
    <is_residential>true</is_residential>
    <name>sample string 3</name>
    <phone>sample string 9</phone>
    <postal_code>sample string 5</postal_code>
    <state_province_code>sample string 8</state_province_code>
    <uuid>sample string 1</uuid>
  </ShipTo>
  <SignatureServiceType>sample string 7</SignatureServiceType>
</ShipmentOrderModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.