Skip to main content

Queries

  • order — Fetch a single order by its id (a branded order id or a legacy Mongo ObjectId hex).
  • orders — List orders, optionally filtered by customer email or created/updated date range.
  • orderTrackingSettings (Experimental) — The store’s order tracking settings.
  • tracker — Fetch a single shipment tracker by its id.
  • trackerExport (Experimental) — A tracker export, with a fresh download link once it SUCCEEDED. Null when the store has no tracker export with this id.
  • trackers — List shipment trackers, optionally filtered by status, setup issue, tracking number, or created/updated date range.
  • trackerSetupIssueSummary (Experimental) — Count the trackers Redo couldn’t start tracking, by setup issue, with the incoming carrier names it most often couldn’t match. trackers(setupIssues:) lists them.
  • trackersSearch (Experimental) — Search shipment trackers by text and filters, with the same matching as the Redo app’s Shipments page: its search box (order number, customer name and email, tracking number) and its filters. Results come from a search index and can trail writes by a few seconds; to sync changes, use trackers with updatedAtAfter instead.
  • trackersSearchSummary (Experimental) — The Shipments page’s totals for the trackers trackersSearch finds with the same text and filter: all of them, in transit, delivered and exceptions. Counted in the search index, so it can trail writes by a few seconds.
  • trackerTag — Fetch a single tracker tag by its id. Returns null if no tracker tag in this store has the id.
  • trackerTags — List tracker tags defined in this store.

Mutations

  • orderTrackingCarrierMappingsSet (Experimental) — Replace the store’s carrier mappings. They’re evaluated in the order given, and the first that matches sets the carrier. Returns the settings after the change. A saved mapping whose targetCarrier reads as null can’t be sent back here; change its neighbors with orderTrackingCarrierMappingUpdate instead. Fails with CONFLICT (409) while another carrier mapping change is still saving; retry.
  • orderTrackingCarrierMappingUpdate (Experimental) — Replace one carrier mapping, by its position, and leave the others exactly as saved, including any whose targetCarrier reads as null. Fails with CARRIER_MAPPINGS_REVISION_STALE (409) when the mappings changed since expectedRevision was read; read them again and retry. Fails with CONFLICT (409) while another carrier mapping change is still saving; retry. Returns the settings after the change.
  • orderTrackingExclusionRulesSet (Experimental) — Replace the conditions that exclude orders from tracking. Fails with ORDER_TRACKING_V2_REQUIRED (409) on a store still on the first version of order tracking, which ignores them. Returns the settings after the change.
  • orderTrackingSettingsUpdate (Experimental) — Change when shipments count as stalled and the weekly recap email. Arguments you omit are unchanged. Returns the settings after the change.
  • orderTrackingTextRulesSet (Experimental) — Replace the rules that rewrite or hide carrier scan text on tracking pages. In each text, a matching rule that hides wins over every replacement, whatever the order; where replacements overlap, the earlier rule wins. A rule that matches the location on the tracking page’s map hides the map, even if it only replaces text. That location is the latest scan’s, or the shipping address when no scan has one. Returns the settings after the change.
  • trackerExportStart (Experimental) — Write the store’s trackers to a CSV in the background and return the export at once; poll trackerExport for the file, which usually takes seconds to a few minutes. It takes the filters trackers takes and matches them as the Shipments page does: the file lists the trackers trackers lists for them, except that trackingNumber ignores letter case. The file is in no set order, and a tracker created or changed in the last few seconds may not be in it yet. No email is sent, and a store may run several exports at once; each start counts against a per-store export quota shared with segment exports, and over it returns THROTTLED. A retry that returns the export an earlier attempt with its idempotencyKey started doesn’t use up the quota, but is still refused with THROTTLED while the quota is empty. Throws IDEMPOTENCY_KEY_REUSED and TRY_AGAIN as idempotencyKey describes.
  • trackerTagCreate — Create a tracker tag in this store. Names compare case-insensitively: a name that matches an existing tracker tag fails with TRACKER_TAG_NAME_TAKEN.
  • trackerTagDelete — Delete a tracker tag and remove it from every shipment. Returns true if deleted, false if no tracker tag in this store matched.
  • trackerUpdate — Update a shipment tracker’s internal note and tags. Returns null if no tracker in this store matches the id.

