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

# CarrierMappingInput

> A carrier mapping.

**carrierPattern** `[CarrierMatchPatternInput!](/docs/api-reference/v3/reference/orders/carrier-match-pattern-input)` *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`

Required, and not blank, except for CATCH\_ALL and UNSPECIFIED, which ignore it. A REGEX pattern must be a valid regular expression.

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

The carrier to track with.

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

When set, the tracking number must also match.

**fields**

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

How the pattern is compared.

**value** `String`

Required, and not blank, except for CATCH\_ALL and UNSPECIFIED, which ignore it. A REGEX pattern must be a valid regular expression.

**useAlternateSource** `Boolean`

Track through the carrier's alternate data source. Only for carriers that have one; otherwise BAD\_USER\_INPUT.


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