> ## 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.

# CarrierMapping

> Sets the carrier Redo tracks a shipment with when the carrier name the sales channel gave, and optionally the tracking number, match.

**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.


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