Queries
carrierClaim(Experimental) — Fetch a carrier claim the store filed, by its id: a branded Redo id or a 24-char Mongo ObjectId hex. Returns null for a claim on a kind of package the caller may not file.carrierClaimsSearch(Experimental) — Search the carrier claims the store filed by text and filters, with the same matching as the claims page in Redo. Lists only claims on kinds of package the caller may file. Results come from a search index and can trail writes by a few seconds.customsCodeSettings(Experimental) — Whether the store’s custom customs code is on, and what code is deployed for it, without the code itself. Not found when the store doesn’t have custom customs code available.internationalCustomsSettings(Experimental) — The store’s international returns customs settings: the Shopify metafields that hold customs data, whether Redo fills in HS codes and customs descriptions, and whether returns missing customs data are held for review.inventoryPushPolicy(Experimental) — Requires Managed Returns. Reads which variants Redo pushes to Shopify through the Managed Returns inventory workflow. Returns null when Managed Returns is disabled.productsAsVariants(Experimental) — Whether exchanges offer products from the same group as variants of each other, and the store’s groups with their collection rules and variant rules.productVariantGroup(Experimental) — One group with its products, each product’s stored variant values, problems with them, and suggested replacements. Reads every product in the collection, so it costs 20 per 250 products, charged after the read. Null if the store has no group for that collection.productVariantGroupSuggestions(Experimental) — Suggest a group and variant values for up to 25 products: the given ones, or active products created since a time. Changes nothing. Pass a suggestion’s values to productVariantGroupUpdate or productVariantGroupCreate, edited or not.return— Fetch a single return by its id — a branded Redo return id or its legacy Mongo ObjectId.returnActionRun— Fetch a run of a return action by its id, with the outcome for each return so far.returnResetSteps— The steps of the account’s current flow for one return type thatresetReturnscan restart customers at, in flow order. Reject steps are left out. Empty when the account has no such flow.returns— List returns, optionally filtered by status, type, customer email, order name, shipment tracking number, scanned barcode, or update time.returnShippingOptions(Experimental) — The store’s return shipping options: the cap on what a return label can cost, when a signature is required, whether a label’s cost is deducted from a refund, store credit or exchange, and whether labels combine only across one fulfillment.taxIds— The tax IDs the store has saved for customs to use on its international return labels, with each number masked.
Mutations
approveReturns— Approve returns that are waiting for review, so each customer can send their items back. Starts a run and returns it at once; the returns are worked through in the background. Returns null, and starts nothing, if any id is not a return owned by the caller.carrierClaimCreate(Experimental) — File a carrier claim for a package in the store, found by its tracking number, as the return page or the order’s fulfillment page would. Returns null if no package in the store has that number, or none of a kind the caller may file: return packages need the app’s File carrier claims permission and outbound ones Receive order updates, and an API key has its maker’s. Fails withAMBIGUOUS_PACKAGE, listing the matches inextensions.candidates, when more than one package does; pass a candidate’spackageId, ororderName, to pick one. Fails withCLAIM_EXISTSif the package already has a claim,CARRIER_NOT_SUPPORTEDif Redo can’t claim with its carrier, andNOT_CLAIMABLEif its label wasn’t bought through Redo. Fails withEVIDENCE_REQUIRED(422) when the claim needs evidence the request lacks, each listed inextensions.missingby itsevidence, such asPHOTOS; newevidencevalues may be added, so handle unknown ones. A damage claim needs at least oneDAMAGE_PHOTOinevidence.files. ADHL_AFFIDAVITon a claim that isn’t for an outbound DHL package, a second one, or more than five other files fails withBAD_USER_INPUT, naming the file. UPS and FedEx damage details inevidence.upsDamageandevidence.fedexDamageare optional and only for a damaged outbound package of that carrier (otherwiseBAD_USER_INPUT), but a group that is sent must be complete: a gap is listed asUPS_DAMAGE_DETAILSorFEDEX_DAMAGE_DETAILS, with the input fields it still needs infields. A file that isn’t a JPEG, PNG, GIF or PDF, anuploadIdalready used or from another store, or a URL Redo can’t download fails withBAD_USER_INPUT, naming the file. Fails withCLAIM_IN_PROGRESS(503) while another request is filing a claim for the same package; retry after a short wait.carrierClaimUploadCreate(Experimental) — Start a file upload for a carrier claim, such as a damage photo, proof of purchase or the recipient’s signed DHL affidavit, as a JPEG, PNG, GIF or PDF. PUT the file’s raw bytes to the returnedurlbeforeexpiresAt, then passuploadIdin a file ofcarrierClaimCreate’sevidence.files. Each id works once. Counts against the account’s file upload quota; over the quota returns THROTTLED.closeReturns— Close returns without refunding the customers. No refund, store credit or exchange is issued: every item is marked complete and each return becomes complete, but no money moves to the customer. Use it only for returns settled outside Redo; to refund the customers, useprocessReturnsinstead.returnReopenreopens a closed return. Starts a run and returns it at once; the returns are worked through in the background. Returns null, and starts nothing, if any id is not a return owned by the caller.customsCodeSettingsUpdate(Experimental) — Turn the store’s custom customs code on or off. It runs for checkout duty quotes and outbound customs forms. Turning it on runs the code already deployed for the store, so there is nothing to pass butenabled; it fails with BAD_USER_INPUT (400) when no code is deployed. Turning it off keeps the code. The change is audited as an API edit, as in the app. Returns the settings after the change. Not found when the store doesn’t have custom customs code available.flagReturns— Flag returns for attention. Starts a run and returns it at once; the returns are worked through in the background. Returns null, and starts nothing, if any id is not a return owned by the caller.internationalCustomsSettingsUpdate(Experimental) — Change the store’s international returns customs settings. Only the fields you supply change. The change is audited as an API edit, as in the app. Turning onmanualReviewOnMissingCustomsholds international returns that are missing required customs data. Returns the settings after the change.inventoryPushPolicyUpdate(Experimental) — Requires Managed Returns. Updates which variants Redo includes in future Shopify pushes through the Managed Returns inventory workflow. Throws NOT_FOUND when Managed Returns is disabled and CONFLICT for a stale revision.processReturns— Process returns with their default outcome, issuing each refund, store credit or exchange. This moves money and cannot be undone. Starts a run and returns it at once; the returns are worked through in the background. Returns null, and starts nothing, if any id is not a return owned by the caller.productsAsVariantsSettingsUpdate(Experimental) — Turn products-as-variants on or off for exchanges. Groups are kept either way. Returns the setting and groups after the change.productVariantGroupCreate(Experimental) — Create a group: a new unpublished Shopify collection holding the given products (picked by hand) and products meeting the given rules, saved with its variant rules, and the given variant values stored on products. Up to 250 products. If the store already has a group with this title, or any product or rule is invalid, nothing is created, so a retry after a timeout can’t create a second group. Returns every change made, one line each.productVariantGroupDelete(Experimental) — Stop using a collection as a group. The Shopify collection stays. Optionally clears the stored variant values on its products. Returns every change, one line each. Null if the store has no group for that collection.productVariantGroupUpdate(Experimental) — Change one group. Every argument is optional and each is one or more changes: pick products into its collection or take them out, keep products out even when its rules match, add or delete rules, replace its variant rules, store variant values on products, or recompute every product’s values from the variant rules. Up to 250 products per list. Changes that can’t be made are reported, not thrown. Returns every change, one line each. Null if the store has no group for that collection.rejectReturns— Reject returns. This cannot be undone. Starts a run and returns it at once; the returns are worked through in the background. Returns null, and starts nothing, if any id is not a return owned by the caller.resetReturns— Reset returns: each return is deleted so that its customer can start it again. This cannot be undone. Starts a run and returns it at once; the returns are worked through in the background. Returns null, and starts nothing, if any id is not a return owned by the caller.returnApprove— Approve one return that is waiting for review, as the return page’s Approve action does, and return the return once approved. It takes everything the Approve dialog offers: which items are sent back, their weights and HS codes, where they go, labels split by item, the customer notification and order tags on a claim. The return’s labels and emails follow in the background. A return is approved or denied at most once: a repeat while the approval runs waits for it, and one after it fails withACTION_REJECTED. Also fails withACTION_REJECTEDwhile the return is still being set up, and for a claim Redo is reviewing; the message says which. Fails withMISSING_CUSTOMS_ACKNOWLEDGMENTwhile items crossing a border lack customs data, until you fill it in or retry withacknowledgeMissingCustoms. Input the Approve dialog would refuse fails withBAD_USER_INPUT, and an item or location the account doesn’t have, or a location with no street address, withNOT_FOUND. Fails withFORBIDDENwhen the acting team member can’t approve returns. Returns null if no return with that id is owned by the caller.returnBalanceDismiss— Dismiss what the shopper owes on a processed exchange, as the return page’s Dismiss outstanding balance action does, and return the return. Payment reminders stop and the invoice is voided; withcreateExchangeOrderthe exchange order is also created at no charge. Fails withACTION_REJECTEDwhen there is no balance to dismiss, the shopper has already paid it, or the exchange order can’t be created, with the reason in the message, and withTRY_AGAINwhile another change to the exchange is in progress. Returns null if no return with that id is owned by the caller. Cannot be undone.returnClose— Close a return without refunding the customer, as the return page’s Close action does, and return it once closed. No refund, store credit or exchange is issued: every item is marked complete and the return becomes complete, but no money moves to the customer. Use it only for a return that was settled outside Redo or needs nothing more. To refund the customer, process the return withreturnProcessinstead. Closing also voids the return’s unused shipping label, voids any outstanding invoice, deletes a draft exchange order and closes the Shopify return.returnReopenreopens a closed return. Fails withACTION_REJECTEDif the return is already processed, rejected or reset, and withFORBIDDENif the acting team member can’t close returns. Returns null if no return with that id is owned by the caller.returnCommentCreate— Add a comment to a return’s timeline, as the return page’s activity box does, and return the return. Attach images by uploading each withreturnCommentImageUploadCreatefirst. Fails withINVALID_UPLOADif an image wasn’t uploaded. Returns null if no return with that id is owned by the caller.returnCommentDelete— Delete a comment you wrote from a return’s timeline, as the return page’s delete action does, and return the return. A comment made with an API token has no author, so it can’t be deleted, and system, shipment and customer entries aren’t comments. This cannot be undone. Returns null if no return with that id is owned by the caller, or it has no comment with that id that you wrote.returnCommentImageUploadCreate— Start an image upload for a return comment. PUT the file’s raw bytes to the returnedurlbeforeexpiresAt, then pass itsuploadIdtoreturnCommentCreate. Counts against the image upload quota; over the quota returns THROTTLED.returnCommentUpdate— Change the text of a comment you wrote on a return, as the return page’s edit box does, and return the return. The comment then shows as edited. Fails withEMPTY_COMMENTif the new text is blank and the comment has no images. Returns null if no return with that id is owned by the caller, or it has no comment with that id written by the caller. A comment made with an API token has no author, so it can’t be edited.returnContactUpdate(Experimental) — Change the email or phone on a return’s contact, as the return page’s contact edit does, and return the return. A field you leave out keeps its value;nullclears it. A change leaves a timeline entry naming the acting user, or the public API when no user is behind the call. Returns null if no return with that id is owned by the caller, or the return has no record of the contactcontactTypenames.returnDeny— Deny one return that is waiting for review, as the return page’s Deny action does, and return the return once denied. Every item is rejected and the return closes; on a claim reported to the insurer, package protection is refunded. A return is approved or denied at most once: a repeat while the denial runs waits for it, and one after it fails withACTION_REJECTED. Also fails withACTION_REJECTEDfor a claim Redo is reviewing. Fails withFORBIDDENwhen the acting team member can’t approve returns, the permission that also covers denying. Returns null if no return with that id is owned by the caller.returnExchangeCancel— Cancel the exchange on a return nobody has processed yet, as the return page’s Cancel exchange order action does, and return the return. The exchange order is cancelled in Shopify, any hold on the shopper’s card is released, and the shopper gets a refund or store credit instead. Fails withACTION_REJECTEDwhen the exchange can’t be cancelled (an item is processed, the exchange order has shipped, the return is closed or has no exchange) or Shopify refuses the cancellation, with the reason in the message, and withTRY_AGAINwhile another change to the exchange is in progress. Returns null if no return with that id is owned by the caller. Cannot be undone.returnExchangeItemRemove(Experimental) — Remove a variant from the new items on a return’s exchange, as the return page’s New items section does, and return the return. Every line of the variant goes, and a variant that isn’t on the exchange leaves it unchanged. Removing the last one clears the exchange’s new items and voids any outstanding invoice for them. Shopify returns only for now. The exchange is priced again, so any discount code on it is dropped. Fails withACTION_REJECTEDwhenexchange.itemsEditableis false or the return is being processed, and withTRY_AGAINwhile another edit to the exchange is in progress. Returns null if no return with that id is owned by the caller.returnExchangeItemsAdd(Experimental) — Add variants to the new items on a return’s exchange, as the return page’s New items section does, and return the return. A variant already on the exchange has its quantity raised. Shopify returns only for now. The exchange is priced again, so any discount code on it is dropped. Fails withACTION_REJECTEDwhenexchange.itemsEditableis false, the return is being processed, or the store’s platform rejects a variant, and withTRY_AGAINwhile another edit to the exchange is in progress. Returns null if no return with that id is owned by the caller.returnFlag— Flag a return for attention, as the return page’s Flag action does, and return it once flagged. A return that is already flagged comes back unchanged. Fails withACTION_REJECTEDif the return is processed, rejected or reset. Returns null if no return with that id is owned by the caller.returnInvoiceResend(Experimental) — Email the customer the unpaid invoice for a return’s exchange again, as the return page’s Resend invoice action does, and return the return. The timeline records a manual reminder. It takes noidempotencyKey: each call sends another email. Fails withACTION_REJECTEDwhen the return has no unpaid invoice (as after it’s rejected or reset), its outstanding balance is waived, or the customer has no email address and none is given. Returns null if no return with that id is owned by the caller.returnItemBarcodeLabelExport(Experimental) — Generate the PDF barcode label for one returned item, as the return page’s See barcode does: the item’s UPC with the store’s label size and text. Fails withACTION_REJECTEDif the store hasn’t set up barcode labels, the item has no barcode on the store’s platform, or the platform can’t be read for it, and withNOT_FOUNDif the item isn’t on the return. Returns null if no return with that id is owned by the caller.returnItemBarcodeLabelsPrint(Experimental) — Send the barcode label for each listed item to a workstation’s barcode printer through PrintNode, as the return page’s Print barcodes does. An item that can’t be sent is listed infailedItemIdsand the rest still print. Fails withACTION_REJECTEDif the store hasn’t set up barcode labels or connected PrintNode, or the workstation has no barcode printer; withNOT_FOUNDif the store has no such workstation or an item isn’t on the return; and withBAD_USER_INPUTfor an empty or too-long list. Returns null if no return with that id is owned by the caller.returnItemUpdate(Experimental) — Change an item on a return, as the return page’s edit item action does, and return the return. Fails withNOT_FOUNDif the return has no item with thatitemId, and withACTION_REJECTEDif the return is closed or the item is complete, pending or a repair. To leave a note on the return’s timeline, callreturnCommentCreate. Returns null if no return with that id is owned by the caller.returnLabelResend— Email the customer the return’s shipping labels and drop-off QR codes again, as the return page’s Resend label action does, and return the return. One email carries every label the return has. It never books a carrier collection. It takes noidempotencyKey: each call sends another email. Fails withACTION_REJECTEDif the return was reset, has no label or QR code to send, has a carrier collection that isn’t booked, or the customer has no email address and none is given. Returns null if no return with that id is owned by the caller.returnProcess— Process or reject a return’s items, as the return page’s Process and Reject actions do, and return the return. Rejecting every item rejects the return: it waits for the rejection, refunds package protection on a denied claim and can hand a claim Redo covers to the merchant. Otherwise processing starts in the background, issuing each refund, store credit or exchange; leaving items out marks the listed ones to process once the rest are ready. This moves money and cannot be undone. Fails withRETURN_ALREADY_PROCESSINGif the return is already being processed; that is temporary, so retry after a short wait or read the return to see whether the earlier request did the work. Rejecting fails withACTION_REJECTEDif the return is processed, rejected or reset. An item not on the return fails withNOT_FOUND, and an empty list fails withBAD_USER_INPUTunless the return has no items. Returns null if no return with that id is owned by the caller.returnProductCustomsUpdate(Experimental) — Change the customs details of a product on a return, as the return page’s customs edit does, and return the return. The details belong to the product, so the change reaches every return and label for it, not just this return. A field you leave out keeps its value;nullclears it. When the return is held in customs, the change also restarts its customs correction. Returns null if no return with that id is owned by the caller, or the product is not on that return.returnReopen— Reopen a rejected or completed return, as the return page’s Re-open action does, and return it once open. Its rejected or completed items go back to open. Reopening moves no money: refunds, store credit and exchanges already issued are not reversed, and nothing new is issued. A return closed withreturnCloseissued no refund; to refund the customer after reopening it, process it withreturnProcess. A completed return can be reopened only if it was closed, or the store allows reopening after processing. A rejected return can’t be reopened if it was rejected in the return portal or is a claim Redo manages. Fails withACTION_REJECTED, saying why, when the return can’t be reopened, and withFORBIDDENif the acting team member can’t reopen returns. Returns null if no return with that id is owned by the caller.returnRestock(Experimental) — Restock a return’s items before the return is processed, as the return page’s Restock action does, and return the return. Each item goes back to the location the store’s restock settings pick, and the whole quantity of the item is restocked. An item already restocked is skipped, so sending the same request again restocks nothing twice. Every item is checked before anything is restocked: an item not on the return fails withNOT_FOUND, and one that can’t be restocked (a repair, or an order from a platform Redo can’t restock) fails withACTION_REJECTED. It also fails withACTION_REJECTEDif the store hasn’t turned on restocking before processing or the return is reset; the message says which. A request sent while another restock of the same return is running waits for it, then skips what it restocked; if that restock is still running after 30 seconds, it fails withTRY_AGAINand nothing is restocked, so retry it. Returns null if no return with that id is owned by the caller.returnRmaRetry— Retry creating the return’s RMA in each enabled RMA integration (3PL, WMS or ERP), as the return page’s Retry RMA creation action does, and return the return. An integration whose failure the merchant dismissed is left alone. ReadrmaSyncResultson the returned return for each integration’s outcome. Fails withACTION_REJECTEDwhen the retry can’t run (the return still needs approval, or the store has no RMA integration enabled) or an integration errors in a way it doesn’t record as a result, with the reason in the message, and withFORBIDDENwhen the acting team member lacks the manage RMA permission. Returns null if no return with that id is owned by the caller.returnShippingOptionsUpdate(Experimental) — Change the store’s return shipping options. Only the fields you supply change. The change is audited as an API edit, as in the app. These settings change what return labels cost the store and what customers are paid: a highermerchantMaxLabelPriceraises label spend, a signature requirement makes labels cost more, and thedeductLabelFrom...flags reduce refunds, store credit and exchange value. Returns the options after the change.returnShippingRefundUpdate(Experimental) — Set how much of the order’s original shipping to refund when the return is processed, as the return page’s shipping adjustment does, and return the return.nullrefunds none. Fails withACTION_REJECTEDonce the return is closed or while it is processing. Returns null if no return with that id is owned by the caller.returnSystemTagDismiss— Clear a tag Redo put on a return to flag a failure or warning, as the return page’s Dismiss and Mark as restocked actions do, and return the return. A return without that tag comes back unchanged. Returns null if no return with that id is owned by the caller.returnUnflag— Remove a return’s flag, putting it back in the status its shipments imply, and return it once unflagged. A return that isn’t flagged comes back unchanged. Fails withACTION_REJECTEDif the return is processed, rejected or reset. Returns null if no return with that id is owned by the caller.returnUntag— Remove tags from a return by name and return it. Names the return doesn’t carry are ignored. Fails withSYSTEM_TAG, removing nothing, if a name is a tag Redo manages; clear those withreturnSystemTagDismiss. Returns null if no return with that id is owned by the caller.returnValueUpdate(Experimental) — Set what a return is worth to the customer, as the return page’s Edit return value does, and return the return. The difference from the value Redo computed is kept as the merchant’s adjustment, so setting the computed value again removes it. A value below the computed one charges a fee, and a fee above the return’s cap fails withBAD_USER_INPUT. A change leaves a timeline entry naming the acting user, or the public API when no user is behind the call, and updates the return on the store’s platform. Fails withACTION_REJECTEDonce the exchange’s new items are created, once the return is closed, or while it is processing. Returns null if no return with that id is owned by the caller.returnWaiversUpdate(Experimental) — Turn a return’s waivers on or off, as the return page’s summary toggles do, and return the return. A waiver you leave out keeps its value, and setting one to the value it has changes nothing. Each change leaves a timeline entry naming the acting user, or the public API when no user is behind the call.keepFeesAndBonuses: truefails withBAD_USER_INPUTunless the outstanding balance or customer compensation ends up waived; turning both off turns it off too. Waiving the shipping fee fails withACTION_REJECTEDwhen no shipping fee was taken from the customer’s store credit, and any change fails withACTION_REJECTEDonce the return is closed or while it is processing. Read the result fromReturn.waivers. Returns null if no return with that id is owned by the caller.tagReturn— Apply tags to a return by name.SETreplaces the return’s tags, keeping the tags Redo manages;APPENDunions them in. Fails withSYSTEM_TAG, applying nothing, if a name is a tag Redo manages. Returns null if no return with that id is owned by the caller.tagReturns— Add a tag to returns by name, keeping the tags each return already has. Starts a run and returns it at once; the returns are worked through in the background. Returns null, and starts nothing, if any id is not a return owned by the caller.taxIdDelete— Remove a saved tax ID, so customs no longer uses it on international return labels, and return it with its number masked. Returns null if no tax ID with that id is saved for the store.taxIdSave— Save a tax ID, replacing any saved tax ID with the sametypeandissuingAuthority, as editing it on the International returns settings page does. Spaces, dots and dashes are removed from the number, and a number that doesn’t fit its type’s format fails withINVALID_TAX_ID. Returns the saved tax ID with its number masked.unflagReturns— Remove the flag from flagged returns, putting each back in the status its shipments imply. Starts a run and returns it at once; the returns are worked through in the background. Returns null, and starts nothing, if any id is not a return owned by the caller.
Objects
CarrierClaim(Experimental) — A claim the store filed with a carrier for a lost, late, stolen, or damaged package.CarrierClaimFile(Experimental) — A photo or document Redo keeps for a claim.CarrierClaimUpload(Experimental) — A private, one-time place to PUT a photo or document for a carrier claim, so its bytes never pass through the API request.CustomsCodeSettings(Experimental) — Whether the store’s custom customs code runs. The code reshapes the line items used for duty quotes at checkout and for outbound customs forms. It is written in the Redo app; the API only turns it on or off and never returns its source.ExchangeItem— An item on the exchange/new order.ExchangeItemPrice— The price of an exchange item, with tax.ExchangeOrder— The exchange/new order created for the return.ExternalRef— A reference to an external product or variant by id and name.ExternalReturnId— An identifier assigned to the return by an external system.InternationalCustomsSettings(Experimental) — How the store’s international returns get the customs data a carrier needs: which Shopify metafields hold it, what Redo fills in, and what happens to a return that is missing it. These are the settings on the merchant app’s International returns page.InventoryPushPolicy(Experimental) — Which variants Redo includes in future Shopify inventory pushes from Managed Returns.ItemRefund— The refund for a single returned item.MultipleChoiceQuestion— A multiple-choice question and its answer on a return item.PersonName— A person’s given and family name.ProductsAsVariants(Experimental) — Whether exchanges offer products from the same group as variants, and the store’s groups.ProductVariantGroup(Experimental) — A products-as-variants group with its products.ProductVariantGroupChanges(Experimental) — Every change a call made, one line each, in order.ProductVariantGroupCondition(Experimental) — One rule of the group’s Shopify collection. A product that meets any rule is in the group.ProductVariantGroupMember(Experimental) — A product in a group, with the variant values exchanges show for it.ProductVariantGroupMetafieldKey(Experimental) — A product metafield’s namespace and key.ProductVariantGroupStrategy(Experimental) — How a group computes one dimension of each product’s variant values.ProductVariantGroupSuggestion(Experimental) — Which group a product should join, and the variant values it should get. A suggestion only: nothing changes until a create or update call.ProductVariantGroupSummary(Experimental) — A products-as-variants group: products sold separately (one per colour, say) that exchanges offer as variants of each other.ProductVariantOption(Experimental) — One dimension of a product’s variant values, such as Colour: Black.ReasonConversation— The conversation Redo had with the shopper to find their return reason.ReasonConversationMessage— A message in a return reason conversation.Return— A return, exchange, claim, or warranty a customer opened on an order.ReturnActionRun— One run of a return action over a set of returns. A run works through its returns in the background; pollreturnActionRununtilstatusis no longerRUNNING.ReturnActionRunCounts— How many returns of a run ended in each way so far.ReturnCommentImageUpload— A place to PUT one image file for a return comment, so its bytes never pass through the API request.ReturnDropoff— A chosen dropoff for returning items without a printed label.ReturnDropoffEvent— A tracking event the dropoff provider reported for the parcel.ReturnExchange— Exchange details for the return.ReturnGiftCard— A gift card issued as part of the return.ReturnIntegration— A link between this return and an external integration.ReturnItem— A single item on the return.ReturnItemExchangeItem— The product exchanged for a returned item.ReturnNote— A non-system note on the return’s timeline, as the return page’s activity box shows it.ReturnProtection— The Redo coverage behind this return and who it left paying for the label.ReturnRefund— A refund transaction issued for the return.ReturnResetStep— A step of the account’s return flow that a reset can send customers back to.ReturnShipment— A return shipment and its tracking details.ReturnShipmentGroup— A group of return items shipped together under a single label, with the address they’re returned to.ReturnShippingOptions(Experimental) — How the store buys and charges for return shipping labels: the most it will pay for one, when a signature is required, what a label’s cost is deducted from, and how items share a label. These are the settings on the merchant app’s shipping and returns pages. Several of them change what a label costs the store or what a customer is paid.ReturnSource— Who the return is from (the customer).ReturnTotals— The monetary totals for the return.ReturnWaivers— What the merchant has forgiven on the return, as the return page’s summary toggles show.ShopifyCustomsMetafieldMapping(Experimental) — The Shopify metafields, each asnamespace.key, that hold the customs value for an item on an international return. A variant metafield takes precedence over the product metafield of the same kind. A field is null until a metafield is mapped to it.TaxId— A tax ID the store has saved for customs to use on its international return labels. The number is always masked.
Input objects
CarrierClaimCreateInput(Experimental) — The package to claim, found by its tracking number, and what went wrong.CarrierClaimEvidenceInput(Experimental) — Files that support the claim.CarrierClaimFedexDamageInput(Experimental) — The damage section of the FedEx eClaims form, for a damaged outbound FedEx package. Every field is optional on its own, but once you send this group it must be complete: a missing one fails withEVIDENCE_REQUIRED, naming it infields. Each*Othertext is needed when its choice isOTHER.CarrierClaimFileInput(Experimental) — A photo or document for the claim, as a JPEG, PNG, GIF or PDF. Set exactly one ofuploadIdandurl.CarrierClaimFilter(Experimental) — Which carrier claims to include, with the filters of the claims page in Redo. Every field set must match.CarrierClaimUploadCreateInput(Experimental) — The file you will PUT to the upload URL.CarrierClaimUpsDamageInput(Experimental) — The damage section of the UPS claim form, for a damaged outbound UPS package. Without it Redo files with neutral answers. Every field is optional on its own, but once you send this group it must be complete: a missing one fails withEVIDENCE_REQUIRED, naming it infields. TheotherLocationfields are needed whencurrentLocationisAT_OTHER, and each*Othertext when its choice isOTHER.InternationalCustomsSettingsInput(Experimental) — Settings to change. A left-out field keeps its value. The flags can’t be null.InventoryPushPolicyUpdateInput(Experimental) — A revision-checked inventory push policy edit.ProductVariantGroupConditionInput(Experimental) — A collection rule to add. Products that meet any rule join the group.ProductVariantGroupStrategyInput(Experimental) — How to compute one dimension of each product’s variant values.ProductVariantOptionInput(Experimental) — One dimension of a product’s variant values. Neither part may contain:or,.ProductVariantOptionsInput(Experimental) — The full set of variant values to store on one product. Replaces what’s stored.ReturnApproveItemInput— What to change about one item on approval. An item left out keeps what the return already says.ReturnApproveLabelInput— One of several labels the items sent back are split across.ReturnExchangeItemInput(Experimental) — A variant to add to an exchange, and how many.ReturnItemUpdateInput— The changes to make to an item on a return. A field you leave out keeps its value.ReturnLocationInput— Where a return’s items are sent: one of the account’s locations, or an address. Give exactly one.ReturnProcessItemInput— What to do with one item on the return.ReturnRestockItemInput(Experimental) — One item on the return to restock.ReturnShippingOptionsInput(Experimental) — Options to change. A left-out field keeps its value;merchantMaxLabelPriceandrequireSignatureThresholdtake null to clear them. The flags and the tag list can’t be null. A price outside the allowed range or in a currency other than USD fails with BAD_USER_INPUT (400) and nothing is saved.ShopifyCustomsMetafieldMappingInput(Experimental) — Metafield keys to change. A left-out field keeps its value; null or a blank string clears it. A key must benamespace.key, using letters, digits,-and_, such ascustom.customs_description; anything else fails with BAD_USER_INPUT (400) and nothing is saved.
Enums
CarrierClaimFedexDamageToContents(Experimental) — An answer on the FedEx eClaims form.CarrierClaimFedexDamageToOuter(Experimental) — An answer on the FedEx eClaims form.CarrierClaimFedexPackagingMaterial(Experimental) — An answer on the FedEx eClaims form.CarrierClaimFileType(Experimental) — What a claim file is, so each carrier or insurer gets it as the document it asks for.CarrierClaimKind(Experimental) — Which way the claimed package was going.CarrierClaimReason(Experimental) — What went wrong with the package.CarrierClaimSearchSortKey(Experimental) — How a carrier claim search orders its results; pair withreverseto flip direction.CarrierClaimStatus(Experimental) — Where the claim is with Redo and the carrier. New values may be added; handle unknown ones.CarrierClaimUpsDamageLocation(Experimental) — An answer on the UPS claim form.CarrierClaimUpsItemCondition(Experimental) — An answer on the UPS claim form.CarrierClaimUpsPackageType(Experimental) — An answer on the UPS claim form.CarrierClaimUpsPackagingMaterial(Experimental) — An answer on the UPS claim form.CarrierClaimUpsSealMethod(Experimental) — An answer on the UPS claim form.DismissibleReturnSystemTag— A tag Redo puts on a return to flag a failure or warning, which the merchant clears once they’ve handled it.InventoryPushMode(Experimental) — How the policy applies its listed products.ProductVariantGroupChangeStatus(Experimental) — What happened to one requested change.ProductVariantGroupConditionField(Experimental) — What a collection rule tests.ProductVariantGroupMatchConfidence(Experimental) — How sure a group suggestion is.ProductVariantGroupStrategyKind(Experimental) — Where a group’s variant values come from.ProductVariantOptionIssue(Experimental) — A problem with a product’s stored variant values.ReasonConversationRole— Who sent a message in a return reason conversation.ReturnAction— An action a merchant takes on a return.ReturnActionResultStatus— What a run did, or has yet to do, to one return.ReturnActionRunStatus— Where a run of a return action stands.ReturnCommentImageContentType— The file type of an image attached to a return comment.ReturnCompensationMethod— How a customer is compensated for a return.ReturnContactType(Experimental) — Which contact on a return an edit changes.ReturnExchangeCompensation— What the shopper gets instead of a cancelled exchange.ReturnExchangeItemsLockedReason— Why an exchange’s new items can no longer be edited.ReturnItemExchangeBalanceTo— How the customer gets the balance left over when the items they exchange for are worth less than the items they return.ReturnItemStatus— The processing status of a single returned item.ReturnItemStrategy— The compensation strategy applied to a returned item.ReturnLabelPayer— Who pays for the return label.ReturnLabelPayerReason— Why the return label fell to that payer.ReturnProvisionType— When an exchange or store credit is provisioned.ReturnRejectType— Why a rejected return was rejected.ReturnResetStepPurpose— What the customer does at a return flow step.ReturnRmaSyncStatus— How the latest attempt to create the return’s RMA in one integration ended.ReturnSortKey— A field this list can be ordered by; pass to the list’sorderByargument and pair withreverseto flip direction.ReturnStatus— The lifecycle status of a return.ReturnType— What kind of return this is.TaxIdType— The kind of tax ID customs uses on international returns.