Return GraphQL
Served by ReturnModule on commercetools.
Each operation has its own page with its arguments, an example and the engines that serve it. The types link to their fields on the return types page.
Operations
| Operation | Description | Served by |
|---|---|---|
returnEstimateQuery | What a return of these lines would withhold and pay back, before it is requested. | commercetools |
returnExchangeOptionsQuery | What a line of one of the customer's own orders can be exchanged for: the other variants of its product that are in stock and cost no more than was paid. | commercetools |
returnReasonsQuery | Reasons a buyer may give, in the store's language | commercetools |
returnAttachmentUploadMutation | A signed URL to upload one attachment to | commercetools |
returnCancelMutation | Withdraw a return that is still cancellable | commercetools |
returnCreateMutation | Request a return for delivered lines, for the session's active business unit or, without one, the customer; every order must belong to it. | commercetools |
Types
| Type | Description |
|---|---|
InvoiceObject | |
ReturnObject | A return raised against one or more orders |
ReturnableLineObject | An order line that can still be returned, and how many. |
ReturnAttachmentObject | A photo or document attached to a returned line |
ReturnAttachmentUploadObject | A signed URL to PUT one attachment to, before it is named in returnCreate |
ReturnAttachmentUploadErrorUnion | |
ReturnAttachmentUploadResponseObject | |
ReturnCancelErrorUnion | |
ReturnCancelResponseObject | |
ReturnCreateErrorUnion | |
ReturnCreateResponseObject | |
ReturnCreditNoteObject | The credit note that settles a credited return against its invoice |
ReturnDropOffObject | What the buyer shows at a service point to hand the parcel in. |
ReturnErrorObject | A return the server refuses for a reason of the domain rather than of one field |
ReturnErrorCodeTypeEnum | |
ReturnEstimateObject | What a return of these lines would withhold and pay back, to show before it is requested |
ReturnEstimateLineObject | |
ReturnExchangeObject | What a returned line is exchanged for, in the same quantity, instead of being refunded. |
ReturnExchangeInputInput object | |
ReturnItemObject | A single returned line within a return |
ReturnItemInputInput object | |
ReturnReasonObject | Why a return or one of its lines was raised |
ReturnReasonInputInput object | |
ReturnReasonOptionObject | A reason a buyer may give for returning a line, with what it requires. |
ReturnRefundObject | Where a consumer's refund goes, and what was paid back |
ReturnRefundMethodTypeEnum | Where a consumer's refund goes |
ReturnResolutionTypeEnum | How a completed return was settled |
ReturnResultObject | |
ReturnShippingObject | |
ReturnShippingInputInput object | |
ReturnShippingMethodTypeEnum | How the goods go back to the seller |
ReturnStatusTypeEnum | Where a return is in the process, normalized across engines |
Fields on other types
This domain adds these fields to types that another domain defines.
BusinessUnit
| Field | Type | Description |
|---|---|---|
returns | ReturnResult! | Returns for the unit's orders the associate can see, newest firstArguments: page, pageSize, status |
return | Return | One of the unit's returns the associate can see; null otherwiseArguments: id |
Customer
| Field | Type | Description |
|---|---|---|
returns | ReturnResult! | The signed-in customer's returns, newest firstArguments: page, pageSize, status |
return | Return | One of the signed-in customer's returns; null when it is not theirsArguments: id |
Order
| Field | Type | Description |
|---|---|---|
returnableLines | [ReturnableLine!]! | Lines that can still be returned; empty when nothing was delivered or all went back |
returnRefundMethods | [ReturnRefundMethodType!]! | How a consumer's return of this order may be refunded; a refundMethod outside it is refused. Empty for a business unit's order, which is settled by credit note instead. |

