Skip to content

Return Rules

The Return Rules menu is part of the store's RMA (Returns) settings. Return rules set the return window (in days) for matching products. Each rule has a name, description, active status and a returnPeriod — the number of days after purchase a customer may still open a return.

Endpoints

ActionMethod & path
ListGET /api/admin/rma/rules
GetGET /api/admin/rma/rules/{id}
CreatePOST /api/admin/rma/rules
UpdatePUT /api/admin/rma/rules/{id}
DeleteDELETE /api/admin/rma/rules/{id}
Mass deletePOST /api/admin/rma/rules/mass-delete
Mass update statusPOST /api/admin/rma/rules/mass-update-status

List responses are wrapped in the standard { data, meta } envelope.

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.

How RMA settings fit together

Reasons, statuses and custom fields shape the returns form the customer fills in when opening a return; rules set the return window that decides whether a product is still eligible. Together they make up the store's RMA (Returns) settings.

Permissions

ActionPermission
Createsales.rma.rules.create
Update / mass update statussales.rma.rules.edit
Delete / mass deletesales.rma.rules.delete

All endpoints require an admin Bearer token — see Authentication.

Released under the MIT License.