---
title: "Create an RMA request for a customer order"
method: POST
path: "/rma/requests"
tags: ["Admin Sales: RMA"]
---

# Create an RMA request for a customer order

`POST /rma/requests`

## Request

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

Admin-side return creation for any order. `rmaQty` is capped server-side by the item's returnable/cancelable quantity. Optional image files via multipart `images[]` (REST only). Returns the created RMA. Permission: sales.rma.requests.create.

## Request body

- object
  - `order_id` integer, required
  - `order_item_id` integer, required
  - `rma_qty` integer, required
  - `resolution_type` 'return' | 'cancel_items', required
  - `rma_reason_id` integer, required
  - `information` string
  - `package_condition` string

## Response `201`

The created return request.

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