Skip to content

API reference

Returns

Read what shoppers asked to send back, and move each return a step: approve, reject, receive, or refund.

List returns

GET/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
returns:read
MCP tool
returns_list
Changes data
No

Parameters

NameTypeDescription
statusquery · optionalenumOnly returns at this step; every step when omittedone of requested, approved, received, refunded, rejected
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

curl "https://3commerce.com/api/v1/returns" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "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

GET/api/v1/returns/{id}

One return with the lines going back, each line’s restocking rate, and what the refund comes to.

Scope
returns:read
MCP tool
returns_get
Changes data
No

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id

Request

curl "https://3commerce.com/api/v1/returns/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "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

POST/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
returns:write
MCP tool
returns_approve
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id
instructionsbody · requiredstringHow to send it back, emailed to the shopper, up to 2000 characters1-2000 chars

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

201 Created
{
  "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

POST/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
returns:write
MCP tool
returns_reject
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id
notebody · optionalstringWhy, emailed to the shopper, up to 2000 charactersmax 2000 charsdefault ""

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

201 Created
{
  "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

POST/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
returns:write
MCP tool
returns_receive
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (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

201 Created
{
  "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

POST/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
income:write
MCP tool
returns_refund
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (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

201 Created
{
  "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
    }
  ]
}