Anchor to inventoryShipmentSetTrackinginventory
inventoryShipmentSetTracking
mutation
Requires access scope. Also: The user must have permission to manage inventory.
Edits the tracking info on an inventory shipment.
Anchor to Arguments
Arguments
- •ID!required
The ID of the inventory shipment whose tracking info is being edited.
- Anchor to trackingtracking•
The tracking info to edit on the inventory shipment.
Was this section helpful?
Anchor to InventoryShipmentSetTrackingPayload returnsInventoryShipmentSetTrackingPayload returns
- Anchor to inventoryShipmentinventory•
Shipment The inventory shipment with the edited tracking info.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation inventoryShipmentSetTracking($id: ID!, $tracking: InventoryShipmentTrackingInput) {
inventoryShipmentSetTracking(id: $id, tracking: $tracking) {
inventoryShipment {
# InventoryShipment fields
}
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100",
"tracking": {
"arrivesAt": "2019-09-07T15:50:00Z",
"company": "<your-company>",
"trackingNumber": "<your-trackingNumber>",
"trackingUrl": "https://example.myshopify.com"
}
}
{
"id": "gid://shopify/<objectName>/10079785100",
"tracking": {
"arrivesAt": "2019-09-07T15:50:00Z",
"company": "<your-company>",
"trackingNumber": "<your-trackingNumber>",
"trackingUrl": "https://example.myshopify.com"
}
}
input InventoryShipmentTrackingInput {
arrivesAt: DateTime
company: String
trackingNumber: String
trackingUrl: URL
}