Skip to content

Reopen a Return ​

Reopen a canceled or declined return (RMA) request back to Pending — but only when the store's settings allow customers to reopen returns. If reopening is disabled, the endpoint returns HTTP 400. The response carries the updated return.

Endpoint ​

POST /api/shop/returns/{id}/reopen

Authentication ​

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

Request Headers ​

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key
AuthorizationYesBearer token (customer login required)

Path Parameters ​

ParameterTypeRequiredDescription
idintegerYesId of the return to reopen. Must belong to the authenticated customer.

Request Body ​

No body is required — send an empty body.

Response Fields (200 OK) ​

FieldTypeDescription
idintegerReturn ID.
orderIdintegerId of the order the item belongs to.
orderIncrementIdstringHuman-readable order number.
statusIdintegerNumeric status id after the reopen — 1 (Pending).
statusTitlestringStatus label.
statusColorstringHex color for the status badge.
canClosebooleanWhether the return can be closed.
canReopenbooleanWhether the return can be reopened.
isExpiredbooleanWhether the return is past its action window.
messagesCountintegerNumber of conversation messages on the return.
updatedAtstringISO 8601 last update timestamp.

Status Codes ​

StatusMeaning
200 OKReturn reopened.
400 Bad RequestReopening is disabled in the store's settings.
401 UnauthorizedMissing or invalid storefront key.
403 ForbiddenMissing or invalid customer Bearer token.
404 Not FoundThe return does not exist or is not the customer's.

Released under the MIT License.