Socotra
API Reference

Accounting API

ActionEndpoint
Fetch an Accounting TransactionGET/billing/{tenantLocator}/accounting/faTransactions/{locator}
Fetch a Ledger AccountGET/billing/{tenantLocator}/accounting/ledgerAccounts/{refType}/{refLocator}
Fetch Multiple Ledger Cash AccountsGET/billing/{tenantLocator}/accounting/ledgerAccounts/cash/list
Fetch Tenant Level Cash BalanceGET/billing/{tenantLocator}/accounting/ledgerAccounts/cash

Accounting Transactions

Fetch an Accounting Transaction

Fetch an Accounting TransactionfetchAccountingTransaction
GET/billing/{tenantLocator}/accounting/faTransactions/{locator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:accounting
Permission:
read
AccountingTransactionResponse

Required properties

PropertyTypeDescription
faTransactionLocatorulid
currencystring
faTransactionNotestring
faTransactionTimedatetime
accountLinesAccountLineItem[]
AccountLineItem

Required properties

PropertyTypeDescription
referenceLocatorulid
accountingTypeEnum credit | debit
amountnumber
referenceTypeEnum accountCreditBalance | invoiceCreditBalance | cash | creditCash | charge | credit | installmentItem | invoiceItem | account | policy | accountExpenseBalance

Accounting T-Accounts

Fetch a Ledger Account

Fetch a Ledger AccountfetchLedgerAccount
GET/billing/{tenantLocator}/accounting/ledgerAccounts/{refType}/{refLocator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
refTypepathEnum accountCreditBalance | invoiceCreditBalance | cash | creditCash | charge | credit | installmentItem | invoiceItem | account | policy | accountExpenseBalanceYes
refLocatorpathulidYes
currencyquerystring?No
sizequeryinteger?No
Security Group:accounting
Permission:
read
LedgerAccountResponse

Required properties

PropertyTypeDescription
referenceLocatorulid
currencystring
balancenumber
referenceTypeEnum accountCreditBalance | invoiceCreditBalance | cash | creditCash | charge | credit | installmentItem | invoiceItem | account | policy | accountExpenseBalance
lineItemsLedgerAccountLineItem[]
LedgerAccountLineItem

Required properties

PropertyTypeDescription
faTransactionLocatorulid
accountingTypeEnum credit | debit
amountnumber
faTransactionNotestring
faTransactionTimedatetime

Cash Accounts

Cash accounts record inflows and outflows of cash from the system. For example, if a payment is received, the payment itself records the credit, and the customer account's cash t-account records the debit.

Fetch Multiple Ledger Cash Accounts

Fetch Multiple Ledger Cash AccountsfetchMultipleLedgerCashAccounts
GET/billing/{tenantLocator}/accounting/ledgerAccounts/cash/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
currencyquerystring?No
sizequeryinteger?No
offsetqueryinteger?No
countqueryinteger?No
extendedqueryboolean?No
Security Group:accounting
Permission:
read
LedgerAccountListResponse

Required properties

PropertyTypeDescription
listCompletedboolean
itemsLedgerAccountResponse[]

Fetch Tenant Level Cash Balance

Fetch Tenant Level Cash BalancefetchTenantLevelCashBalance
GET/billing/{tenantLocator}/accounting/ledgerAccounts/cash

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
currencyquerystring?No
Security Group:accounting
Permission:
read
TenantCashBalance

Required properties

PropertyTypeDescription
currencystring
balancenumber

On this page