Return
Requires access scope or
access scope.
The Return
object represents the intent of a buyer to ship one or more items from an order back to a merchant
or a third-party fulfillment location. A return is associated with an order
and can include multiple return line items.
Each return has a status,
which indicates the state of the return.
Use the Return
object to capture the financial, logistical,
and business intent of a return. For example, you can identify eligible items for a return and issue customers
a refund for returned items on behalf of the merchant.
Learn more about providing a return management workflow for merchants. You can also manage exchanges, reverse fulfillment orders, and reverse deliveries on behalf of merchants.
Anchor to FieldsFields
- Anchor to closedAtclosed•Date
At Time The date and time when the return was closed.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time when the return was created.
- Anchor to declinedecline•Return
Decline Additional information about the declined return.
- Anchor to exchangeLineItemsexchange•Exchange
Line Items Line Item Connection! non-null The exchange line items attached to the return.
- •ID!non-null
A globally-unique ID.
- Anchor to namename•String!non-null
The name of the return.
- Anchor to orderorder•Order!non-null
The order that the return belongs to.
- Anchor to refundsrefunds•Refund
Connection! non-null The list of refunds associated with the return.
- Anchor to requestApprovedAtrequest•Date
Approved At Time The date and time when the return was approved.
- Anchor to returnLineItemsreturn•Return
Line Items Line Item Connection! non-null The return line items attached to the return.
- Anchor to returnShippingFeesreturn•[Return
Shipping Fees Shipping Fee!]! non-null The return shipping fees for the return.
- Anchor to reverseFulfillmentOrdersreverse•Reverse
Fulfillment Orders Fulfillment Order Connection! non-null The list of reverse fulfillment orders for the return.
- Anchor to statusstatus•Return
Status! non-null The status of the return.
- Anchor to suggestedFinancialOutcomesuggested•Suggested
Financial Outcome Return Financial Outcome A suggested financial outcome for the return.
- Anchor to totalQuantitytotal•Int!
Quantity non-null The sum of all return line item quantities for the return.
- Anchor to suggestedRefundsuggested•Suggested
Refund Return Refund Deprecated
Anchor to QueriesQueries
- •query
Retrieves a return by its ID. A return represents the intent of a buyer to ship one or more items from an order back to a merchant or a third-party fulfillment location.
Use the
return
query to retrieve information associated with the following workflows:A return is associated with an order and can include multiple return line items. Each return has a status, which indicates the state of the return.
Anchor to MutationsMutations
- •mutation
Removes return and/or exchange lines from a return.
- •mutation
Approves a customer's return request. If this mutation is successful, then the
Return.status
field of the approved return is set to.
- •mutation
Cancels a return and restores the items back to being fulfilled. Canceling a return is only available before any work has been done on the return (such as an inspection or refund).
- •mutation
Indicates a return is complete, either when a refund has been made and items restocked, or simply when it has been marked as returned in the system.
- •mutation
Creates a return from an existing order that has at least one fulfilled line item that hasn't yet been refunded. If you create a return on an archived order, then the order is automatically unarchived.
Use the
mutation when your workflow involves approving or declining requested returns outside of the Shopify platform.
The
mutation performs the following actions:
- Creates a return in the
state, and assumes that the return request from the customer has already been approved
- Creates a reverse fulfillment order, and enables you to create a reverse delivery for the reverse fulfillment order
- Creates a sales agreement with a
reason, which links to all sales created for the return or exchange
- Generates sales records that reverse the sales records for the items being returned
- Generates sales records for any exchange line items
After you've created a return, use the
return
query to retrieve the return by its ID. Learn more about providing a return management workflow for merchants.- Creates a return in the
- •mutation
Declines a return on an order. When a return is declined, each
can be associated to a new return. Use the
or
mutation to initiate a new return.
- •mutation
Process a return.
- •mutation
Reopens a closed return.
- •mutation
A customer's return request that hasn't been approved or declined. This mutation sets the value of the
Return.status
field to. To create a return that has the
Return.status
field set to, use the
mutation.
- •mutationDeprecated