Skip to content

List RMA rules

Returns the store's return rules. Rows come back in the standard { data, meta } envelope.

Endpoint

GET /api/admin/rma/rules

Query parameters

All parameters are optional and combine in one request — filter, sort and paginate together.

Pagination

ParameterDescription
pagePage number (1-based).
per_pageItems per page (default 10, max 50).

Filters

Each filter narrows the result; supplying more than one combines with logical AND.

ParameterMatchExample
namePartial (contains).?name=Apparel
statusExact — 1 active, 0 inactive.?status=1

Sorting

ParameterValues
sortid (default), name
orderasc, desc (default desc)

Fields

FieldMeaning
nameThe rule label.
descriptionFree-text description of the rule.
status1 active, 0 inactive.
returnPeriodThe return window in days for products this rule matches.
default1 if this is the default rule, 0 otherwise.
messagenull on create / update / read; populated only on the delete confirmation.

For how this menu fits the rest of the RMA settings, see the menu overview.

Released under the MIT License.