Create Shipment Service

The shipment service is used to prepare each shipment / parcel. It's typically called from software in the customer terminal, as part of a job. Send the shipment addresses (sender / consignee) and parcel details for customs. The service returns a shipping label, and tracking number.

Request Message

Sample request, with return to shipper indicated. Don't specify a return address in this case.     createshipment_noreturn.xml

<xml>
  <shipment service="Parcel Max" account="ABC" datetime="2020-07-18T13:04:53" reference="123-12345" jobnumber="54321" value="250" currency="USD" uom="kg" weight="0.82" returntoshipper="1" originterminal="LHR" merchantARN="12345" purchaserABN="234" GSTexemptioncode="8675309" dutystatus="DDU" taxidcode="GB100569447000">
    <shipper name="ABC Company" attention="Harold Styles" addr1="123 Main Street" addr2="Apartment 123" city="Braeside" state="VIC" country="AU" postal="3195" phone="+61 3 8586 1200" email="support@daipost.com" />
    <consignee name="ABC Company" attention="Harold Styles" addr1="123 Main Street" addr2="Apartment 123" city="Braeside" state="VIC" country="AU" postal="3195" phone="+61 3 8586 1200" email="support@daipost.com" />
    <item description="iPad" qty="5" unit="pc" value="250.00" origin="CN" cpc="1000001" />
  </shipment>
</xml>

Sample request, with multiple items in a single parcel.     createshipment_multipleitems.xml

<xml>
  <shipment service="Parcel Max" datetime="2020-07-18T13:04:53" reference="123-12345" jobnumber="54321" value="260" currency="USD" uom="kg" weight="0.82" originterminal="LHR" dutystatus="DDU">
    <shipper name="ABC Company" attention="Harold Styles" addr1="123 Main Street" addr2="Apartment 123" city="Braeside" state="VIC" country="AU" postal="3195" phone="+61 3 8586 1200" email="support@daipost.com" />
    <consignee name="ABC Company" attention="Harold Styles" addr1="123 Main Street" addr2="Apartment 123" city="Braeside" state="VIC" country="AU" postal="3195" phone="+61 3 8586 1200" email="support@daipost.com" />
    <item description="iPad" qty="5" unit="pc" value="250.00" origin="CN" cpc="1000001" />
    <item description="iPad Case" qty="5" unit="pc" value="10.00" origin="CN" />
  </shipment>
</xml>

XSD / Schema - shipment.xsd Download shipment.xsd

