The response from this will be your edited payload - check it and ensure the item references and consignment Id is what you expect.
Understanding carrierItemReference in getConsignment Responses
When working with delegated custom barcodes and item references, it is important to understand what the carrierItemReference field returns when you retrieve a consignment via the API.
Setting vs. Retrieving carrierItemReference
When you create a consignment using createConsignmentwithComplexItems, you set the carrierItemReference field to the barcode string you want displayed on the label. However, when you retrieve that consignment later via getConsignment, the carrierItemReference field in the itemReferences section returns the carrier item reference value IF the carrier provides it.
Barcode vs. carrierItemReference
The full 2D barcode string visible on physical labels is different from carrierItemReference. The barcode on the label is the encoded barcode content that includes zone, volume, service code, and other data points specific to the carrier's system. The carrierItemReference is a separate identifier that the carrier may return in their response to Machship.
Carrier-Specific Limitations
Some carriers only provide barcode data and do not return an item reference value. For example, carriers such as Kiwi Express and Kiwi Oversize return barcode data but not an item reference. For these carriers, the carrierItemReference field will not be populated in the getConsignment response, even though the barcode is present on the physical label.
Test Account Limitation
Consignments created on test accounts do not trigger requests to the carrier's live system, so no carrier response data (including barcode or item reference) is received. Once your account transitions to live status, carrier response data will be available in the getConsignment response.
Example: For Kiwi Express, the carrier returns barcode data but not an item reference. Therefore, the carrierItemReference field will be empty in the itemReferences section of the getConsignment response, even though the barcode is present on the physical label.