Admin API / Mutations

addShipmentTrackingNumber

Adds seller-provided tracking. Standard carriers update the shipment from the carrier's current status; CUSTOM marks it as shipped immediately and receives no carrier updates. Returns ShipmentNotFoundError when the caller cannot read the shipment, and UnauthorizedError with requiredRole: null when the caller can read the shipment but the seller of its orders is not the caller and not the owner of a store that the caller staffs. A caller below the SELLER role who has open seller obligations adds tracking only to the shipments that Query.shipment gives them.

Requires a client key with one of these scopes: admin:shipments:writeRequires this member role or higher: SELLER A member below this role, or an inactive member, who has outstanding seller obligations can also call it.
addShipmentTrackingNumber(
  input: AddShipmentTrackingNumberInput!
): AddShipmentTrackingNumberPayload!

Arguments

ArgumentTypeDescription
inputAddShipmentTrackingNumberInput!The tracking details.

Return type

AddShipmentTrackingNumberPayload!