--- title: inventoryShipmentSetBarcode - GraphQL Admin description: Sets the barcode on an inventory shipment. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/inventoryShipmentSetBarcode md: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/inventoryShipmentSetBarcode.md --- # inventory​Shipment​Set​Barcode mutation Requires `write_inventory_shipments` access scope. Also: The user must have permission to manage inventory shipments. Sets the barcode on an inventory shipment. ## Arguments * barcode [String!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) required A unique barcode for the shipment. * id [ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID) required The ID of the inventory shipment to set the barcode on. *** ## Inventory​Shipment​Set​Barcode​Payload returns * inventory​Shipment [Inventory​Shipment](https://shopify.dev/docs/api/admin-graphql/unstable/objects/InventoryShipment) The inventory shipment with the updated barcode. * user​Errors [\[Inventory​Shipment​Set​Barcode​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/InventoryShipmentSetBarcodeUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### inventoryShipmentSetBarcode reference