Skip to content

View Return

About

The customerReturn query returns a single return (RMA) request owned by the authenticated customer, with the full detail — the returned item, attached images, status and the action flags (canClose, canReopen, isExpired). If the return does not exist or belongs to a different customer, the query returns a not-found error.

Authentication

This query requires an authenticated customer — send the storefront key and a customer Bearer token. See the Authentication page.

Arguments

ArgumentTypeRequiredDescription
idID!✅ YesThe return IRI, e.g. /api/shop/returns/12.

Possible Returns

FieldTypeDescription
_idInt!Numeric return ID.
orderIdInt!Id of the order the item belongs to.
orderIncrementIdString!Human-readable order number.
statusIdInt!Numeric status id.
statusTitleString!Status label, e.g. Pending.
statusColorString!Hex color for the status badge.
packageConditionStringReported package condition, e.g. opened.
informationStringFree-text note supplied when the return was raised.
canCloseBooleanWhether the return can be closed (marked solved).
canReopenBooleanWhether the return can be reopened back to pending.
isExpiredBooleanWhether the return is past its action window.
itemObjectThe returned item — id, order_item_id, sku, name, quantity, resolution, reason_id, reason, variant_id. Query bare (a JSON object).
item.idIntId of the return item row.
item.order_item_idIntId of the source order item.
item.skuStringProduct SKU.
item.nameStringProduct name.
item.quantityIntQuantity being returned/canceled.
item.resolutionStringResolution type: return or cancel_items.
item.reason_idIntId of the chosen return reason.
item.reasonStringTitle of the chosen return reason.
item.variant_idIntVariant id for a configurable product, or null.
imagesArrayAttached images. Query bare (a JSON array).
images[].idIntImage id.
images[].pathStringStored file path.
images[].urlStringPublic URL of the image.
messagesCountInt!Number of conversation messages on the return.
createdAtDateTime!Return creation timestamp.
updatedAtDateTime!Return last update timestamp.

Released under the MIT License.