---
title: "Create an RMA rule"
method: POST
path: "/rma/rules"
tags: ["Admin Sales: RMA"]
---

# Create an RMA rule

`POST /rma/rules`

## Request

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

Permission: sales.rma.rules.create.

## Request body

- object
  - `name` string, required
  - `description` string
  - `status` 0 | 1
  - `return_period` integer, required

## Response `201`

The created RMA rule.

## 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)