<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="xml">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="shipment" minOccurs="1" maxOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="shipper" minOccurs="1" maxOccurs="1">
                <xs:complexType>
                  <xs:attribute name="name" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="lastname">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="attention">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="addr1" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="addr2">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="addr3">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="city" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="state">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="50" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="country" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="2" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="postal" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="20" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="phone">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="40" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="email">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="150" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="consignee" minOccurs="1" maxOccurs="1">
                <xs:complexType>
                  <xs:attribute name="name" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="lastname">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="attention">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="addr1" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="addr2">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="addr3">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="city" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="state">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="50" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="country" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="2" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="postal" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="20" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="phone">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="40" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="email">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="150" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="return" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                  <xs:attribute name="name" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="lastname">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="attention">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="addr1" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="addr2">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="addr3">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="city" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="80" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="state">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="50" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="country" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="2" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="postal" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="20" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="phone">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="40" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="email">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="150" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="item" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:attribute name="itemcode">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="50" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="description" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="250" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="qty" use="required" type="xs:string" />
                  <xs:attribute name="unit" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="25" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="value" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:fractionDigits value="2" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="hscode">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="30" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="origin">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="2" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="exportreason">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="15" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="cpc">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="7" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="ordernbr">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="50" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="descriptioncn">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="250" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="taxcode">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="50" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="producturl">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="250" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="service" use="required">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="Parcel Max">
                    <!--Parcel Max-->
                  </xs:enumeration>
                  <xs:enumeration value="INTL-S">
                    <!--International Standard-->
                  </xs:enumeration>
                  <xs:enumeration value="DOM-T">
                    <!--Domestic Tracked-->
                  </xs:enumeration>
                  <xs:enumeration value="returnlabel">
                    <!--DAI Return Label-->
                  </xs:enumeration>
                  <xs:enumeration value="Parcel Right">
                    <!--Parcel Right-->
                  </xs:enumeration>
                  <xs:enumeration value="Reship">
                    <!--ReShip Tracked-->
                  </xs:enumeration>
                  <xs:enumeration value="Parcel Max Access">
                    <!--Parcel Max Access-->
                  </xs:enumeration>
                  <xs:enumeration value="Parcel Right International">
                    <!--Parcel Right International-->
                  </xs:enumeration>
                  <xs:maxLength value="20" />
                  <xs:minLength value="1" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="labelformat">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="3" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="account">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="5" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="originterminal">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="8" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="reference" use="required">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="40" />
                  <xs:minLength value="1" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="referencesuffix" type="xs:boolean" />
            <xs:attribute name="datetime" use="required">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="30" />
                  <xs:minLength value="1" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="jobnumber">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="30" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="costcentre">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="50" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="value">
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:fractionDigits value="2" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="currency" use="required">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="3" />
                  <xs:minLength value="1" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="uom" use="required">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="2" />
                  <xs:minLength value="1" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="weight" use="required">
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:fractionDigits value="4" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="leaveatdoor" type="xs:boolean" />
            <xs:attribute name="signature" type="xs:boolean" />
            <xs:attribute name="donotdropship" type="xs:boolean" />
            <xs:attribute name="returntoshipper" type="xs:boolean" />
            <xs:attribute name="dimunit">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="2" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="length">
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:fractionDigits value="2" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="width">
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:fractionDigits value="2" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="height">
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:fractionDigits value="2" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="merchantARN">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="20" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="purchaserABN">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="20" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="GSTexemptioncode">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="20" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="insurance" type="xs:string" />
            <xs:attribute name="insuredvalue">
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:fractionDigits value="2" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="dangerous" type="xs:boolean" />
            <xs:attribute name="iossid">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="50" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="merchanttaxref">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="50" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="gstpaid" type="xs:boolean" />
            <xs:attribute name="dutystatus">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="3" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="dropofflocationid" type="xs:string" />
            <xs:attribute name="taxidcode">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="14" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:sequence>
          <xs:element name="error" minOccurs="0" maxOccurs="unbounded">
            <xs:complexType>
              <xs:attribute name="code" use="required" type="xs:string" />
              <xs:attribute name="description" use="required">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="500" />
                    <xs:minLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
              <xs:attribute name="context">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:sequence>
      <xs:anyAttribute />
    </xs:complexType>
  </xs:element>
</xs:schema>

shipment

Represents a single shipment

NameDescriptionTypeOptionalSample Value
serviceSpecify the level of service for shipment

See reference values for "product"

