/commission-settlements
List commission settlements
Returns sales agents' commission settlements, newest first, each with its lines: one per invoice and sales order, credit notes negative. Amounts are in the tenant's base currency. The response is paged:
items
,
totalCount
,
page
and
pageSize
.
Frågeparametrar
| Fält | Typ | Beskrivning |
|---|---|---|
agentCustomerNumber
|
string | Returns only the settlements of the sales agent with this customer number. |
status
|
enum |
Filters on the settlement's status.
Draft
Approved
Paid
Cancelled
|
page
|
integer | Page to return, 1-based. Default 1. |
pageSize
|
integer | Number of records per page. Default 50, max 200. |
Svar
PagedResult_PublicCommissionSettlementResponse
Paginerat svar: raderna nedan ligger i items[], omgivna av totalCount, page, pageSize, totalPages, hasPreviousPage och hasNextPage. Paginerad
| Fält | Typ | Beskrivning |
|---|---|---|
agentCustomerNumber
|
string · nullable | Customer number of the sales agent. |
agentName
|
string · nullable | |
approvedAt
|
string(date-time) · nullable | |
currencyCode
|
string · nullable | ISO 4217 base currency of every amount. |
lines
|
CommissionSettlementLine[] · nullable | |
paidDate
|
string(date) · nullable | |
settlementNumber
|
string · nullable |
Unique settlement number, e.g.
PROV-2026-00001
.
|
status
|
enum |
Lifecycle of a commission settlement.
Draft
Approved
Paid
Cancelled
|
toDate
|
string(date) | Paid invoices and credit notes up to and including this date are included. |
totalBasisAmount
|
decimal | |
totalCommissionAmount
|
decimal |
ProblemDetails
Unknown status.
| Fält | Typ |
|---|---|
detail
|
string · nullable |
instance
|
string · nullable |
status
|
integer · nullable |
title
|
string · nullable |
type
|
string · nullable |
Standardfel:
401
403
Felhantering
Exempel
curl "https://api.fluit.cloud/preview/commission-settlements" \
-H "X-Api-Key: fluit_live_sk_..."
{
"aggregates": [
{
"currencyCode": "SEK",
"key": "string",
"mixedCurrencies": true,
"value": "299.00"
}
],
"hasNextPage": true,
"hasPreviousPage": true,
"items": [
{
"agentCustomerNumber": "ABC-001",
"agentName": "Acme AB",
"approvedAt": "2026-06-11T09:24:13.418",
"currencyCode": "SEK",
"lines": [
{
"basisAmount": "299.00",
"commissionAmount": "299.00",
"commissionRate": "299.00",
"commissionType": "Percent",
"customerName": "Acme AB",
"invoiceDate": "2026-06-11",
"invoiceNumber": "INV-2026-0912",
"isCreditNote": true,
"orderNumber": "SO-2026-1041"
}
],
"paidDate": "2026-06-11",
"settlementNumber": "ABC-001",
"status": "Draft",
"toDate": "2026-06-11",
"totalBasisAmount": "299.00",
"totalCommissionAmount": "299.00"
}
],
"page": 1,
"pageSize": 50,
"totalCount": 137,
"totalPages": 3
}
Bas-URL https://api.fluit.cloud/preview. Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.