Return
A product return.
Anchor to FieldsFields
- closedAt (DateTime)
- createdAt (DateTime)
- exchangeLineItems (ExchangeLineItemConnection!)
- id (ID!)
- name (String!)
- returnLineItems (ReturnLineItemTypeConnection!)
- returnLineItemsCount (Count)
- reverseDeliveries (ReverseDeliveryConnection!)
- status (ReturnStatus!)
- updatedAt (DateTime)
- Anchor to closedAtclosed•Date
At Time The date when the return was closed.
- Anchor to createdAtcreated•Date
At Time The date when the return was created.
- Anchor to exchangeLineItemsexchange•Exchange
Line Items Line Item Connection! non-nullPre-auth accessible The exchange line items attached to the return.
- Anchor to includeRemovedItemsinclude•Boolean
Removed Items 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).
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- •ID!non-nullPre-auth accessible
A globally-unique ID.
- Anchor to namename•String!non-nullPre-auth accessible
The name assigned to the return.
- Anchor to returnLineItemsreturn•Return
Line Items Line Item Type Connection! non-nullPre-auth accessible The line items associated with the return.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to returnLineItemsCountreturn•Count
Line Items Count The number of line items associated with the return.
- Anchor to reverseDeliveriesreverse•Reverse
Deliveries Delivery Connection! non-nullPre-auth accessible The list of reverse deliveries associated with the return.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to statusstatus•Return
Status! non-nullPre-auth accessible The current status of the
Return.- Anchor to updatedAtupdated•Date
At Time The date when the return was last updated.
Anchor to QueriesQueries
- return (Return)
- •query
Returns a Return resource by ID. Apps using the Customer Account API must meet the protected customer data requirements.
- •ID!required
The ID of the Return.
Arguments
- •ID!
Anchor to MutationsMutations
- orderRequestReturn (OrderRequestReturnPayload)
- •mutation
Request a new return on behalf of a customer.
- Anchor to orderIdorder•ID!
Id required The ID of the order for which this return is being requested.
- Anchor to requestedLineItemsrequested•[Requested
Line Items Line Item Input!]! required The line items that are requested to be returned.
Arguments