API reference
Returns
List returns
/api/v1/returns
Returns shoppers opened on your orders, most recently moved first. A return moves requested, then approved or rejected, then received, then refunded. Filter by `status` to find open requests.
- Scope
- MCP tool
- returns_list
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
statusquery · optional | enum | Only returns at this step; every step when omitted |
limitquery · optional | integer | Results per page, 1-100 |
cursorquery · optional | string | The `next_cursor` from the previous page |
Request
curl "https://3commerce.com/api/v1/returns" \
-H "Authorization: Bearer 3c_live_…"Response
{
"data": [
{
"id": "8e2b4d6f-1a3c-4e5f-9b7d-0c2e4a6b8d1f",
"order_id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
"order_number": "3C-104829",
"customer": "Maya Chen",
"email": "maya.chen@example.com",
"reason": "Too small",
"notes": "The M fits like an S.",
"status": "requested",
"response": "",
"subtotal": 98,
"restocking_fee": 0,
"refund_amount": 98,
"created_at": "2026-11-25T09:12:00.000Z",
"updated_at": "2026-11-25T09:12:00.000Z",
"line_items": [
{
"title": "Merino crew sweater",
"options": "Oat / M",
"quantity": 1,
"image_url": null,
"restocking_rate": 0
}
]
}
],
"next_cursor": null
}Get a return
/api/v1/returns/{id}
One return with the lines going back, each line’s restocking rate, and what the refund comes to.
- Scope
- MCP tool
- returns_get
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl "https://3commerce.com/api/v1/returns/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "8e2b4d6f-1a3c-4e5f-9b7d-0c2e4a6b8d1f",
"order_id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
"order_number": "3C-104829",
"customer": "Maya Chen",
"email": "maya.chen@example.com",
"reason": "Too small",
"notes": "The M fits like an S.",
"status": "requested",
"response": "",
"subtotal": 98,
"restocking_fee": 0,
"refund_amount": 98,
"created_at": "2026-11-25T09:12:00.000Z",
"updated_at": "2026-11-25T09:12:00.000Z",
"line_items": [
{
"title": "Merino crew sweater",
"options": "Oat / M",
"quantity": 1,
"image_url": null,
"restocking_rate": 0
}
]
}Approve a return
/api/v1/returns/{id}/approve
Approves a requested return and emails the shopper your `instructions` for sending it back. Sends `return.updated`. A return already answered is 409 `invalid_status`.
- Scope
- MCP tool
- returns_approve
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
instructionsbody · required | string | How to send it back, emailed to the shopper, up to 2000 characters |
Request
curl -X POST "https://3commerce.com/api/v1/returns/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/approve" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{
"instructions": "Example instructions"
}'Response
{
"id": "8e2b4d6f-1a3c-4e5f-9b7d-0c2e4a6b8d1f",
"order_id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
"order_number": "3C-104829",
"customer": "Maya Chen",
"email": "maya.chen@example.com",
"reason": "Too small",
"notes": "The M fits like an S.",
"status": "approved",
"response": "Ship it to 12 Harbor St, Seattle, WA 98101.",
"subtotal": 98,
"restocking_fee": 0,
"refund_amount": 98,
"created_at": "2026-11-25T09:12:00.000Z",
"updated_at": "2026-11-25T09:12:00.000Z",
"line_items": [
{
"title": "Merino crew sweater",
"options": "Oat / M",
"quantity": 1,
"image_url": null,
"restocking_rate": 0
}
]
}Reject a return
/api/v1/returns/{id}/reject
Rejects a requested return, with an optional `note` emailed to the shopper. Sends `return.updated`. A return already answered is 409 `invalid_status`.
- Scope
- MCP tool
- returns_reject
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
notebody · optional | string | Why, emailed to the shopper, up to 2000 characters |
Request
curl -X POST "https://3commerce.com/api/v1/returns/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/reject" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"id": "8e2b4d6f-1a3c-4e5f-9b7d-0c2e4a6b8d1f",
"order_id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
"order_number": "3C-104829",
"customer": "Maya Chen",
"email": "maya.chen@example.com",
"reason": "Too small",
"notes": "The M fits like an S.",
"status": "rejected",
"response": "This was past the 30-day window.",
"subtotal": 98,
"restocking_fee": 0,
"refund_amount": 98,
"created_at": "2026-11-25T09:12:00.000Z",
"updated_at": "2026-11-25T09:12:00.000Z",
"line_items": [
{
"title": "Merino crew sweater",
"options": "Oat / M",
"quantity": 1,
"image_url": null,
"restocking_rate": 0
}
]
}Mark a return received
/api/v1/returns/{id}/receive
Marks an approved return’s parcel as back with you, and emails the shopper. Sends `return.updated`. Only an approved return can be received: anything else is 409 `invalid_status`.
- Scope
- MCP tool
- returns_receive
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl -X POST "https://3commerce.com/api/v1/returns/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/receive" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"id": "8e2b4d6f-1a3c-4e5f-9b7d-0c2e4a6b8d1f",
"order_id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
"order_number": "3C-104829",
"customer": "Maya Chen",
"email": "maya.chen@example.com",
"reason": "Too small",
"notes": "The M fits like an S.",
"status": "received",
"response": "",
"subtotal": 98,
"restocking_fee": 0,
"refund_amount": 98,
"created_at": "2026-11-25T09:12:00.000Z",
"updated_at": "2026-11-25T09:12:00.000Z",
"line_items": [
{
"title": "Merino crew sweater",
"options": "Oat / M",
"quantity": 1,
"image_url": null,
"restocking_rate": 0
}
]
}Refund a return
/api/v1/returns/{id}/refund
Refunds an approved or received return to the shopper’s card through Stripe, less any restocking fee, and records the refund on the order. Sends `return.updated` and `order.refunded`. Moves money, so it needs `income:write`.
- Scope
- MCP tool
- returns_refund
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl -X POST "https://3commerce.com/api/v1/returns/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/refund" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"id": "8e2b4d6f-1a3c-4e5f-9b7d-0c2e4a6b8d1f",
"order_id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
"order_number": "3C-104829",
"customer": "Maya Chen",
"email": "maya.chen@example.com",
"reason": "Too small",
"notes": "The M fits like an S.",
"status": "refunded",
"response": "",
"subtotal": 98,
"restocking_fee": 0,
"refund_amount": 98,
"created_at": "2026-11-25T09:12:00.000Z",
"updated_at": "2026-11-25T09:12:00.000Z",
"line_items": [
{
"title": "Merino crew sweater",
"options": "Oat / M",
"quantity": 1,
"image_url": null,
"restocking_rate": 0
}
]
}