Financial Reports - CDON Only

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

MethodPathPermissionDescription
GET/api/v1/payment-reportsreport.finance.listList payment files, newest first
GET/api/v1/payment-reports/yearsreport.finance.listList the years that have payment files, with a count for each
GET/api/v1/payment-reports/payment-filereport.finance.getDownload one or more payment files as a single JSON, Excel or XML file
GET/api/v1/payment-reports/settlement-notesreport.finance.listList settlement notes (payouts), newest first
GET/api/v1/payment-reports/settlement-notes/yearsreport.finance.listList the years that have payouts, with a count for each
GET/api/v1/payment-reports/settlement-notes/downloadreport.finance.getDownload one or more settlement notes as a single PDF
POST/api/v1/payment-reports/exportsreport.finance.getStart an export of any size and return its status
GET/api/v1/payment-reports/exports/{export_id}report.finance.getGet the status and progress of an export
GET/api/v1/payment-reports/exports/{export_id}/downloadreport.finance.getDownload 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_id is the payment file ID, the same value as PaymentFileID inside the file. note_id is 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 parameterTypeRequiredDescription
fromdate (YYYY-MM-DD)NoEarliest creation date to include (inclusive)
todate (YYYY-MM-DD)NoLatest creation date to include (inclusive)
limitintegerNoNumber of items to return. Default 365, maximum 500
offsetintegerNoNumber 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=0

Each 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"
}
FieldDescription
report_idPayment file ID
generated_atWhen CDON generated the file. This is the date shown in Merchant Center.
payment_dateThe date the file was paid out. null until the file is included in a payout.
currenciesCurrencies in the file
total_by_currencyTotal 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 parameterTypeRequiredDescription
report_idscomma-separated integersYesUp to 200 payment file IDs. The files are merged into one file.
formatstringNojson (default), excel or xml

Example request:

GET /api/v1/payment-reports/payment-file?report_ids=1244000,1244018&format=excel

The file name is given in the Content-Disposition response header.

The file has the same three sections as the Merchant Center download:

  • PaymentFiles: PaymentFileID, CreatedDate
  • Rows: 22 columns, from PaymentFileRowID and OrderID to InvoicedAmount, Commission, VATAmount and CommissionWithServiceFee
  • ServiceFees: 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-31

Each 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"
}
FieldDescription
note_idSettlement note ID
payout_dateThe date of the payout
period_start, period_endThe payment period the payout covers
currenciesCurrencies in the payout
report_idsThe payment files included in this payout
total_by_currencyTotal 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 parameterTypeRequiredDescription
note_idscomma-separated integersOne of the twoUp to 200 settlement note IDs
report_idscomma-separated integersOne of the twoUp 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,8382

The 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.

  1. Start the export. POST /api/v1/payment-reports/exports

    For payment files:

    {"report_ids": [1244000, 1244018], "format": "excel"}

    For settlement notes:

    {"note_ids": [8374], "format": "pdf"}

    format is json, excel or xml for payment files, and pdf for settlement notes. You can include up to 200 IDs.

  2. Check the status. Call GET /api/v1/payment-reports/exports/{export_id} every few seconds until download_ready is true or status is failed.

  3. Download the file. GET /api/v1/payment-reports/exports/{export_id}/download

    The file is streamed. Its name is given in the Content-Disposition response 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
}
FieldDescription
export_idExport ID, used in the status and download paths
statuspending, running, done or failed
countsNumber of payment files, rows and fees in the export
progressRows processed so far. null for PDF exports.
download_readytrue when the file can be downloaded
expires_atWhen the finished file stops being available, 24 hours after the export was started
error_codeSet when status is failed: reports_not_found, retries_exhausted or failed
errorA 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.

StatusCauseWhat to do
202A direct download is too large for a single requestFollow the export in the response body. See Large downloads.
400IDs 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 recognizedCorrect the request
401Credentials are missing or invalidCheck the Authorization header
403Your credentials lack the report.finance.list or report.finance.get permissionContact CDON Merchant Support
404An 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 unknownCheck the IDs against the list endpoints
409The export is not finished yetKeep checking the export status
410The export has expiredStart a new export
422A query value is out of range or malformed, for example limit above 500 or an invalid dateCorrect the request
503Too 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 prepareWait the number of seconds in the Retry-After header, then send the same request again

Limits

LimitValue
History availableLast 84 months
IDs per download or export200
Items per list page500 (default 365)
Direct payment file download20,000 rows and fees; larger selections return 202
Direct settlement note download10 notes not downloaded before; more return 202
Pending or running exports per merchant5
Export availability24 hours after the export was started