Get total values for general ledger

GET /api-v1/ledger/total

Headers

  • TARGET-ORGANIZATION-ID integer(int32)

    ID of organization, for which the operation must be performed

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

Responses

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • account object
      Hide account attributes Show account attributes object
      • de string
      • en string
      • fr string
      • it string
    • accountId integer
    • companyCredit number
    • companyDebit number
    • companyTotal number
    • description string
    • entryDate string(date-time)
    • entryId integer
    • entryType string

      Values are OPENING, MANUAL, PURCHASE_INVOICE, SALES_INVOICE, SALARY_SLIP, STOCK, CLOSING, SYSTEM, SYSTEM_FX, SYSTEM_PFUV, or FIXED_ASSET.

    • foreignCredit number
    • foreignCurrencyCode string
    • foreignDebit number
    • foreignTotal number
    • hasWarnings boolean
    • id integer
    • organizationId integer
    • tenantId integer
    • warnings string
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/ledger/total
curl \
 --request GET 'https://wyzio.app/api-v1/ledger/total' \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --header "WEAL-TOKEN: string"
Response examples (200)
{
  "account": {
    "de": "string",
    "en": "string",
    "fr": "string",
    "it": "string"
  },
  "accountId": 42,
  "companyCredit": 42.0,
  "companyDebit": 42.0,
  "companyTotal": 42.0,
  "description": "string",
  "entryDate": "2025-05-04T09:42:00Z",
  "entryId": 42,
  "entryType": "OPENING",
  "foreignCredit": 42.0,
  "foreignCurrencyCode": "string",
  "foreignDebit": 42.0,
  "foreignTotal": 42.0,
  "hasWarnings": true,
  "id": 42,
  "organizationId": 42,
  "tenantId": 42,
  "warnings": "string"
}