GeneralLedgers

Retrieve General Ledgers from the Basecone office where you're user has rights to.

GET generalLedgers?companyid=:companyId&externalId=:id

Request properties

Property Type Description Optional
externalId String External General Ledger unique Identifier. Yes
companyId Guid Company unique Identifier. No

GeneralLedgers collection properties

Property Type Description
id Guid Unique identifier of GeneralLedgers
code string Code of GeneralLedgers
name string Name of GeneralLedgers
externalId string External identifier from accounting system
labels list Translation of general ledger if supported
metaData list extra information about the general ledger

For details on GeneralLedgers properties see general ledger details.

For details on collections see collection details.

Example response:

{
  "generalLedgers": [
    {
      "id": "68d300bc-ef23-4d0e-9029-a6ad3af4301b",
      "code": "300000",
      "name": "Name",
      "externalId": "c5febd7f-1d65-47c9-b46f-00b780f9241a",
      "labels": [
        {
          "culture": "de-DE",
          "label": "Name"
        },
        {
          "culture": "en-GB",
          "label": "Name"
        },
        {
          "culture": "fr-FR",
          "label": "Nom"
        },
        {
          "culture": "nl-BE",
          "label": "Naam"
        }
      ],
      "metaData": {
        "vatPercentage": "0,00",
        "nonVatPercentage": "0,00"
      },
      "links": [
        {
          "rel": "self",
          "href": "https://api.basecone.com/v1/generalledgers/68d300bc-ef23-4d0e-9029-a6ad3af4301b"
        }
      ],
      "company": {
        "companyId": "34d743b1-bbf3-46bb-b1e1-e28c899e7869",
        "companyCode": "DEMO",
        "_links": [
          {
            "rel": "self",
            "href": "https://api.basecone.com/v1/companies/34d743b1-bbf3-46bb-b1e1-e28c899e7869"
          }
        ]
      }
    },
    {
      "id": "4c261923-db2e-4bc8-bb04-e9f966068bdd",
      "code": "498303",
      "name": "Big Name",
      "externalId": "c76942c2-eea3-4c07-8a7f-00ecbbb79d29",
      "labels": [
        {
          "culture": "de-DE",
          "label": "Großer Name"
        },
        {
          "culture": "en-GB",
          "label": "Big Name"
        },
        {
          "culture": "fr-FR",
          "label": "Grand nom"
        },
        {
          "culture": "nl-BE",
          "label": "Grote naam"
        }
      ],
      "metaData": {
        "vatPercentage": "0,00",
        "nonVatPercentage": "0,00"
      },
      "links": [
        {
          "rel": "self",
          "href": "https://api.basecone.com/v1/generalledgers/4c261923-db2e-4bc8-bb04-e9f966068bdd"
        }
      ],
      "company": {
        "companyId": "34d743b1-bbf3-46bb-b1e1-e28c899e7869",
        "companyCode": "DEMO",
        "_links": [
          {
            "rel": "self",
            "href": "https://api.basecone.com/v1/companies/34d743b1-bbf3-46bb-b1e1-e28c899e7869"
          }
        ]
      }
    }
  ],
  "_links": [
    {
      "rel": "self",
      "href": "http://localhost:54434/generalLedgers?CompanyId=34d743b1-bbf3-46bb-b1e1-e28c899e7869&limit=2&offset=0"
    }
  ],
  "_metadata": {
    "total": 505,
    "count": 2
  }
}