Anchor to inventoryTransferDuplicateinventory
inventoryTransferDuplicate
mutation
Requires access scope. Also: The user must have permission to manage inventory.
This mutation allows duplicating an existing inventory transfer. The duplicated transfer will have the same line items and quantities as the original transfer, but will be in a draft state with no shipments.
Anchor to Arguments
Arguments
- Anchor to transferIdtransfer•
Id ID!required The ID of the inventory transfer to duplicate.
Was this section helpful?
Anchor to InventoryTransferDuplicatePayload returnsInventoryTransferDuplicatePayload returns
- Anchor to inventoryTransferinventory•
Transfer The duplicated inventory transfer.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation inventoryTransferDuplicate($transferId: ID!) {
inventoryTransferDuplicate(transferId: $transferId) {
inventoryTransfer {
# InventoryTransfer fields
}
userErrors {
field
message
}
}
}
Input
{
"transferId": "gid://shopify/<objectName>/10079785100"
}
{
"transferId": "gid://shopify/<objectName>/10079785100"
}