Text (20)Parcel Max
labelformatPDF or ZPLText (3)OptionalPDF
account3 letter account code, optional except for customers supporting multiple accountsText (5)OptionalABC
originterminal3 Letter IATA code of the origin terminal. Optional for the return service onlyText (8)OptionalLHR
referenceCustomer reference code that uniquely identifies this parcel. The value will be included in the shipping label and invoice data. Duplicate reference values will trigger an error.Text (40)123-12345
referencesuffixUse this field to disable the requirement for unique reference field values. A unique date-time suffix is added to any reference record that previously used the current reference number. When using this setting, customers must ensure that they do not send a parcel more than one time.booleanOptional1
datetimeLocal Date Timedatetime2020-07-18T13:04:53
jobnumberJob number that groups shipments together. Optional if calling the manifest with each shipment in the job.Text (30)Optional54321
costcentreSecondary reference fieldText (50)OptionalProject 123
valueTotal value of all items. Optional for AU to AU shipmentsDecimal (2)Optional10.99
currencyCurrency for shipment and item value. Use 3 character ISO 4217 Currency Code (ie USD, CAD, AUD, GBP, EUR)Text (3)USD
uomUnit of measure (LB or KG. KG by default)Text (2)KG
weightTotal weight of the shipment, in the specified unit of measureDecimal (4)1.123
leaveatdoorInstructs driver to leave at door (incompatible with signature)booleanOptional1
signatureIndicates if a signature is required.booleanOptional1
donotdropshipDelivery driver should not leave the parcel at the door, if no one is there to receive it.booleanOptional1
returntoshipperUse the shipper address for returns, otherwise use the specified return address.booleanOptional
dimunitDimension Unit (IN = inches, CM = Centimeters) Defaults to CM if not specifiedText (2)OptionalCM
lengthLength of Parcel, in the specified dimensional unitsDecimal (2)Optional20.0
widthWidth of Parcel in specified dimensional unitsDecimal (2)Optional15.5
heightHeight of parcel in specified dimensional unitsDecimal (2)Optional3.0
merchantARNMerchant (sub-client) needs to provide the ARN for GST calculationText (20)Optional123456
purchaserABNMerchant to provide ABN of purchaser (if applicable)Text (20)Optional2345
GSTexemptioncodeIf GST has not been charged then provide the exemption codeText (20)Optional12345
insuranceIndicate if you wish to insure the parcel. See your customer contract for insurance coverage terms.Text ()Optional1
insuredvalueInsured value in AUDDecimal (2)Optional100.00
dangerousIndicates dangerous goodsbooleanOptional1
iossidInternational shipment tax referenceText (50)Optional
merchanttaxrefThe seller’s GST registration number for Singapore shipmentsText (50)Optional12345
gstpaidIndicate whether GST has been paid for Singapore shipmentsbooleanOptional1
dutystatusDuty Status/Incoterm valueText (3)OptionalDDP
dropofflocationidDrop-Off Location IDText ()Optional
taxidcodeIs a Retailer/Shipper specific Tax ID required for export/import purposes by customsText (14)OptionalGB100569447000

shipper

Address of shipper or consignee

NameDescriptionTypeOptionalSample Value
namename of shipper or consigneeText (80)ABC Company
lastnameLast name of shipper or consigneeText (80)Optional
attention2nd, optional name of the shipper or consigneeText (80)OptionalHarold Styles
addr1Address line 1Text (80)123 Main Street
addr2Address line 2Text (80)OptionalApartment 123
addr3Address line 3Text (80)Optional
cityCityText (80)Braeside
stateState / Province. Use standard postal abbreviations. Required for AU, USText (50)OptionalVIC
countryISO 3166 Alpha 2 letter country codeText (2)AU
postalPostal CodeText (20)3195
phoneLocal phone numberText (40)Optional+61 3 8586 1200
emailemail address, used for follow-up communicationText (150)Optionalsupport@daipost.com

consignee

Address of shipper or consignee

NameDescriptionTypeOptionalSample Value
namename of shipper or consigneeText (80)ABC Company
lastnameLast name of shipper or consigneeText (80)Optional
attention2nd, optional name of the shipper or consigneeText (80)OptionalHarold Styles
addr1Address line 1Text (80)123 Main Street
addr2Address line 2Text (80)OptionalApartment 123
addr3Address line 3Text (80)Optional
cityCityText (80)Braeside
stateState / Province. Use standard postal abbreviations. Required for AU, USText (50)OptionalVIC
countryISO 3166 Alpha 2 letter country codeText (2)AU
postalPostal CodeText (20)3195
phoneLocal phone numberText (40)Optional+61 3 8586 1200
emailemail address, used for follow-up communicationText (150)Optionalsupport@daipost.com

return

Specify a return address, if the return to shipper is not indicated.

