Sync profit and loss data with Xero through Apideck's unified API. One integration, instant access.
In Apideck, this resource is called ProfitAndLoss (API: profit-and-loss)
Get operation available through our unified API
Fields available for Xero Profit And Loss
idreport_namestart_dateend_datecurrencyincomecost_of_goods_soldexpensesother_incomegross_profitnet_operating_incomenet_incomecustomerSample response structure for profit and loss
{
"id": "12345",
"report_name": "Example Report Name",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"currency": "USD",
"income": "string",
"cost_of_goods_sold": "string",
"expenses": "string",
"other_income": "string",
"gross_profit": "string",
"net_operating_income": "string",
"net_income": "string",
"customer": {
"id": "12345",
"display_id": "CUST-001",
"display_name": "Acme Corp",
"company_name": "Acme Corporation"
}
}Start syncing Xero profit and loss in minutes
import { Apideck } from '@apideck/unify'
const apideck = new Apideck({
apiKey: process.env.APIDECK_API_KEY,
appId: 'YOUR_APP_ID',
consumerId: 'YOUR_CONSUMER_ID'
})
// List profit and loss from Xero
const result = await apideck.accounting.profitAndLoss.list({
serviceId: 'xero'
})
for await (const page of result) {
console.log(page)
}
// Returns unified profit and loss dataDiscover the most popular ways businesses integrate Xero profit and loss data
We build and maintain connectors, so you don't have to. View our full list of Accounting connectors.
Missing a connector? We're able to add new connectors.
Build Xero integrations in your favorite language with our official SDKs.
Build Xero integrations with the official Node.js SDK.
Build Xero integrations with the official TypeScript SDK.
Build Xero integrations with the official PHP SDK.
Build Xero integrations with the official .NET.
Build Xero integrations with the official Python SDK.
Build Xero integrations with the official Java SDK.
Build Xero integrations with the official Go SDK.