Skip to content

API reference

Income

Read earnings, payouts, statements, and storefront commissions, and settle refund requests.

Get an earnings summary

GET/api/v1/income/summary

Gross sales, platform fees, refunds, and net earnings over the last `days`, with the same figures for the window before it. Gross counts every order not canceled, and `net = gross - refunds - fees`.

Scope
income:read
MCP tool
income_summary
Changes data
No

Parameters

NameTypeDescription
daysquery · optionalintegerWindow in days, 1-3651-365default 30

Request

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

Response

200 OK
{
  "days": 30,
  "gross": 4820,
  "fees": 231.5,
  "refunds": 190,
  "net": 4398.5,
  "previous": {
    "gross": 4105,
    "fees": 197.25,
    "refunds": 120,
    "net": 3787.75
  }
}

List refunds

GET/api/v1/income/refunds

Refund requests from customers, newest first, with the order each is for. Filter by status to find open `requested` ones to approve or decline.

Scope
income:read
MCP tool
income_refunds_list
Changes data
No

Parameters

NameTypeDescription
statusquery · optionalenumOnly refunds in this status; every status when omittedone of requested, approved, declined
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

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

Response

200 OK
{
  "data": [
    {
      "id": "7d2e4b1a-3c5f-4e6a-8b9d-0a1c2e3f4b5d",
      "order_id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
      "order_number": "3C-104829",
      "customer": "Maya Chen",
      "amount": 98,
      "reason": "The sweater runs small.",
      "status": "requested",
      "created_at": "2026-11-23T10:05:00.000Z",
      "resolved_at": null
    }
  ],
  "next_cursor": null
}

Approve a refund

POST/api/v1/income/refunds/{id}/approve

Approves an open refund request: the money goes back to the shopper through Stripe, the order becomes refunded, the shop gets a notification, and `order.refunded` is sent. A request already resolved answers 409 `already_resolved`, and a refusal from Stripe 502 `payment_provider_error`.

Scope
income:write
MCP tool
income_refunds_approve
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id

Request

curl -X POST "https://3commerce.com/api/v1/income/refunds/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/approve" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

201 Created
{
  "id": "7d2e4b1a-3c5f-4e6a-8b9d-0a1c2e3f4b5d",
  "order_id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
  "order_number": "3C-104829",
  "customer": "Maya Chen",
  "amount": 98,
  "reason": "The sweater runs small.",
  "status": "approved",
  "created_at": "2026-11-23T10:05:00.000Z",
  "resolved_at": "2026-11-24T08:30:00.000Z"
}

Decline a refund

POST/api/v1/income/refunds/{id}/decline

Declines an open refund request. The order keeps its status. A request already resolved answers 409 `already_resolved`.

Scope
income:write
MCP tool
income_refunds_decline
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id

Request

curl -X POST "https://3commerce.com/api/v1/income/refunds/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/decline" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

201 Created
{
  "id": "7d2e4b1a-3c5f-4e6a-8b9d-0a1c2e3f4b5d",
  "order_id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
  "order_number": "3C-104829",
  "customer": "Maya Chen",
  "amount": 98,
  "reason": "The sweater runs small.",
  "status": "declined",
  "created_at": "2026-11-23T10:05:00.000Z",
  "resolved_at": "2026-11-24T08:30:00.000Z"
}

List payouts

GET/api/v1/income/payouts

Payouts to your bank or PayPal, newest period first, including the pending one being built now.

Scope
income:read
MCP tool
income_payouts_list
Changes data
No

Parameters

NameTypeDescription
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

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

Response

200 OK
{
  "data": [
    {
      "id": "2a4c6e8f-1b3d-4f5a-9c7e-0d2f4a6c8e1b",
      "amount": 1240.5,
      "method": "bank",
      "status": "paid",
      "period_start": "2026-11-01",
      "period_end": "2026-11-14",
      "paid_at": "2026-11-16T12:00:00.000Z"
    }
  ],
  "next_cursor": null
}

List monthly statements

GET/api/v1/income/statements

Order count, gross, fees, refunds, and net for each of the last 12 calendar months, current month first. Every month is present, even with no sales.

Scope
income:read
MCP tool
income_statements
Changes data
No

Parameters

No parameters.

Request

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

Response

200 OK
{
  "data": [
    {
      "month": "2026-11",
      "orders": 41,
      "gross": 4820,
      "fees": 231.5,
      "refunds": 190,
      "net": 4398.5
    }
  ]
}

Get a monthly statement

GET/api/v1/income/statements/{month}

Every order your shop took in 1 calendar month, oldest first, with its items, subtotal, fee, total, and status. The dashboard's statement CSV holds the same rows.

Scope
income:read
MCP tool
income_statement
Changes data
No

Parameters

NameTypeDescription
monthpath · requiredstringThe month, as `YYYY-MM`

Request

curl "https://3commerce.com/api/v1/income/statements/Example month" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "month": "2026-11",
  "orders": [
    {
      "number": "3C-104829",
      "created_at": "2026-11-21T15:42:10.000Z",
      "customer": "Maya Chen",
      "items": "1 x Merino crew sweater (Oat / M); 1 x Ribbed beanie",
      "subtotal": 148,
      "fee": 7.4,
      "total": 148,
      "status": "paid"
    }
  ]
}

List commissions

GET/api/v1/income/commissions

Sales your storefront made of other shops’ products through `checkout.create` with your key, newest first. `paid` turns true once the commission is transferred, after the selling shop is paid for the order.

Scope
income:read
MCP tool
income_commissions
Changes data
No

Parameters

NameTypeDescription
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

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

Response

200 OK
{
  "data": [
    {
      "order_id": "4f1c2a9e-8d3b-4c55-9a51-0f6f0e2b7c11",
      "order_number": "3C-104829",
      "shop_slug": "northline-studio",
      "shop_name": "Northline Studio",
      "items_count": 1,
      "subtotal": 128,
      "commission": 12.8,
      "currency": "USD",
      "status": "paid",
      "paid": false,
      "created_at": "2026-11-21T15:42:10.000Z"
    }
  ],
  "next_cursor": null
}