Report
The Report row carries the same columns as the Reports CSV the dashboard exports, one row per order, over the API.
A Report row is one line of the Reports export: the order, what was bought, how much was charged,
taxed, discounted, refunded and kept, who paid and how, and where the order stands. The dashboard
builds its CSV from these rows; GET /v0/reports/orders returns the same rows on an API key, so a
reconciliation you run from the CSV today can run from your own system instead.
Rows are read-only. For the full order record, use Orders; for the individual charges and refunds, Payments.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v0/reports/orders | List report rows for a date range, paged |
Authenticate with your public key in the x-fngs-public-key header — see
Authentication. The rows are always the ones of the workspace the
key belongs to.
Filters
| Parameter | Required | Meaning |
|---|---|---|
startDate | yes | First day of the range, as a Unix timestamp in seconds or milliseconds, read in timezone |
endDate | yes | Last day of the range, same format; not before startDate |
timezone | no | IANA zone the days are read in, e.g. Europe/Warsaw. Defaults to the workspace's time zone, then UTC. An unknown zone is a 400 |
statuses | no | One or more order statuses; repeat the parameter: statuses=PAID&statuses=REFUNDED |
page, limit | no | Page pagination, limit up to 100 — see Pagination |
The range is widened to whole days in the time zone and starts no earlier than the day the workspace was created; a range that ends before then returns no rows. To match a CSV exported from the dashboard, pass the workspace's own time zone (Settings → Business); the dashboard reads the same days.
An unknown time zone or status, an endDate before startDate, a date past the year 9999 or a page
beyond any possible offset answers 400.
Orders keep arriving and changing status, and a page is an offset into the current result. Walk a
range that has already closed, and start over if count changes between pages.
The example reads January 2025 in Warsaw: 1735686000000 is 1 January 00:00 there and
1738364399000 is 31 January 23:59:59.
curl "https://api.fungies.io/v0/reports/orders?startDate=1735686000000&endDate=1738364399000&timezone=Europe/Warsaw&statuses=PAID&limit=100" \
-H "x-fngs-public-key: pub_your_public_key"The Report row
Amounts are integers in the smallest unit of currency (1999 is $19.99; 1999 in JPY is ¥1999).
Divide by 10^currencyDecimals to display them. An order that has no amount yet — a checkout that
never reached payment — or no currency carries null amounts, never 0; the CSV shows those cells
empty. amountRefunded is the exception: it is 0 whenever the order has a currency.
| Field | CSV column | Type | Meaning |
|---|---|---|---|
id | ID | string | UUID of the order |
number | Number | string | Order number, without the dashboard's leading # |
createdAt | Created At (UTC) | integer | Unix timestamp in milliseconds |
items | Items | string | Purchased items with quantities, joined with ; |
itemsCount | Items Count | integer | null | Number of items |
offerIds | Offer IDs | string | UUIDs of the purchased offers, joined with ; |
subtotal | Subtotal | integer | null | Before tax and before any discount |
tax | Tax | integer | null | Tax collected |
discount | Discount | integer | null | Discount taken off the subtotal |
discountCode | Discount Code | string | null | Code applied at checkout |
total | Total | integer | null | What the buyer paid, tax included |
amountRefunded | Amount Refunded | integer | null | Refunded so far; 0 when nothing was, null only without a currency |
fee | Fungies Fee | integer | null | Fungies fee |
storeIncome | Store Income | integer | null | Before tax, minus the fee |
currency | Currency | string | null | ISO 4217 code |
currencyDecimals | — | integer | null | Decimal places of currency; not a CSV column |
country | Country | string | null | Buyer's ISO 3166-1 alpha-2 country |
state | State | string | null | Buyer's state or region used for tax |
customerEmail | Customer Email | string | null | Buyer's email as entered; null without a user account and once the buyer's data has been erased (the CSV cell is empty then too) |
userId | User ID | string | null | UUID of the buyer's user account |
paymentId | Payment ID | string | null | Payment identifier at the provider |
subscriptionId | Subscription ID | string | null | Subscription the order belongs to |
processor | Processor | string | null | Payment provider, e.g. stripe, paypal |
paymentMethod | Payment Method | string | How the buyer paid, as the dashboard shows it; Unknown while no payment with its method is recorded |
source | Source | string | null | Where the order was placed: store, overlay, embed, dashboard, api or system |
type | Type | string | one_time, subscription_initial, subscription_update, subscription_interval, subscription_extra or claim_free |
status | Status | string | PENDING, PAID, FAILED, UNPAID, CANCELLED, REFUNDED, PARTIALLY_REFUNDED or EXPIRED |
disputed | Disputed | string | Empty when there is no dispute, the dispute's state such as Needs response or Won, Unknown while the order has no payment recorded |
object is always "report_row". The CSV's optional Keys column is not part of the API.
Example response
{
"status": "success",
"data": {
"rows": [
{
"object": "report_row",
"id": "550e8400-e29b-41d4-a716-446655440000",
"number": "L8VQK3N2M7KpQ9nR",
"createdAt": 1737024000000,
"items": "Starter pack (2x); Add-on (1x)",
"itemsCount": 3,
"offerIds": "7c9e6679-7425-40de-944b-e07fc1f90ae7; 9b2d1f4e-0c3a-4e5b-8f6d-2a1b3c4d5e6f",
"subtotal": 2300,
"tax": 100,
"discount": 300,
"discountCode": "SPRING10",
"total": 2100,
"amountRefunded": 0,
"fee": 50,
"storeIncome": 1950,
"currency": "USD",
"currencyDecimals": 2,
"country": "US",
"state": "CA",
"customerEmail": "customer@example.com",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"paymentId": "pi_3Qabc123def456",
"subscriptionId": null,
"processor": "stripe",
"paymentMethod": "Visa •••• 4242",
"source": "store",
"type": "one_time",
"status": "PAID",
"disputed": ""
}
],
"count": 143,
"pages": 2
}
}Related resources
Last updated