GET v1/finances/{companyCode}?apiToken={apiToken}

Returns currency and ledger codes for a specific company

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyCode

The company code you are retreiving information for

string

Required

apiToken

Your API Token

string

None.

Body Parameters

None.

Response Information

Resource Description

FinanceResponse
NameDescriptionTypeAdditional information
CurrencyCodes

Collection of string

None.

LedgerCodes

Collection of FinanceResponseLedgerCode

None.

Response Formats

application/json, text/json

Sample:
{
  "currencyCodes": [
    "sample string 1",
    "sample string 2"
  ],
  "ledgerCodes": [
    {
      "code": "sample string 1",
      "subCodes": [
        {
          "code": "sample string 1",
          "description": "sample string 2"
        },
        {
          "code": "sample string 1",
          "description": "sample string 2"
        }
      ]
    },
    {
      "code": "sample string 1",
      "subCodes": [
        {
          "code": "sample string 1",
          "description": "sample string 2"
        },
        {
          "code": "sample string 1",
          "description": "sample string 2"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<Finances xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CurrencyCodes>
    <CurrencyCode>sample string 1</CurrencyCode>
    <CurrencyCode>sample string 2</CurrencyCode>
  </CurrencyCodes>
  <LedgerCodes>
    <LedgerCode>
      <Code>sample string 1</Code>
      <SubCodes>
        <LedgerSubCode>
          <Code>sample string 1</Code>
          <Description>sample string 2</Description>
        </LedgerSubCode>
        <LedgerSubCode>
          <Code>sample string 1</Code>
          <Description>sample string 2</Description>
        </LedgerSubCode>
      </SubCodes>
    </LedgerCode>
    <LedgerCode>
      <Code>sample string 1</Code>
      <SubCodes>
        <LedgerSubCode>
          <Code>sample string 1</Code>
          <Description>sample string 2</Description>
        </LedgerSubCode>
        <LedgerSubCode>
          <Code>sample string 1</Code>
          <Description>sample string 2</Description>
        </LedgerSubCode>
      </SubCodes>
    </LedgerCode>
  </LedgerCodes>
</Finances>