Skip to main content

GS1 field reference

Hii Retail accepts a profile of the GS1 eCom Despatch Advice message (urn:gs1:ecom:despatch_advice:xsd:3) — the XML standard used across retail supply chains to tell a receiver what has been shipped.

The profile is close to the standard. It differs in two narrow ways:

  • A small number of otherwise-optional elements are mandatory — the expected delivery time and a per-line amount with its currency. Goods Received cannot place a delivery in time or value them without these.
  • Elements the standard defines but Hii Retail does not use are ignored. They do not cause a rejection.

Everything else follows GS1. If your system already produces despatch advices, the work is usually adding the two mandatory elements and making sure the receiving store is identifiable — not building a new document.

For how to send the document, see GS1 import. For a complete example, see GS1 XML example.

What the import requires

ElementRequiredBecomesNotes
despatchAdviceIdentification/entityIdentificationThe delivery note numberMust be stable and unique per shipper — it is part of the delivery's identity
noteThe delivery's commentFree text from the supplier or warehouse
receiver/gln⚠ one ofThe receiving storeResolved via Business Unit Management
receiver/additionalPartyIdentification type businessUnitId⚠ one ofThe receiving storeUsed directly, no lookup. Preferred
shipper/additionalPartyIdentification type businessPartnerId⚠ one ofAn external shipperSend this when the shipper is a supplier or warehouse
shipper/additionalPartyIdentification type businessUnitId⚠ one ofAnother store as shipperPreferred when the goods come from another store
shipper/gln⚠ one ofThe shipping storeResolved via Business Unit Management
shipper/organisationDetails/organisationNameThe shipper's nameDisplay name only
despatchInformation/estimatedDeliveryDateTimeThe delivery dateISO 8601. Mandatory in this profile although GS1 treats it as optional

At least one of receiver/gln and the receiver's businessUnitId must be present, and likewise at least one of the shipper's businessPartnerId, businessUnitId and gln. Sending business unit ids is recommended — see Identifying the store.

Logistic units (containers)

ElementRequiredBecomesNotes
despatchAdviceLogisticUnitA containerOne or more. Lines live inside logistic units
logisticUnitIdentification/ssccThe container id
parentLogisticUnitId/ssccThe parent containerOmit on the outermost unit. Nesting may be any depth

A logistic unit may hold lines, hold only other units, or both. The common shape is one root pallet holding no lines of its own, with the lines in its child units.

Lines are always inside a logistic unit. A despatch advice with lines and no container at all is not expressible in this profile — but nesting is not required. A shipment that is not palletised is sent as one logistic unit with an SSCC, holding every line, and no parentLogisticUnitId.

Lines

ElementRequiredBecomesNotes
lineItemNumberThe line idUnique across the whole document, not per container
despatchedQuantityThe expected quantityMay be fractional for weighed or measured items
transactionalTradeItem/gtin⚠ one ofThe line's GTIN
transactionalTradeItem/additionalTradeItemIdentification type itemId⚠ one ofThe Hii Retail item idPreferred. Send this and the GTIN becomes optional
transactionalItemData/batchNumberThe batch number
transactionalItemData/bestBeforeDateThe best-before date
transactionalItemData/itemExpirationDateThe expiration date
transactionalItemData/serialNumberSerial numbersMay repeat
purchaseOrderThe originating orderOmit for a delivery not raised against an order
purchaseOrder/entityIdentificationThe order idRequired if purchaseOrder is present
purchaseOrder/lineItemNumberThe order line id
totalLineAmountThe line's unit price
totalLineAmount@currencyCodeThe line's currency
customer/additionalPartyIdentification type customerIdThe customer order referenceSend when the goods are reserved for a named customer

At least one of the GTIN and the item id must be present, and which one you send changes how failures behave — see Identifying items. Sending both is normal and is the most robust option: the item id is what resolves the line, and the GTIN travels through to consumers.

A missing ✅ field is rejected immediately; an unresolvable item is not. Everything in the tables above is checked against the document itself and answered with 400 before the request returns. Identifying an item is different — it needs data from outside the document, so it happens after the caller has been given 202, and a GTIN that does not resolve fails silently as far as the sender is concerned. Always confirm the import landed.

What is ignored

GS1 despatch advices commonly carry elements this profile does not read. They are harmless — the document is not rejected for containing them — but nothing in Hii Retail will reflect them:

IgnoredUse instead
documentStatusCode, creationDateTime, contentOwner
shipToreceiver
actualShipDateTime, despatchInformation/despatchDateTimedespatchInformation/estimatedDeliveryDateTime
countryOfOrigin, packageTypeCode
requestedItemIdentificationtransactionalTradeItem/gtin and the itemId identification
Any other GS1-compliant element

🛑 shipTo is not the receiver. A generator that identifies the destination store with shipTo and leaves receiver empty will be rejected, because the receiving store cannot be resolved. This is the most common reason a working GS1 export fails against Hii Retail.

Mapping to a delivery

Once accepted, the document becomes one delivery:

GS1Delivery
entityIdentificationDelivery note number
receiverThe receiving store
shipper + its identification typeThe shipper, and whether it is a store or an external partner
organisationNameShipper name
estimatedDeliveryDateTimeDelivery date
noteComment
Outermost despatchAdviceLogisticUnitRoot container
Each despatchAdviceLineItemA delivery line, with its container chain
despatchedQuantityExpected quantity — never the approved one

The import only ever sets expected quantities. What was actually accepted is decided by the store and published afterwards — see Quantities and adjustments.

Further reading

The GS1 standard itself is documented by GS1; this page covers only where Hii Retail differs from it. The example document is a known-good starting point — adapting it is usually faster than adapting a generic GS1 export.