API reference
Income
Get an earnings summary
/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
- MCP tool
- income_summary
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
daysquery · optional | integer | Window in days, 1-365 |
Request
curl "https://3commerce.com/api/v1/income/summary" \
-H "Authorization: Bearer 3c_live_…"Response
{
"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
/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
- MCP tool
- income_refunds_list
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
statusquery · optional | enum | Only refunds in this status; every status 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/income/refunds" \
-H "Authorization: Bearer 3c_live_…"Response
{
"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
/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
- MCP tool
- income_refunds_approve
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (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
{
"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
/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
- MCP tool
- income_refunds_decline
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (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
{
"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
/api/v1/income/payouts
Payouts to your bank or PayPal, newest period first, including the pending one being built now.
- Scope
- MCP tool
- income_payouts_list
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
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/income/payouts" \
-H "Authorization: Bearer 3c_live_…"Response
{
"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
/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
- 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
{
"data": [
{
"month": "2026-11",
"orders": 41,
"gross": 4820,
"fees": 231.5,
"refunds": 190,
"net": 4398.5
}
]
}Get a monthly statement
/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
- MCP tool
- income_statement
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
monthpath · required | string | The month, as `YYYY-MM` |
Request
curl "https://3commerce.com/api/v1/income/statements/Example month" \
-H "Authorization: Bearer 3c_live_…"Response
{
"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
/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
- MCP tool
- income_commissions
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
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/income/commissions" \
-H "Authorization: Bearer 3c_live_…"Response
{
"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
}