Objects

  • CarrierMapping (Experimental) — Sets the carrier Redo tracks a shipment with when the carrier name the sales channel gave, and optionally the tracking number, match.
  • CarrierMatchPattern (Experimental) — A pattern a carrier name or tracking number is compared with.
  • Order — A customer order ingested from the merchant’s ecommerce platform.
  • OrderAiAttribution — The AI agent an order came through.
  • OrderCustomer — The customer who placed an order.
  • OrderExclusionCheck (Experimental) — A test of one order value.
  • OrderExclusionCondition (Experimental) — Excludes an order from tracking when every check matches.
  • OrderFulfillment — A shipment fulfilling some or all of an order’s items.
  • OrderFulfillmentLineItem — A line item included in a fulfillment shipment.
  • OrderLineItem — A single purchased item on an order.
  • OrderPlatformFraudIndicator — One finding from the ecommerce platform’s fraud analysis.
  • OrderPlatformFraudRisk — The ecommerce platform’s own fraud analysis of an order, for an order it rates medium or high risk.
  • OrderProtection — The Redo coverage the customer bought on an order.
  • OrderShipping — How an order ships: method, cost, and destination address.
  • OrderTrackingEvent — A single carrier tracking event for a fulfillment.
  • OrderTrackingEventLocation — Where a tracking event was reported from.
  • OrderTrackingSettings (Experimental) — How Redo tracks the store’s shipments: Settings › Order tracking in the app.
  • OrderTrackingWeeklyAnalyticsEmail (Experimental) — A weekly email recapping the store’s order tracking.
  • StalledShipmentRule (Experimental) — When a shipment counts as stalled.
  • Tracker — A carrier shipment tracker: the live delivery state of a shipment, with its full carrier scan history.
  • TrackerExport (Experimental) — A CSV of the store’s trackers, one row per tracker, written in the background with the columns the Shipments page’s export writes plus each tracker’s id. The file is available for 7 days after the export starts; after that the export reads FAILED with RESULT_EXPIRED.
  • TrackerOrder — An order fulfilled by a shipment tracker. Tracker webhook payloads carry these ids in their orderIds; reach them by traversing tracker(id:) — they are not fetchable via node(id:).
  • TrackerScan — A single carrier scan event in a shipment tracker’s history.
  • TrackerSearchSummary (Experimental) — The Shipments page’s totals for a tracker search: how many trackers it finds, and how many of them are in each of the page’s status groups.
  • TrackerSetupIssueCount (Experimental) — How many trackers have a setup issue.
  • TrackerSetupIssueSummary (Experimental) — How many of the store’s trackers have each setup issue.
  • TrackerTag — A tag that can be applied to shipment trackers. Tags are managed per store.
  • TrackerUnresolvedCarrier (Experimental) — An incoming carrier name Redo couldn’t match to a carrier it supports.
  • TrackingTextRule (Experimental) — Rewrites or hides carrier scan text on tracking pages.

Input objects

Enums

  • CarrierMatchType (Experimental) — How a pattern is compared with a value. Comparisons ignore case.
  • OrderAiMechanism — How an AI agent brought an order to the merchant.
  • OrderExclusionField (Experimental) — An order value an exclusion check reads.
  • OrderExclusionOperator (Experimental) — How an exclusion check compares the order’s value. Comparisons ignore case.
  • OrderFraudRisk — How likely an order is fraudulent.
  • OrderFulfillmentStatus — The tracked shipment status of a fulfillment.
  • OrderPlatformFraudIndicatorSentiment — Which way a finding in the ecommerce platform’s fraud analysis points.
  • OrderPlatformFraudRiskLevel — How strongly the ecommerce platform’s fraud analysis points to fraud.
  • OrderSortKey — A field this list can be ordered by; pass to the list’s orderBy argument and pair with reverse to flip direction.
  • OrderTryFirstStatus — Where an order’s Try First contract stands.
  • TrackerExportColumn (Experimental) — A column a tracker export writes. Its CSV header is the name in title case, such as Tracking Number.
  • TrackerSearchSortKey (Experimental) — How a tracker search orders its results; pair with reverse to flip direction.
  • TrackerSetupIssue (Experimental) — Why Redo couldn’t start tracking a shipment.
  • TrackerSortKey — A field this list can be ordered by; pass to the list’s orderBy argument and pair with reverse to flip direction.
  • TrackerStatus — The carrier-tracked delivery status of a shipment tracker.
  • TrackerTagSortKey — A field this list can be ordered by; pass to the list’s orderBy argument and pair with reverse to flip direction.
  • TrackerUntrackedReason (Experimental) — Why Redo chose not to track a shipment.
  • TrackingCarrier (Experimental) — A carrier Redo can track shipments with.
  • TrackingTextTarget (Experimental) — Which text of a carrier scan a rule changes.