The generate_label_metadata flag is an optional flag that can be included by merchants who print their own labels, and require additional label metadata to incorporate into their labels. It can be included at the shipment level in the following requests: Create Shipment, Update Shipment, Create Order Including Shipments. It is available for domestic shipments only.
| Element name | Description | Optional / Mandatory | Type | Length |
|---|---|---|---|---|
| generate_label_metadata | If set to True, the metadata for the label will be returned with the shipment, for the merchant to incorporate into their own label. | Optional | Boolean - true or false | N/A |
There are a number of rules applicable when using the generate_label_metadata flag, detailed in the sections below.
Merchants can opt from the following two options, namely:
In both cases Australia Post will include the consignment_id, article_id, and barcode_id as part of the label metadata for each item in the response.
* SSCC: Serial Shipment Container Code: number plate used by merchant members of GS1.
The generate label metadata feature is available for most domestic product_ids.
| label_metadata element | Description | Example | On shipping label |
|---|---|---|---|
| barcode_id | This article barcode string contains the following data pieces:
| StarTrack: LKIZ50000387EXP00001 Australia Post: 0199312650999998912JD020603601000931508| 4203000|9277215833 | StarTrack: On article barcode AustraliaPost:
|
| routing_barcode | In the format “SSS9999DDD” where... SSS: is an alphanumeric value that represents a valid StarTrack Label Code. 9999: the four-digit Australian receiver postcode. DDD: is an alphanumeric value that represents a valid StarTrack nearest depot (for EXP and equivalent products) or a Primary Port Code (for PRM and equivalent products). | StarTrack: EXP3000MEL Australia Post: n/a | On StarTrack routing barcode |
| qr_2d_barcode | String that contains key values and it is used as a back-up of electronic manifest data. | StarTrack: MELBOURNE 3000LKIZ50000387LKIZ50000387EXP00001EXP 100092931 1 20210513Derrick Cummings BAGMEL 840 Osinski Radial NN Australia Post: n/a | On StarTrack QR barcode |
| consignment_id | A 7 or 8 digit number that together with the despatch id or Merchant location id (MLID) provides a unique id to the consignment. | StarTrack: LKIZ50000387 Australia Post: 2JD0206036 | Displayed in human-readable format preceded by MLID or Despatch ID |
| article_id | Unique identifier of articles within a consignment. | StarTrack: LKIZ50000387EXP00001 Australia Post: 2JD020603601000931508 | Displayed in human-readable format above/below the article barcode |
| nearest_depot | Alphanumeric code that indicates the Star Track depot nearest to the town/suburb. Used by the Express Network for correct parcel streaming. | StarTrack: MEL Australia Post: n/a | Displayed in human-readable format on ST Road (EXP) labels |
| primary_port | Alphabetic code used in the Premium network for correct parcel streaming. | StarTrack: MEL Australia Post: n/a | Displayed in human-readable format on ST Premium labels |
| secondary_port | Alphabetic code used in the Premium network for correct parcel streaming. | StarTrack: MEL Australia Post: n/a | Displayed in human-readable format on ST Premium labels |