Merchant API: Payment reports
The payment reports endpoints let CDON merchants retrieve their payment files and settlement notes through the Merchant API. They return the same data, in the same formats, as the Reports page in Merchant Center.
Base URL: https://merchants-api.cdon.com/api/v1/payment-reports
Overview
| Method | Path | Permission | Description |
|---|---|---|---|
| GET | /api/v1/payment-reports | report.finance.list | List payment files, newest first |
| GET | /api/v1/payment-reports/years | report.finance.list | List the years that have payment files, with a count for each |
| GET | /api/v1/payment-reports/payment-file | report.finance.get | Download one or more payment files as a single JSON, Excel or XML file |
| GET | /api/v1/payment-reports/settlement-notes | report.finance.list | List settlement notes (payouts), newest first |
| GET | /api/v1/payment-reports/settlement-notes/years | report.finance.list | List the years that have payouts, with a count for each |
| GET | /api/v1/payment-reports/settlement-notes/download | report.finance.get | Download one or more settlement notes as a single PDF |
| POST | /api/v1/payment-reports/exports | report.finance.get | Start an export of any size and return its status |
| GET | /api/v1/payment-reports/exports/{export_id} | report.finance.get | Get the status and progress of an export |
| GET | /api/v1/payment-reports/exports/{export_id}/download | report.finance.get | Download a finished export |
Quick start
List your payment files for October 2026:
curl "https://merchants-api.cdon.com/api/v1/payment-reports?from=2026-10-01&to=2026-10-31" \
-H "Authorization: Basic <your API credentials>"Download two of them as one Excel file:
curl -OJ "https://merchants-api.cdon.com/api/v1/payment-reports/payment-file?report_ids=1244000,1244018&format=excel" \
-H "Authorization: Basic <your API credentials>"Authentication and access
Authenticate with the same Authorization header you use for the rest of the Merchant API: HTTP Basic with your API credentials.
- History. Data is available for a rolling window of the last 84 months. Older payment files and settlement notes are not listed, and requesting one returns
404. - IDs.
report_idis the payment file ID, the same value asPaymentFileIDinside the file.note_idis the settlement note ID shown in Merchant Center. - Update schedule. CDON generates payment files every weekday at about 09:30 Stockholm time. New files appear in the list about an hour later.
Payment files
List payment files
GET /api/v1/payment-reports
| Query parameter | Type | Required | Description |
|---|---|---|---|
from | date (YYYY-MM-DD) | No | Earliest creation date to include (inclusive) |
to | date (YYYY-MM-DD) | No | Latest creation date to include (inclusive) |
limit | integer | No | Number of items to return. Default 365, maximum 500 |
offset | integer | No | Number of items to skip, for paging. Default 0 |
The X-Total-Count response header contains the total number of payment files that match from and to.
Example request:
GET /api/v1/payment-reports?from=2026-10-01&to=2026-10-31&limit=100&offset=0Each item in the response is one payment file:
{
"report_id": 1244000,
"generated_at": "2026-10-13T09:31:14",
"payment_date": "2026-10-13",
"currencies": ["NOK", "SEK"],
"payment_file_count": 2,
"total_by_currency": {"SEK": "12500.00", "NOK": "3400.50"},
"created_at": "2026-10-13T10:45:02Z",
"updated_at": "2026-10-13T10:45:02Z"
}| Field | Description |
|---|---|
report_id | Payment file ID |
generated_at | When CDON generated the file. This is the date shown in Merchant Center. |
payment_date | The date the file was paid out. null until the file is included in a payout. |
currencies | Currencies in the file |
total_by_currency | Total amount per currency, as a string with two decimals |
Each item also includes your merchant_id.
List years with payment files
GET /api/v1/payment-reports/years
Returns the years that have payment files, newest first, with the number of files in each:
[{"year": 2026, "count": 141}, {"year": 2025, "count": 248}]Years with no payment files are not included. To list the files for one year, call the list endpoint with from=YYYY-01-01&to=YYYY-12-31.
Download payment files
GET /api/v1/payment-reports/payment-file
| Query parameter | Type | Required | Description |
|---|---|---|---|
report_ids | comma-separated integers | Yes | Up to 200 payment file IDs. The files are merged into one file. |
format | string | No | json (default), excel or xml |
Example request:
GET /api/v1/payment-reports/payment-file?report_ids=1244000,1244018&format=excelThe file name is given in the Content-Disposition response header.
The file has the same three sections as the Merchant Center download:
PaymentFiles:PaymentFileID,CreatedDateRows: 22 columns, fromPaymentFileRowIDandOrderIDtoInvoicedAmount,Commission,VATAmountandCommissionWithServiceFeeServiceFees:PaymentFileID,OrderID,FeeAmount,Currency
All amounts have two decimals.
If the selection contains more than 20,000 rows and fees in total, the endpoint returns 202 Accepted with an export instead of the file. See Large downloads.
Settlement notes
A settlement note describes one payout, not one payment file. A single payout can cover several payment files, and a payment file with several currencies can be paid out in more than one payout. Settlement notes therefore have their own IDs, list and years.
List settlement notes
GET /api/v1/payment-reports/settlement-notes
Takes the same from, to, limit and offset parameters as List payment files and returns the same X-Total-Count header, but from and to filter on the payout date.
Example request:
GET /api/v1/payment-reports/settlement-notes?from=2026-10-01&to=2026-10-31Each item in the response is one payout:
{
"note_id": 8374,
"payout_date": "2026-10-13",
"period_start": "2026-10-12",
"period_end": "2026-10-12",
"currencies": ["NOK", "SEK"],
"report_ids": [1244000],
"total_by_currency": {"SEK": "12500.00", "NOK": "3400.50"},
"updated_at": "2026-10-13T10:45:02Z"
}| Field | Description |
|---|---|
note_id | Settlement note ID |
payout_date | The date of the payout |
period_start, period_end | The payment period the payout covers |
currencies | Currencies in the payout |
report_ids | The payment files included in this payout |
total_by_currency | Total amount per currency, as a string with two decimals |
List years with settlement notes
GET /api/v1/payment-reports/settlement-notes/years
Returns the same format as List years with payment files, counted by payout year.
Download settlement notes
GET /api/v1/payment-reports/settlement-notes/download
| Query parameter | Type | Required | Description |
|---|---|---|---|
note_ids | comma-separated integers | One of the two | Up to 200 settlement note IDs |
report_ids | comma-separated integers | One of the two | Up to 200 payment file IDs. Returns the settlement notes for the payouts that included these files. |
Send either note_ids or report_ids, not both.
Example request:
GET /api/v1/payment-reports/settlement-notes/download?note_ids=8374,8382The response is a single PDF with one page per currency for each payout. Each page shows:
- Your legal name and VAT numbers
- The payment period and payout date
- The payment file IDs
- A summary from invoiced amount to total payment
A payment file that has not yet been included in a payout has no settlement note. Requesting it with report_ids returns 404.
If the request includes more than 10 settlement notes that have not been downloaded before, the endpoint returns 202 Accepted with an export instead of the file. See Large downloads.
Large downloads
Use the export endpoints to download a selection of any size. A client that always uses exports never runs into the size limits of the direct download endpoints.
-
Start the export.
POST /api/v1/payment-reports/exportsFor payment files:
{"report_ids": [1244000, 1244018], "format": "excel"}For settlement notes:
{"note_ids": [8374], "format": "pdf"}formatisjson,excelorxmlfor payment files, andpdffor settlement notes. You can include up to 200 IDs. -
Check the status. Call
GET /api/v1/payment-reports/exports/{export_id}every few seconds untildownload_readyistrueorstatusisfailed. -
Download the file.
GET /api/v1/payment-reports/exports/{export_id}/downloadThe file is streamed. Its name is given in the
Content-Dispositionresponse header.
Starting an export and checking its status return the same response:
{
"export_id": "6f1c2a9e-1b7d-4c55-9a51-3f0e8d2b7c10",
"status": "running",
"counts": {"reports": 2, "rows": 45210, "fees": 40640},
"progress": {"rows_done": 18000, "rows_total": 45210},
"download_ready": false,
"expires_at": "2026-10-15T09:12:40Z",
"error": null,
"error_code": null
}| Field | Description |
|---|---|
export_id | Export ID, used in the status and download paths |
status | pending, running, done or failed |
counts | Number of payment files, rows and fees in the export |
progress | Rows processed so far. null for PDF exports. |
download_ready | true when the file can be downloaded |
expires_at | When the finished file stops being available, 24 hours after the export was started |
error_code | Set when status is failed: reports_not_found, retries_exhausted or failed |
error | A human-readable description of the error |
Small exports are processed during the start request. The response then already has status: done and download_ready: true, so you can skip step 2 and download the file right away.
You can have at most 5 exports pending or running at the same time.
Download flow
flowchart LR
lists["Lists and years"] --> direct["Direct download"]
direct --> status{"200 or 202?"}
status -->|200| file(["The file"])
lists -->|any size| start["Start an export"]
start -->|pending| poll["Poll the export"]
status -->|"202, too large"| poll
poll -->|ready| download["Download export"]
download --> file
A direct download returns the file, or 202 Accepted with an export if the selection is too large. An export that is small enough is already finished when the start request returns. In that case, skip polling and download the file.
Errors
Error responses are JSON with a detail field that describes the problem.
| Status | Cause | What to do |
|---|---|---|
202 | A direct download is too large for a single request | Follow the export in the response body. See Large downloads. |
400 | IDs are missing, are not numbers, or exceed 200; both or neither of note_ids and report_ids were sent; note_ids was sent with a format other than pdf; or format is not recognized | Correct the request |
401 | Credentials are missing or invalid | Check the Authorization header |
403 | Your credentials lack the report.finance.list or report.finance.get permission | Contact CDON Merchant Support |
404 | An ID does not belong to your account or is older than 84 months; a payment file in report_ids has not yet been included in a payout (settlement note download); or export_id is unknown | Check the IDs against the list endpoints |
409 | The export is not finished yet | Keep checking the export status |
410 | The export has expired | Start a new export |
422 | A query value is out of range or malformed, for example limit above 500 or an invalid date | Correct the request |
503 | Too many downloads are in progress, you already have 5 pending or running exports, the export queue is full, or a direct download took longer than 30 seconds to prepare | Wait the number of seconds in the Retry-After header, then send the same request again |
Limits
| Limit | Value |
|---|---|
| History available | Last 84 months |
| IDs per download or export | 200 |
| Items per list page | 500 (default 365) |
| Direct payment file download | 20,000 rows and fees; larger selections return 202 |
| Direct settlement note download | 10 notes not downloaded before; more return 202 |
| Pending or running exports per merchant | 5 |
| Export availability | 24 hours after the export was started |