v1

latestOpenAPI 3.0.02026-08-04880393.1 KB

Accounting.PnLReport

post/online/RivhitOnlineAPI.svc/Accounting.PnLReport

Request body

api_tokenstring uuid required

Rivhit Merchant API Identifier.

Default: No

from_monthinteger required

Start Month of the PnLReport.

Format: MM Default: No

to_monthinteger required

End Month of the PnLReport.

Format: MM Default: No

yearinteger required

Year of the PnLReport.

Format: YYYY Default: No

Example request

{
  "api_token": "DECD03E5-E35C-41E8-84F7-FBA2FB483928",
  "from_month": 7,
  "to_month": 8,
  "year": 2025
}

Response

Success - Profit and Loss Report Returned

error_codeinteger

The Response Error/Status Number (0 = Success).

client_messagestring

The Client Error Message.

debug_messagestring

The Response Error Message.

Example response

{
  "error_code": 0,
  "client_message": "String content",
  "debug_message": "String content",
  "data": {
    "pnl_report": [
      {
        "account_id": 4,
        "account_name": "הכנסות/מכירות/שכ\"ט",
        "balance": -25007963.46,
        "pnl_code": 70,
        "pnl_name": "מכירות סחורה"
      },
      {
        "account_id": 5,
        "account_name": "הכנסות משירותים",
        "balance": -50,
        "pnl_code": 71,
        "pnl_name": "הכנסות משרותים"
      }
    ]
  }
}