Admin API / Mutations

updateShippingProfile

Changes a shipping profile of the caller. Belongs to the caller's account and applies in every marketplace the account sells in. An omitted or null field keeps its value. settings replaces every setting. When no setting is CALCULATED after the change, the profile has no origin and no parcel. When settings, origin or parcel is sent, each CALCULATED setting after the change is checked against current carrier rates on the Shippo account that shippingRateEstimates uses: a service level with no rate gives ShippingServiceLevelUnavailableError and changes nothing. When the marketplace bills labels to its own Shippo account and that account has no usable connection, that check fails the call with SHIPPING_QUOTE_UNAVAILABLE and changes nothing, and extensions.reason is NOT_CONNECTED or DEAUTHORIZED. When another change to the profile saves twice during that check, the call fails with error code SHIPPING_PROFILE_CHANGED, writes nothing, and can be sent again. Listings keep the shipping that they copied before the change. A profile of a store owner that the caller staffs gives UnauthorizedError. A repeat with the same input sets the same values, or returns ShippingProfileSettingsChangedError when the first call changed the settings that expectedSettings lists.

Requires a client key with one of these scopes: admin:products:writeRequires this member role or higher: SELLER
updateShippingProfile(
  input: UpdateShippingProfileInput!
): UpdateShippingProfilePayload!

Arguments

ArgumentTypeDescription
inputUpdateShippingProfileInput!The profile and its changes.

Return type

UpdateShippingProfilePayload!