List all profitlosses

GET/accounting/{connection_id}/profitloss

Parameters

limitnumber default=100
offsetnumber default=0
updated_gtedate
Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
sort enum
order enum
querystring
Query string to search. eg. email address or name
start_gtestring
The start date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
end_ltstring
The end date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
category_idstring
The category ID to filter by (reference to AccountingCategory)
contact_idstring
The contact ID to filter by (reference to AccountingContact)
fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection

Returns

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
category_idsstring array
(reference to AccountingCategory)
start_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
end_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
currencystring
income array
@deprecated – use income_sections instead
expenses array
@deprecated – use expenses_sections instead
cost_of_goods_sold array
@deprecated – use cost_of_goods_sold_sections instead
gross_profit_amountnumber
@deprecated – compute using income_total_amount - cost_of_goods_sold_total_amount
net_profit_amountnumber
@deprecated – use net_income_amount instead
income_total_amountnumber
net_income_amountnumber
expenses_total_amountnumber
cost_of_goods_sold_total_amountnumber
income_sections array
expenses_sections array
cost_of_goods_sold_sections array
const options = {
  method: 'GET',
  url: 'https://api.unified.to/accounting/5de520f96e439b002043d8dc/profitloss',
  headers: {
    authorization: 'bearer .....'
  },
  params: {
    limit: 50,
    offset: 0,
    updated_gte: '2026-06-09T19:58:26.024Z',
    sort: 'updated_at',
    order: 'asc',
    query: '',
    start_gte: '',
    end_lt: '',
    category_id: '',
    contact_id: '',
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?