1/28/2026, 12:00:23 AM
Shopify now exposes the inventoryShipmentSetBarcode mutation, allowing clients to assign a unique barcode to an existing InventoryShipment by supplying its ID and a barcode string. The mutation returns an InventoryShipmentSetBarcodePayload containing the updated InventoryShipment (now with a new barcode field) and a list of user errors. New error codes include INVENTORYSHIPMENTSETBARCODEUSERERRORCODE.BARCODE_DUPLICATE and INVENTORYSHIPMENTSETBARCODEUSERERRORCODE.SHIPMENT_NOT_FOUND. The InventoryShipment type now includes a nullable String field called barcode, and the InventoryShipmentCreateUserErrorCode enum gains BARCODE_DUPLICATE. A new field remainingLineItemsWeight (type Weight) was added to FulfillmentOrder, representing the weight of unfulfilled line items. The OrderTransactionErrorCode enum omitted the INCORRECT_NAME value, and SubscriptionBillingAttemptErrorCode and SubscriptionBillingAttemptPaymentErrorCode enums received numerous new payment‑related codes reflecting detailed card decline and processing errors. Developers must update error handling for these new codes and consider setting or reading the barcode field in shipments, ensuring barcodes are unique across the system.
Sets the barcode on an inventory shipment.
Return type for inventoryShipmentSetBarcode mutation.
An error that occurs during the execution of InventoryShipmentSetBarcode.
Possible error codes that can be returned by InventoryShipmentSetBarcodeUserError.
remainingLineItemsWeightThe total weight of all line items in the fulfillment order that aren't yet fulfilled.
barcodeA unique barcode for the shipment.
BARCODE_DUPLICATEINCORRECT_NAMEAUTHENTICATION_FAILEDAUTHENTICATION_REQUIREDCALL_ISSUERCARD_DECLINEDCONFIRMATION_REJECTEDDO_NOT_HONORMERCHANT_RULEOFF_SESSION_REJECTEDRETRY_DECLINEDTRANSACTION_LIMIT_EXCEEDEDINCORRECT_ZIPINVALID_CURRENCYINVALID_NUMBERINVALID_PAYMENT_ERRORPAYMENT_METHOD_UNSUPPORTEDINCORRECT_ADDRESSINCORRECT_NUMBEREXPIRED_CARDINVALID_EXPIRY_DATEEXPIRED_BUYER_ACTIONPROCESSING_ERRORPAYMENT_PROVIDER_ERRORGENERIC_ERRORCANCELLED_PAYMENTINVALID_PURCHASE_TYPEAUTHENTICATION_FAILEDAUTHENTICATION_REQUIREDCALL_ISSUERCARD_DECLINEDCONFIRMATION_REJECTEDDO_NOT_HONORMERCHANT_RULEOFF_SESSION_REJECTEDRETRY_DECLINEDTRANSACTION_LIMIT_EXCEEDEDINCORRECT_ZIPINVALID_CURRENCYINVALID_NUMBERINVALID_PAYMENT_ERRORPAYMENT_METHOD_UNSUPPORTEDPAYMENT_PROVIDER_ERRORINCORRECT_ADDRESSINCORRECT_NUMBEREXPIRED_CARDINVALID_EXPIRY_DATEEXPIRED_BUYER_ACTIONPROCESSING_ERRORGENERIC_ERRORCANCELLED_PAYMENTINVALID_PURCHASE_TYPE