Digits

App · 20 actions

Read company information, ledger accounts, transactions, invoices, bills, and financial statements.

Actions

ActionWhat it does
Get balance sheetBalance Sheet.
Get companyGet Company Info.
Get departmentGet Department.
Get ledger categoryGet Category.
Get ledger partyGet Party.
Get locationGet Location.
Get organizationGet Organization.
Get profit and loss statementProfit and Loss.
Get projectGet Project.
Get transactionGet Transaction.
Get trial balanceTrial Balance.
List departmentsList Departments.
List entitiesList Entities.
List ledger categoriesList Categories.
List ledger entriesList Entries.
List ledger partiesList Parties.
List locationsList Locations.
List projectsList Projects.
Query billsQuery Bills.
Query invoicesQuery Invoices.

Get balance sheet

Balance Sheet.

Inputs

Start datestart_datedate
The start date of the statement period (inclusive)
End dateend_datedate
The end date of the statement period (inclusive)
Intervalintervaltext
The interval for the statement (e.g., Month, Quarter, Year)One of: Month, Year, Quarter.
Fiscal year start monthfiscal_year_start_monthnumber
Optional the fiscal year start month (1 = January, 12 = December) defaults to January if not provided
Department IDsdepartment_idslist
Optional department identifiers to filter statement totals.
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "rows": []
  }
}

Get company

Get Company Info.

Inputs

Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "currency": "example",
    "earliestTransaction": "example",
    "fiscalYearStartMonth": "example",
    "id": "example",
    "name": "example",
    "slug": "example"
  }
}

Get department

Get Department.

Inputs

IdidtextRequired
id.
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "department": {
      "active": false,
      "description": "example",
      "id": {
        "id": "example",
        "issuer": "example"
      },
      "name": "example",
      "parentId": "example"
    }
  }
}

Get ledger category

Get Category.

Inputs

IdidtextRequired
id.
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "active": false,
    "createdAt": "example",
    "displayNumber": "example",
    "id": "example",
    "name": "example",
    "parentId": "example",
    "subtype": "UnknownSubtype",
    "type": "UnknownType",
    "updatedAt": "example"
  }
}

Get ledger party

Get Party.

Inputs

IdidtextRequired
id.
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "party": {
      "createdAt": "example",
      "description": "example",
      "email": "example",
      "id": {
        "id": "example",
        "issuer": "example"
      },
      "kind": "UnknownKind",
      "name": "example",
      "roles": [],
      "updatedAt": "example"
    }
  }
}

Get location

Get Location.

Inputs

IdidtextRequired
id.
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "location": {
      "id": {
        "id": "example",
        "issuer": "example"
      },
      "name": "example",
      "parentId": "example"
    }
  }
}

Get organization

Get Organization.

Inputs

None.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "displayId": "example",
    "externalId": "example",
    "id": "example",
    "name": "example"
  }
}

Get profit and loss statement

Profit and Loss.

Inputs

Start datestart_datedate
The start date of the statement period (inclusive)
End dateend_datedate
The end date of the statement period (inclusive)
Intervalintervaltext
The interval for the statement (e.g., Month, Quarter, Year)One of: Month, Year, Quarter.
Fiscal year start monthfiscal_year_start_monthnumber
Optional the fiscal year start month (1 = January, 12 = December) defaults to January if not provided
Department IDsdepartment_idslist
Optional department identifiers to filter statement totals.
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "rows": []
  }
}

Get project

Get Project.

Inputs

IdidtextRequired
id.
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "project": {
      "id": {
        "id": "example",
        "issuer": "example"
      }
    }
  }
}

Get transaction

Get Transaction.

Inputs

IdidtextRequired
The digits ledger transaction id
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "transaction": {
      "amount": {
        "amount": 1.0,
        "code": "example"
      },
      "bill": {
        "billDate": "example",
        "dueDate": "example",
        "id": "example",
        "invoiceNumber": "example"
      },
      "date": "example",
      "entries": [],
      "invoice": {
        "dueDate": "example",
        "id": "example",
        "invoiceDate": "example",
        "invoiceNumber": "example"
      },
      "memo": "example",
      "referenceNumber": "example",
      "sources": [],
      "transactionId": "example",
      "transactionType": "Unknown"
    }
  }
}

Get trial balance

Trial Balance.

Inputs

Start datestart_datedate
The start date of the statement period (inclusive)
End dateend_datedate
The end date of the statement period (inclusive)
Intervalintervaltext
The interval for the statement (e.g., Month, Quarter, Year)One of: Month, Year, Quarter.
Fiscal year start monthfiscal_year_start_monthnumber
Optional the fiscal year start month (1 = January, 12 = December) defaults to January if not provided
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "rows": []
  }
}

