Skip to main content

Get Accounting Report

Purpose: Retrieves a detailed financial report listing all completed Orders and their associated payment transactions for a specified client and time period.


Endpoint Details

  • HTTP Verb: GET
  • URL Segment: /v3/client/{clientId}/accountingreport
  • OpenAPI Spec: View in Swagger UI
  • Notes: This requires the application to have reached the Completed status, and the relevant transaction date (e.g., date of funding or payout) must fall within the inclusive from and to date range.

Path Parameters

Field NameDescriptionTypeAdditional Information
clientIdThe unique ID of the client to generate the report for.string ($uuid)Required.

Query Parameters

Field NameDescriptionTypeAdditional Information
fromThe start date/time (inclusive) of the period for the report.string ($date-time)Required. ISO 8601 format.
toThe end date/time (inclusive) of the period for the report.string ($date-time)Required. ISO 8601 format.

Request Body

No Request Body Required.


Response Body

The API returns a financial report object of type AccountingReportResponse upon successful retrieval (HTTP 200 OK).

AccountingReportResponse Schema

Field NameDescriptionTypeAdditional Information
totalAmountPaidOutThe sum of all amountPaidOut in the report period.number ($double)
totalAmountPaidThe sum of all amountPaid in the report period.number ($double)
totalDebitedFeeThe sum of all debitedFee in the report period.number ($double)
clientIdThe unique ID of the client the report belongs to.string ($uuid)
transactionsThe period's completed, and started contracts. (completed orders/applications).array of AccountingReportItemNullable. See AccountingReportItem Schema

AccountingReportItem Schema

Field NameDescriptionTypeAdditional Information
orderIdThe unique ID of the order related to the transaction.string ($uuid)
refNoThe client's own reference number for the order.stringNullable.
orderDateThe creation date of the order.string ($date-time)
orderInfoCustom merchant-specific data.ObjectNullable. See OrderInfo Schema
transactionThe payment and fee details associated with the started contract.ObjectSee AccountingReportPayment Schema

AccountingReportPayment Schema

Field NameDescriptionTypeAdditional Information
amountPaidThe amount paid by the customer.number ($double)
amountPaidOutThe amount paid out to the merchant.number ($double)
debitedFeeThe fee debited by the finance provider.number ($double)
currencyThe currency of the transaction.string
dateThe date the transaction occurred (e.g., capture date).string ($date-time)
paidOutDateThe date the funds were paid out to the merchant.string ($date-time)

Example Successful Response (200 OK)

{
"totalAmountPaidOut": 49000.0,
"totalAmountPaid": 50000.0,
"totalDebitedFee": 1000.0,
"clientId": "a1b1c1d1-e2f2-3g4h-5i6j-7k8l9m0n1o2p",
"transactions": [
{
"orderId": "b8a8b8b8-c1c1-d2d2-e3e3-f4f4f4f4f4f4",
"refNo": "AB-10001",
"orderDate": "2024-01-01T01:23:45.678Z",
"orderInfo": {
"salesPersonId": "51"
},
"transaction": {
"amountPaid": 50000,
"amountPaidOut": 49000,
"debitedFee": 1000,
"currency": "SEK",
"date": "2024-01-05T10:00:00.000Z",
"paidOutDate": "2024-01-06T00:00:00.000Z"
}
}
]
}

Error Responses

The following HTTP status codes are explicitly documented for this method:

Status CodeDescription
400 Bad RequestThe request was invalid (e.g., required query strings are missing or date formats are incorrect).
401 UnauthorizedAuthentication failure (e.g., missing or invalid API key/credentials).
404 Not FoundThe specified clientId does not exist.