Xero · Example Payload

Xero Getfinancialstatementprofitandloss Example

AccountingBank FeedsFinanceFinancial-ServicesInvoicingPayrollSmall Business

Xero Getfinancialstatementprofitandloss Example is an example object payload from Xero, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "getFinancialStatementProfitAndLoss",
  "method": "GET",
  "path": "/FinancialStatements/ProfitAndLoss",
  "summary": "Xero Get Profit & Loss report",
  "requestExamples": [],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "startDate": "2020-07-01",
        "endDate": "2021-06-30",
        "netProfitLoss": 123,
        "revenue": {
          "total": 20922.46,
          "accountTypes": [
            {
              "total": 20825.41,
              "title": "Trading Income",
              "accounts": [
                {
                  "accountID": "abcdefab-2006-43c2-a5da-3c0e5f43b452",
                  "accountType": "REVENUE",
                  "code": "200",
                  "name": "Sales",
                  "reportingCode": "REV",
                  "total": 20825.41
                }
              ]
            },
            {
              "total": 97.05,
              "title": "Other Income",
              "accounts": [
                {
                  "accountID": "abcdefab-4d63-4af8-937f-04087ae2e36e",
                  "accountType": "OTHERINCOME",
                  "code": "270",
                  "name": "Interest Income",
                  "reportingCode": "REV.OTH",
                  "total": 97.05
                }
              ]
            }
          ]
        },
        "expense": {
          "total": 1282.06,
          "accountTypes": [
            {
              "total": 1137.59,
              "title": "Direct Cost",
              "accounts": [
                {
                  "accountID": "abcdefab-d381-4bd6-ba47-7af927d25825",
                  "accountType": "DIRECTCOSTS",
                  "code": "300",
                  "name": "Purchases",
                  "reportingCode": "EXP.DC",
                  "total": 1137.59
                }
              ]
            },
            {
              "total": 144.47,
              "title": "Operating Expenses",
              "accounts": [
                {
                  "accountID": "abcdefab-f897-4168-b5d1-2279bf74bb82",
                  "accountType": "EXPENSE",
                  "code": "453",
                  "name": "Office Expenses",
                  "reportingCode": "EXP",
                  "total": 144.47
                }
              ]
            }
          ]
        }
      }
    },
    {
      "status": "400",
      "contentType": "application/json",
      "example": {
        "type": "invalid-request",
        "title": "InvalidRequest",
        "status": 400,
        "detail": "Organisation xxx does not exist"
      }
    }
  ]
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/xero-getfinancialstatementprofitandloss-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.