NameDescriptionTypeOptionalSample Value
namename of shipper or consigneeText (80)ABC Company
lastnameLast name of shipper or consigneeText (80)Optional
attention2nd, optional name of the shipper or consigneeText (80)OptionalHarold Styles
addr1Address line 1Text (80)123 Main Street
addr2Address line 2Text (80)OptionalApartment 123
addr3Address line 3Text (80)Optional
cityCityText (80)Braeside
stateState / Province. Use standard postal abbreviations. Required for AU, USText (50)OptionalVIC
countryISO 3166 Alpha 2 letter country codeText (2)AU
postalPostal CodeText (20)3195
phoneLocal phone numberText (40)Optional+61 3 8586 1200
emailemail address, used for follow-up communicationText (150)Optionalsupport@daipost.com

item

Include 1 item element for each item in the shipment. Optional for AU to AU shipments only.

NameDescriptionTypeOptionalSample Value
itemcodeAccount Item identifier / SKUText (50)OptionalSKU-123
descriptionDescription of the item.Text (250)iPad Case
qtyQuantity. The number of items, must be at least 1int5
unitType of item (box, pc, carton)Text (25)pc
valueTotal value for all items. If each piece costs 2.00, and qty=5, then indicate 10.00Decimal (2)10.00
hscodeHarmonization CodeText (30)OptionalOU812
originCountry of origin. Specify the ISO 3166-1 Alpha 2 Letter code for the country of originText (2)OptionalCN
exportreasonIdentifies why the item is being exported (Sale, Gift, etc.)Text (15)OptionalSale
cpc(Customs procedure code) Used to determine nature of export, ie Bonded, Non Bonded etcText (7)Optional1000001
ordernbrSpecific order number of the item to be updatedText (50)Optional1234567890
descriptioncnDescription CN of the itemText (250)Optional商品描述
taxcodeTaxcode of the itemText (50)Optional1234567890
producturlProduct URL of the itemText (250)Optionalhttps://sampleproductURL.com/order/1234567890

Response Message

Sample shipment response with base64 encoded ZPL label.     createshipment_response.xml

<xml>
  <shipmentresponse tracknbr="1234567" label="^XA^CF,0,0,0^PR12^MD30^PW800^POI^CI13^LH0,20&#xA;^FO12...Value Truncated" />
</xml>

Sample shipment with a duplicate reference response.     createshipment_err_response.xml

<xml>
  <shipmentresponse>
    <error code="102" description="Duplicate Reference" context="Shipment reference 123 has already been used." />
  </shipmentresponse>
</xml>

XSD / Schema - shipmentresponse.xsd Download shipmentresponse.xsd

<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="xml">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="shipmentresponse" minOccurs="1" maxOccurs="unbounded">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="error" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:attribute name="code" use="required" type="xs:string" />
                  <xs:attribute name="description" use="required">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="500" />
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="context">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="50" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="tracknbr" use="required">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="30" />
                  <xs:minLength value="1" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="labelformat">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="3" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="label" use="required" type="xs:string" />
            <xs:attribute name="barcode">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="100" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="lodgement">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="10" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:sequence>
          <xs:element name="error" minOccurs="0" maxOccurs="unbounded">
            <xs:complexType>
              <xs:attribute name="code" use="required" type="xs:string" />
              <xs:attribute name="description" use="required">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="500" />
                    <xs:minLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
              <xs:attribute name="context">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:sequence>
      <xs:anyAttribute />
    </xs:complexType>
  </xs:element>
</xs:schema>

shipmentresponse

The shipment response is returned in response to the shipment request. Callers should first check for any error nodes before processing the response. The response contains a tracking number, and shipping label.

NameDescriptionTypeOptionalSample Value
tracknbrTracking Number that can be used for all subsequent tracking requests.Text (30)8675309
labelformatPDF or ZPL returned. ZPL is not base 64 encoded. PDF is based 64 encoded.Text (3)OptionalPDF
labelShipping Label in the specified label formatText ()
barcodeShipment barcode #Text (100)Optional
lodgementShipment lodgement pointText (10)Optional

error

Errors are formatted into error elements / objects. A full list of error codes appears in the reference section of this document.

NameDescriptionTypeOptionalSample Value
codeCode value of the errorint100
descriptionText description of the error messageText (500)Invalid XML
contextError context informationText (50)OptionalError on line 1