Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<header>
  <consignmentlist>
    <consignment>
      <creationdata> ... </creationdata>
      <part> ... </part>
      <pdinstructions> ... </pdinstructions>
      <transportservice> ... </transportservice>
      <reference> ... </reference>
      <paymentinstructions> ... </paymentinstructions>
      <goodsitem> ... </goodsitem>
</consignment> </consignmentlist>
<invoicing></invoicing>
</header>

Despite the name, there can only be one <consignment> element in the <consignmentlist> element.

There may be multiple <part> elements, these are identified by a part attribute.

<othercharges> contains 0 or more <othercharge> elements.

Values

Dates are specified as YYYY-MM-DD. Time is specified as HH:MM. Date+time is specified as YYYY-MM-DD HH:MM.

...

doctype is either STDBOOK or CCSBOOK or GROUPED.  The value CCSBOOK is used when CCS has processed the booking. GROUPED means that multiple shipments are included in the <consignmentlist>.

test is 1 if this is a test booking.

...

<customertype> can have the following values


customertypedescription
CSACustomer Standard Account
GAGlobal Account
KAKey Account
SAStandard Account
STAStrategic Account


Part

There may be multiple <part> elements. A <part> element is idenfitied by the role attribute, which can be either consignor, consignee, ordering, pickup or delivery, eg.

...

<pdinstructions>
  <pickup>
    <pdate>2015-12-31</pdate>
    <earliest>07:30</earliest>
    <latest>20:30</latest>
    <pinstructions>Please call in advance</pinstructions>
    <pickupbycarrier>no</pickupbycarrier>
  </pickup>
  <delivery>
    <ddate>2016-01-07</ddate>
    <dinstructions>Leave package behind the building</dinstructions>
  </delivery>
</pdinstructions>

The elements <pickupbycarrier>, <ddate>, <pinstructions> and <dinstructions> are optional.

<pickupbycarrier> is only allowed for DHL and TNT shipments; it defaults to no. 

Transport service

The <transportservice> element holds some of the following elements:

<transportservice>
  <product>Airfreight Basic</product>
  <productid>AS3</productid>
<tsproductid>CX</tsproductid> <userselectedproduct>Airfreight <userselectedproduct>43<Discount</userselectedproduct> <userselectedproductid>Airfreight Discount<<userselectedproductid>AS3</userselectedproductid> <deliverytype>DD</delivertype> <combiterms>DAP</combiterms> <todcountry>DE</todcountry> <todcity>Berlin</todcity> <reliabletoduty>yes</reliabletoduty> <goodsvalue>123.2</goodsvalue> <goodscurrency>DKK</goodscurrency> <unb>DKCPH</unb> <officeid>123</officeid> <pickuptransportcompany>Bobs Parcel Service<pickuptransportcompany> <trade>export</trade> <pickupagent>DHL</pickupagent> </transportservice>

...

<paymentinstructions>
  <paymentmethod>Collect</paymentmethod>
  <accountno>2342343234</accountno>
  <dhlvalue>234</dhlvalue>
  <dhlcurrency>DKK</dhlcurrency>
<generateinvoice>no</generateinvoice> </paymentinstructions>

<paymentmethod> can be either Collect, Prepaid or 3. party.

If <generateinvoice> is set to yes then the carrier will generate the invoice (DHL only).

Goods items

There may be multiple <goodsitem> elements; each holds some of the following elements:

<goodsitem>
  <noofpackages>3</noofpackages>
  <licenceplate>2342342342342342</licenseplate>
  <weight>12.34</weight>
  <volume>0.008</volume>
  <width>20</width>
  <length>20</length>
  <height>20</height>
  <packagetype>Drum</packagetype>
  <packagecode>DRM</packagecode>
  <goodsdescribetion>Stuff and stuff</goodsdescription>
  <shippingmark>More stuff</shippingmark>
  <dangerous>yes</dangerous>
  <article>
    <articlenumber>1</articlenumber>
    <articlename>Stuff</articlename>
    <articlequantity>3</articlequantity>
    <articleunitprice>30</articleunitprice>
    <articlecurrency>DKK</articlecurrency>
  </article>
  <chargeableweight>1.6</chargeableweight>

</goodsitem>

<article>, <width>, <length> and <height> are optional. There may be multiple <article>.

...

<confirmation>
  <p2></p2>
  <p3></p3>
  <distributionnote></distributionnote>
  <confirmationnote></confirmationnote>
</confirmation>

Invoicing

The <invoicing> element holds the following:

<totals>
  <pricing>123.32</pricing>
  <pricing-currency>DKK</pricing-currency>
  <costing>98.33</costing>
  <costing-currency>DKK</costing-currency>
</totals>