"Tracking information update failed." whne using mutation fulfillment Tracking Info UpdateV2

Hi there,

I am getting “Tracking information update failed.” when using mutation fulfillmentTrackingInfoUpdateV2

Mutation

mutation($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!) {
  fulfillmentTrackingInfoUpdateV2(
    fulfillmentId: $fulfillmentId
    trackingInfoInput: $trackingInfoInput
  ) {
    fulfillment {
      id
      name
      status
      trackingInfo {
        company
        number
        url
      }
    }
    userErrors {
      field
      message
    }
  }
}

Variables:

{"fulfillmentId":"gid://shopify/Fulfillment/6802769346627","trackingInfoInput":{"number":"SPXSG05367018788C","company":"Other"}}

Result

{"data":{"fulfillmentTrackingInfoUpdateV2":{"fulfillment":{"id":"gid://shopify/Fulfillment/6802769346627","name":"#41570-F1","status":"SUCCESS","trackingInfo":[]},"userErrors":[{"field":null,"message":"Tracking information update failed."}]}},"extensions":{"cost":{"requestedQueryCost":11,"actualQueryCost":11,"throttleStatus":{"maximumAvailable":2000.0,"currentlyAvailable":1989,"restoreRate":100.0}}}}

request id 7b024f87-c4b1-4fcc-9207-d04f08b1ad75-1764967826

what should I do?

Note that using fulfillmentTrackingInfoUpdate (no V2) with the same variables same mutation ALSO has the same error.

Request id c53f6677-aff6-495d-989d-8192b070e6c0-1764969337

Hi @sengming! I pulled the logs for your request ID and they suggest your app does not own the fulfillment you’re targeting.

As of API version 2024-10, you can only create or update fulfillments for orders assigned to merchant-managed locations or third-party fulfillment services that your app owns. If the fulfillment is assigned to another fulfillment service’s location, you can’t update it.

You can check which service owns the fulfillment with this query:

query CheckFulfillmentOwnership($fulfillmentId: ID!) {
  fulfillment(id: $fulfillmentId) {
    id
    service {
      serviceName
      handle
    }
  }
}

If service returns a fulfillment service that isn’t yours (or returns data at all when your app doesn’t register a fulfillment service), that’s why you’re getting the error. Only the owning fulfillment service or merchant-managed fulfillments can have the tracking info updated.

1 Like