TA Finance
  1. Statistics
TA Finance
  • Welcome!
  • Auth check
    • Check
      GET
  • Transactions
    • List
      GET
    • Create
      POST
    • Delete
      DELETE
  • Statements
    • Info
  • Counterparty
    • Info
  • Services
    • List
      GET
    • Create
      POST
  • Accounts
    • List
      GET
    • Create
      POST
  • Organizations
    • List
      GET
    • Create
      POST
  • Statistics
    • P&L
      POST
  1. Statistics

P&L

Developing
POST
/api/v1/stats/pnl
Generates a Profit and Loss report by aggregating transaction data over a defined period. This endpoint offers key insights into financial performance and supports data-driven decision-making.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/stats/pnl' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "dateRange": ["2025-01-01", "2025-04-05"],
    "organizationId": 26
}'
Response Response Example
{
    "infoByCurrency": [
        {
            "currency": "string",
            "revenue": 0,
            "spending": 0,
            "result": 0
        }
    ],
    "revenueServices": {
        "19": {
            "USD": {
                "sum": 0,
                "list": [
                    0
                ]
            },
            "EUR": {
                "sum": 0,
                "list": [
                    0
                ]
            }
        }
    },
    "spendingServices": {
        "21": {
            "USD": {
                "sum": 0,
                "list": [
                    0
                ]
            }
        }
    }
}
Modified at 2025-04-06 10:35:24
Previous
Create
Built with