Skip to content

List Return Reasons

List the active reasons a customer can pick when raising a return, filtered by the resolution type. Use a reason's id as the rma_reason_id when calling POST /api/shop/returns.

Endpoint

GET /api/shop/return-reasons

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)

Query Parameters

ParameterTypeRequiredDescription
resolution_typestringYesThe resolution the reasons apply to — return or cancel_items.

Response Fields (200 OK)

The response is a plain JSON array. Each item is a reason object.

FieldTypeDescription
idintegerNumeric reason id — use as rma_reason_id when raising a return.
titlestringReason label, e.g. Damaged product.
positionintegerDisplay order position.

Status Codes

StatusMeaning
200 OKReasons retrieved.
400 Bad Requestresolution_type is missing or invalid.
401 UnauthorizedMissing or invalid customer Bearer token.
403 ForbiddenMissing or invalid storefront key.

Released under the MIT License.