Get general ledger

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://restapi.wyzio.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Wyzio MCP server": {
    "url": "https://restapi.wyzio.com/mcp"
  }
}

Close
GET /api-v1/ledger

Returns a list of general ledger entries based on the specified filters.

Headers

  • WEAL-TOKEN Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID

    ID of organization, for which the operation must be performed

Query parameters

  • pageNumber integer

    Page Number

    Default value is 1.

  • sortingField string

    Field to sort by

  • direction string

    Sorting direction

    Values are ASC or DESC. Default value is ASC.

  • sizePerPage integer

    Size per page

    Default value is 60.

  • entryId string

    Journal entry ID filter.

    Multi-value supported. Example: value1;value2

  • entryDate string(date)

    Entry date filter.

    Supports comparison operators:

    • Range ( .. )
    • Greater than ( > )
    • Greater than or equal ( >= )
    • Less than ( < )
    • Less than or equal ( <= )
    • Not equal ( <> )

    Examples:

    • 01/01/2026..31/12/2026
    • >=01/01/2026
    • <=01/01/2026
    • <>01/01/2026

    Use <>01/01/2026 to return only records where the selected date is not equal to the filter date.

    Also used to derive the underlying start/end date range in advanced ledger mode.

  • entryType string

    Journal entry type filter

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

  • accountId string

    Chart of accounts ID filter.

    Multi-value supported. Example: value1;value2

  • account string

    Account name filter

  • description string

    Entry description filter

  • hasWarnings boolean

    Whether the entry has warnings

  • foreignCurrencyCode string

    Foreign currency code filter

  • foreignDebit string

    Foreign debit filterSupports comparison operators:

    • Range ( .. )
    • Greater than ( > )
    • Greater than or equal ( >= )
    • Less than ( < )
    • Less than or equal ( <= )
    • Not equal ( <> )

    Examples:

    • <=100.00
    • >=100.00
    • <>100.00
    • 100.00..200.00

    Use <>0 to return only records where the selected amount is not equal to zero.

  • foreignCredit string

    Foreign credit filterSupports comparison operators:

    • Range ( .. )
    • Greater than ( > )
    • Greater than or equal ( >= )
    • Less than ( < )
    • Less than or equal ( <= )
    • Not equal ( <> )

    Examples:

    • <=100.00
    • >=100.00
    • <>100.00
    • 100.00..200.00

    Use <>0 to return only records where the selected amount is not equal to zero.

  • foreignTotal string

    Foreign total (debit + credit) filterSupports comparison operators:

    • Range ( .. )
    • Greater than ( > )
    • Greater than or equal ( >= )
    • Less than ( < )
    • Less than or equal ( <= )
    • Not equal ( <> )

    Examples:

    • <=100.00
    • >=100.00
    • <>100.00
    • 100.00..200.00

    Use <>0 to return only records where the selected amount is not equal to zero.

  • companyDebit string

    Company currency debit filterSupports comparison operators:

    • Range ( .. )
    • Greater than ( > )
    • Greater than or equal ( >= )
    • Less than ( < )
    • Less than or equal ( <= )
    • Not equal ( <> )

    Examples:

    • <=100.00
    • >=100.00
    • <>100.00
    • 100.00..200.00

    Use <>0 to return only records where the selected amount is not equal to zero.

  • companyCredit string

    Company currency credit filterSupports comparison operators:

    • Range ( .. )
    • Greater than ( > )
    • Greater than or equal ( >= )
    • Less than ( < )
    • Less than or equal ( <= )
    • Not equal ( <> )

    Examples:

    • <=100.00
    • >=100.00
    • <>100.00
    • 100.00..200.00

    Use <>0 to return only records where the selected amount is not equal to zero.

  • companyTotal string

    Company currency total (debit + credit) filterSupports comparison operators:

    • Range ( .. )
    • Greater than ( > )
    • Greater than or equal ( >= )
    • Less than ( < )
    • Less than or equal ( <= )
    • Not equal ( <> )

    Examples:

    • <=100.00
    • >=100.00
    • <>100.00
    • 100.00..200.00

    Use <>0 to return only records where the selected amount is not equal to zero.

  • contactId string

    Contact ID filter. Required to enable advanced ledger mode.

    Multi-value supported. Example: value1;value2

  • departmentName string

    Department name filter. Advanced ledger only

  • contactName string

    Contact name filter. Advanced ledger only

  • articleName string

    Article name filter. Advanced ledger only

  • orderName string

    Order name filter. Advanced ledger only

  • vatCodeNames string

    VAT code name filter. Advanced ledger only

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id integer(int64)
    • organizationId integer(int64)
    • entryId integer(int64)
    • entryDate string(date-time)
    • sortOrder integer(int32)
    • entryType string

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

    • accountId integer(int64)
    • foreignCurrencyCode string
    • foreignDebit number
    • foreignCredit number
    • foreignTotal number
    • companyDebit number
    • companyCredit number
    • companyTotal number
    • account object
      Hide account attributes Show account attributes object
      • en string
      • fr string
      • de string
      • it string
    • description string
    • warnings string
    • hasWarnings boolean
    • tenantId integer(int64)
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

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