---
title: "Send a message on a return request"
method: POST
path: "/return-messages"
tags: ["Customer Return"]
---

# Send a message on a return request

`POST /return-messages`

## Request

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

Sends a message on a return. Attach one file in `file` (multipart) or as a base64 data URI in `attachment` (JSON).

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Request body

- object
  - `return_id` integer, required
  - `message` string, required
  - `attachment` string: Attachment as a base64 data URI, max 5 MB.
  - `attachment_name` string: File name shown for the attachment.

## Response `201`

The created message.

## Other responses

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

## Changes

- **2026-10-28** `b84d43839844`: 2 info
  - added the new optional request property `attachment`
  - added the new optional request property `attachment_name`
- **2026-09-11** `b5ed37df6a9b`: 1 info
  - added the media type `multipart/form-data` to the request body

[Operation history](https://skmtc.dev/bagisto/apis/bagisto-shop-api/changes/return-messages/post.md)

---

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