Anchor to inventoryShipmentReceiveinventory
inventoryShipmentReceive
mutation
Requires access scope and
access scope. Also: The user must have permission to manage inventory.
Receive an inventory shipment.
Anchor to Arguments
Arguments
- Anchor to bulkReceiveActionbulk•
Receive Action The bulk receive action for the inventory shipment.
- •ID!required
The ID of the inventory shipment to receive.
- Anchor to lineItemsline•
Items The list of receive line items for the inventory shipment.
Was this section helpful?
Anchor to InventoryShipmentReceivePayload returnsInventoryShipmentReceivePayload returns
- Anchor to inventoryShipmentinventory•
Shipment The inventory shipment with received items.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation inventoryShipmentReceive($bulkReceiveAction: InventoryShipmentReceiveLineItemReason, $id: ID!, $lineItems: [InventoryShipmentReceiveItemInput!]) {
inventoryShipmentReceive(bulkReceiveAction: $bulkReceiveAction, id: $id, lineItems: $lineItems) {
inventoryShipment {
# InventoryShipment fields
}
userErrors {
field
message
}
}
}
Input
{
"bulkReceiveAction": "ACCEPTED",
"id": "gid://shopify/<objectName>/10079785100",
"lineItems": [
{
"quantity": 1,
"reason": "ACCEPTED",
"shipmentLineItemId": "gid://shopify/<objectName>/10079785100"
}
]
}
{
"bulkReceiveAction": "ACCEPTED",
"id": "gid://shopify/<objectName>/10079785100",
"lineItems": [
{
"quantity": 1,
"reason": "ACCEPTED",
"shipmentLineItemId": "gid://shopify/<objectName>/10079785100"
}
]
}
input InventoryShipmentReceiveItemInput {
quantity: Int!
reason: InventoryShipmentReceiveLineItemReason!
shipmentLineItemId: ID!
}