Skip to content

Cancel a Return

About

The cancelCustomerReturn mutation cancels the customer's own return (RMA) request, unless it is already canceled. The result carries the updated return with its new status and action flags.

Authentication

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

Input Fields

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

Possible Returns

FieldTypeDescription
customerReturn._idInt!Numeric return ID.
customerReturn.orderIdInt!Id of the order the item belongs to.
customerReturn.orderIncrementIdString!Human-readable order number.
customerReturn.statusIdInt!Numeric status id after the cancel.
customerReturn.statusTitleString!Status label, e.g. Canceled.
customerReturn.statusColorString!Hex color for the status badge.
customerReturn.canCloseBooleanWhether the return can be closed.
customerReturn.canReopenBooleanWhether the return can be reopened.
customerReturn.isExpiredBooleanWhether the return is past its action window.
customerReturn.messagesCountInt!Number of conversation messages on the return.
customerReturn.updatedAtDateTime!Return last update timestamp.

Released under the MIT License.