Skip to main content
query

Requires read_returns access scope or read_marketplace_returns access scope.

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.

•ID!
required

The globally-unique ID of the return to retrieve.


Was this section helpful?

•Return

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.

•ReturnDecline

Additional information about the declined return.

•ExchangeLineItemConnection!
non-null

The exchange line items attached to the return.

Arguments

•Boolean
Default:false

Include exchange line items that have been removed from the order by an order edit, return, etc. Items that have been removed have a zero (LineItem.currentQuantity).

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.


•ID!
non-null

A globally-unique ID.

•String!
non-null

The name of the return.

•Order!
non-null

The order that the return belongs to.

•RefundConnection!
non-null

The list of refunds associated with the return.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.


•ReturnLineItemTypeConnection!
non-null

The return line items attached to the return.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.


•[ReturnShippingFee!]!
non-null

The return shipping fees for the return.

Anchor to reverseFulfillmentOrdersreverseFulfillmentOrders
•ReverseFulfillmentOrderConnection!
non-null

The list of reverse fulfillment orders for the return.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.


•ReturnStatus!
non-null

The status of the return.

•Int!
non-null

The sum of all return line item quantities for the return.

•SuggestedReturnRefund
Deprecated

Arguments

Anchor to returnRefundLineItemsreturnRefundLineItems
•[ReturnRefundLineItemInput!]!
required

The line items from the return to include in the refund.

•RefundShippingInput

The shipping amount from the associated order to include in the refund.

•[RefundDutyInput!]

The duties from to associated order to include in the refund.



Was this section helpful?