Skip to content

Create RMA custom field

Creates a new RMA custom field. Permission: sales.rma.custom-fields.create.

Endpoint

POST /api/admin/rma/custom-fields

Request body

FieldTypeRequiredNotes
codestringYesUnique machine code.
labelstringYesField label.
typestringYesOne of text, textarea, select, multiselect, checkbox, radio.
optionsarrayConditionalRequired for select / multiselect / checkbox / radio. Each entry { name, value }.
is_requiredintegerNo1/0 (default 0).
positionintegerNoSort order.
input_validationstringNoValidation rule name.
statusintegerNo1 active / 0 inactive (default 1).

Returns 201 with the created RMA custom field.

Released under the MIT License.