---
title: "Update the status of an RMA request"
method: POST
path: "/rma/requests/{id}/update-status"
tags: ["Admin Sales: RMA"]
---

# Update the status of an RMA request

`POST /rma/requests/{id}/update-status`

## Request

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

Sets the RMA status. Status 5 (received package) creates a refund for the returned item (send `shipping` to include shipping); status 8 (item canceled) cancels the order item and restores its inventory; any other status just updates the status. Adds a status note and notifies the customer. Returns the updated RMA. Permission: sales.rma.requests.

## Path parameters

- `id` string, required

## Request body

- object
  - `rma_status_id` integer, required
  - `shipping` number

## Response `200`

The updated return request after the status change.

## Other responses

- `201`: AdminReturn resource created
- `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)
