---
title: "Create an RMA custom field"
method: POST
path: "/rma/custom-fields"
tags: ["Admin Sales: RMA"]
---

# Create an RMA custom field

`POST /rma/custom-fields`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/rma/custom-fields`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/rma/custom-fields/post.ts> (a function with typed inputs; its response is checked against the schema)

`options` is required for select/multiselect/checkbox/radio types. Permission: sales.rma.custom-fields.create.

## Request body

- object
  - `code` string, required
  - `label` string, required
  - `type` 'text' | 'textarea' | 'select' | 'multiselect' | 'checkbox' | 'radio', required
  - `is_required` 0 | 1
  - `position` integer
  - `input_validation` string
  - `status` 0 | 1
  - `options` object[]: Required for select/multiselect/checkbox/radio.
    - `name` string
    - `value` string

## Response `201`

The created RMA custom field.

## Other responses

- `400`: Invalid input
- `422`: Validation Error

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
