> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# orderTrackingSettingsUpdate

> Change when shipments count as stalled and the weekly recap email. Arguments you omit are unchanged. Returns the settings after the change.

**Required scopes:** [`order_tracking_settings_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-order_tracking_settings_write)

## Arguments

**stalledInFulfillment** `[StalledShipmentRuleInput](/docs/api-reference/v3/reference/orders/stalled-shipment-rule-input)`

When an unfulfilled order counts as stalled.

**fields**

**skipSaturdays** `Boolean`

Whether Saturdays don't count toward the threshold.

**skipSundays** `Boolean`

Whether Sundays don't count toward the threshold.

**thresholdDays** `Int`

From 1 to the days Redo keeps tracking it: a shipment in transit for stalledInTransit, an order for stalledInFulfillment. Both are 30 unless Redo changed them for the store; a larger value is BAD\_USER\_INPUT. Skipped weekend days don't count toward the threshold, so with weekends skipped a stall can still fall after tracking ends and never be reported.

**stalledInTransit** `[StalledShipmentRuleInput](/docs/api-reference/v3/reference/orders/stalled-shipment-rule-input)`

When a shipment in transit counts as stalled.

**fields**

**skipSaturdays** `Boolean`

Whether Saturdays don't count toward the threshold.

**skipSundays** `Boolean`

Whether Sundays don't count toward the threshold.

**thresholdDays** `Int`

From 1 to the days Redo keeps tracking it: a shipment in transit for stalledInTransit, an order for stalledInFulfillment. Both are 30 unless Redo changed them for the store; a larger value is BAD\_USER\_INPUT. Skipped weekend days don't count toward the threshold, so with weekends skipped a stall can still fall after tracking ends and never be reported.

**weeklyAnalyticsEmail** `[OrderTrackingWeeklyAnalyticsEmailInput](/docs/api-reference/v3/reference/orders/order-tracking-weekly-analytics-email-input)`

The weekly order tracking recap email.

**fields**

**enabled** `Boolean`

Whether the email is sent.

**recipients** `[String!]`

Replaces the recipients. Each must be a valid email address; the error names an invalid one by its index. Left out of the developer log.

## Returns

**orderTrackingSettingsUpdate** `[OrderTrackingSettings!](/docs/api-reference/v3/reference/orders/order-tracking-settings)` *required*

How Redo tracks the store's shipments: Settings › Order tracking in the app.

**fields**

**carrierMappings** `[\[CarrierMapping!\]!](/docs/api-reference/v3/reference/orders/carrier-mapping)` *required*

Carrier mappings, in evaluation order. The first that matches sets the carrier.

**fields**

**carrierPattern** `[CarrierMatchPattern!](/docs/api-reference/v3/reference/orders/carrier-match-pattern)` *required*

Compared with the carrier name the sales channel gave.

**fields**

**matchType** `[CarrierMatchType!](/docs/api-reference/v3/reference/orders/carrier-match-type)` *required*

How the pattern is compared.

**value** `String`

The pattern. Null for CATCH\_ALL and UNSPECIFIED.

**targetCarrier** `[TrackingCarrier](/docs/api-reference/v3/reference/orders/tracking-carrier)`

The carrier to track with. Null when the saved carrier isn't one Redo supports.

**trackingNumberPattern** `[CarrierMatchPattern](/docs/api-reference/v3/reference/orders/carrier-match-pattern)`

When set, the tracking number must also match. Null matches any tracking number.

**fields**

**matchType** `[CarrierMatchType!](/docs/api-reference/v3/reference/orders/carrier-match-type)` *required*

How the pattern is compared.

**value** `String`

The pattern. Null for CATCH\_ALL and UNSPECIFIED.

**useAlternateSource** `Boolean!` *required*

Whether Redo tracks through the carrier's alternate data source, for when updates from the usual one are missing, late or wrong.

**carrierMappingsRevision** `String!` *required*

Opaque. Changes whenever a carrier mapping or their order changes. Pass it to orderTrackingCarrierMappingUpdate.

**exclusionRules** `[\[OrderExclusionCondition!\]!](/docs/api-reference/v3/reference/orders/order-exclusion-condition)` *required*

Orders matching any condition aren't tracked. These are the rules in effect, including the defaults while the store has saved none.

**fields**

**checks** `[\[OrderExclusionCheck!\]!](/docs/api-reference/v3/reference/orders/order-exclusion-check)` *required*

The checks, all of which must match.

**fields**

**field** `[OrderExclusionField!](/docs/api-reference/v3/reference/orders/order-exclusion-field)` *required*

The order value tested.

**operator** `[OrderExclusionOperator!](/docs/api-reference/v3/reference/orders/order-exclusion-operator)` *required*

How the value is compared.

**value** `String`

The value compared with. Null for IS\_EMPTY.

**exclusionRulesCustomized** `Boolean!` *required*

False while the store uses the default exclusion rules, which skip orders with neither an email address nor a phone number.

**stalledInFulfillment** `[StalledShipmentRule!](/docs/api-reference/v3/reference/orders/stalled-shipment-rule)` *required*

When an unfulfilled order counts as stalled, counting days since it was placed.

**fields**

**skipSaturdays** `Boolean!` *required*

Whether Saturdays don't count toward the threshold.

**skipSundays** `Boolean!` *required*

Whether Sundays don't count toward the threshold.

**thresholdDays** `Int!` *required*

Days without progress before the shipment counts as stalled. Skipped weekend days don't count toward it.

**stalledInTransit** `[StalledShipmentRule!](/docs/api-reference/v3/reference/orders/stalled-shipment-rule)` *required*

When a shipment in transit counts as stalled, counting days since the last carrier update.

**fields**

**skipSaturdays** `Boolean!` *required*

Whether Saturdays don't count toward the threshold.

**skipSundays** `Boolean!` *required*

Whether Sundays don't count toward the threshold.

**thresholdDays** `Int!` *required*

Days without progress before the shipment counts as stalled. Skipped weekend days don't count toward it.

**textRules** `[\[TrackingTextRule!\]!](/docs/api-reference/v3/reference/orders/tracking-text-rule)` *required*

Rules applied, in order, to each carrier scan's text.

**fields**

**phrases** `[String!]!` *required*

Phrases to replace. Matching ignores case.

**replacement** `String!` *required*

Text that replaces a matched phrase. An empty string hides it.

**target** `[TrackingTextTarget!](/docs/api-reference/v3/reference/orders/tracking-text-target)` *required*

Which text the rule changes.

**weeklyAnalyticsEmail** `[OrderTrackingWeeklyAnalyticsEmail!](/docs/api-reference/v3/reference/orders/order-tracking-weekly-analytics-email)` *required*

The weekly order tracking recap email.

**fields**

**enabled** `Boolean!` *required*

Whether the email is sent.

**recipients** `[String!]!` *required*

Email addresses the recap is sent to. Left out of the developer log.

## Example

```graphql theme={null}
mutation {
  orderTrackingSettingsUpdate(stalledInFulfillment: { ... }, stalledInTransit: { ... }, weeklyAnalyticsEmail: { ... }) {
    carrierMappingsRevision
    exclusionRulesCustomized
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.