Skip to main content

What is GS1

The GS1 XML format you provided is based on the GS1 eCom Despatch Advice Message, which is part of the GS1 EDI (Electronic Data Interchange) standards used globally in supply chains for automated, structured, and interoperable business messaging between trading partners. More information about GS1 fields can be found here GS1 Fields detailed explanation

πŸ“¦ GS1 Payload Structure​

Below are the key components expected in the payload:

  • 🧾 Header

    • despatchAdviceIdentification

      • entityIdentification: Unique delivery note ID
    • note: Optional note

    • receiver

      • gln: Receiver store’s GLN (optional if businessUnitId is specified)

      • additionalPartyIdentification[type=businessUnitId]: Preferred receiver identification

    • shipper

      • gln: Optional shipper ID (used if it's another store)

      • additionalPartyIdentification[type=businessPartnerId]: Required if shipper is a warehouse or supplier

      • additionalPartyIdentification[type=businessUnitId]: Preferred if shipper is another store

    • organisationDetails

      • organisationName: Optional name
    • despatchInformation

      • estimatedDeliveryDateTime: Expected delivery time

πŸ“¦ Containers (Logistic Units)​

  • One or more despatchAdviceLogisticUnit blocks

  • Each unit includes:

    • sscc: Unique container ID

    • parentLogisticUnitId (optional): For nested containers

πŸ“‹ Line Items​

  • One or more despatchAdviceLineItem blocks

  • Each line includes:

    • lineItemNumber

    • despatchedQuantity

    • transactionalTradeItem

      • gtin or itemId (via additionalTradeItemIdentification)
    • transactionalItemData

      • batchNumber, bestBeforeDate, itemExpirationDate (optional)

      • serialNumber (optional, can appear multiple times)

    • purchaseOrder

      • entityIdentification: Order ID

      • lineItemNumber: Purchase order line ID (optional)

    • totalLineAmount[currencyCode]: Required amount per line

    • customer

      • additionalPartyIdentification[type=customerId]: Required if item is reserved for a customer

πŸ“Œ Notes​

Container hierarchy (parent-child) is supported but optional.

It’s also possible to have:

Only lines without containers

A single container with multiple item lines

Nested containers with multiple lines inside


Return