List departments

List Departments.

Inputs

Activeactivetrue/false
Filter by activity. Omitted returns all departments.
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "departments": []
  }
}

List entities

List Entities.

Inputs

Limitlimitnumber
The number of items to return per request. Default and max size is 100.
Cursorcursortext
Cursor for pagination.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "entities": [],
    "next": {
      "cursor": "example",
      "more": false
    }
  }
}

List ledger categories

List Categories.

Inputs

Created beforecreated_beforedate and time
Filter to categories created before this timestamp
Created aftercreated_afterdate and time
Filter to categories created after this timestamp
Updated beforeupdated_beforedate and time
Filter to categories updated before this timestamp
Updated afterupdated_afterdate and time
Filter to categories updated after this timestamp
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "categories": []
  }
}

List ledger entries

List Entries.

Inputs

Occurred beforeoccurred_beforedate and time
OccurredBefore filters entries to those that occurred before this timestamp
Occurred afteroccurred_afterdate and time
OccurredAfter filters entries to those that occurred after this timestamp
Minimum amountminimum_amountnumber
Filters entries to those that exceed the specified minimum amount Double formatted for compatibility, only the integer component is used.
Maximum amountmaximum_amountnumber
Filters entries to those that are below the specified maximum amount Double formatted for compatibility, only the integer component is used.
Currency codecurrency_codetext
Currency code. USD-only.
Limitlimitnumber
The number of items to return per request. Default and max size is 100.
Cursorcursortext
Cursor for pagination
Created beforecreated_beforedate and time
Filter to entries created before this timestamp
Created aftercreated_afterdate and time
Filter to entries created after this timestamp
Updated beforeupdated_beforedate and time
Filter to entries updated before this timestamp
Updated afterupdated_afterdate and time
Filter to entries updated after this timestamp
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "entryDetails": [],
    "next": {
      "cursor": "example",
      "more": false
    }
  }
}

List ledger parties

List Parties.

Inputs

Namenametext
Optional, case-insensitive name filter
Kindskindslist
Party kinds to include, empty returns all kindsOne or more of: UnknownKind, Person, Business.
Rolesroleslist
Filter by accounting role. Parties must match at least one requested role and all other supplied filters. Omit to include parties regardless of role. UnknownRole and unrecognized values are not accepted. Vendors span multiple accounting roles; include all vendor-related roles to retrieve the full vendor list.One or more of: UnknownRole, EntityVendorRole, EntityCustomerRole, EntitySupplierRole, EntityUnspecifiedRole, InstitutionDebitRole, InstitutionCreditRole, PaymentProcessorRole, FacilitatorRole, OwnerRole, and 18 more.
Limitlimitnumber
The number of items to return per request. Default and max size is 100.
Cursorcursortext
Cursor for pagination
Created beforecreated_beforedate and time
Filter to parties created before this timestamp
Created aftercreated_afterdate and time
Filter to parties created after this timestamp
Updated beforeupdated_beforedate and time
Filter to parties updated before this timestamp
Updated afterupdated_afterdate and time
Filter to parties updated after this timestamp
Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "next": {
      "cursor": "example",
      "more": false
    },
    "parties": []
  }
}

List locations

List Locations.

Inputs

Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "locations": []
  }
}

List projects

List Projects.

Inputs

Entityentity_idtext
Entity's Digits-assigned ID, obtained from entity discovery. Required unless external_id is supplied or the token already identifies the entity.
Entity external IDentity_external_idtext
Entity's caller-assigned ID in the authorizing organization's namespace. Alternative to id for organization-level tokens; not a source or transaction ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "projects": []
  }
}

Query bills

Query Bills.

Inputs

Filtersfiltersobject
Values within each ID list use OR; different fields use AND. Balances include all activity in the published view.
Limitlimitnumber
Default and maximum page size is 100.
Cursorcursortext
Continuations retain the published view and require unchanged filters.
Entityentity_idtext
Entity ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "next": {
      "cursor": "example",
      "more": false
    },
    "summaries": []
  }
}

Query invoices

Query Invoices.

Inputs

Filtersfiltersobject
Values within each ID list use OR; different fields use AND. Balances include all activity in the published view.
Limitlimitnumber
Default and maximum page size is 100.
Cursorcursortext
Continuations retain the published view and require unchanged filters.
Entityentity_idtext
Entity ID.

Outputs

dataobject
The response from Digits.
Example output
{
  "data": {
    "next": {
      "cursor": "example",
      "more": false
    },
    "summaries": []
  }
}

On this page