Gets the latest profit and loss for a company.
643 matches
100 actions
Accounting
100 actions
- Aged creditors reportGETv1.0.0
- Aged debtors reportGETv1.0.0
- Create accountPOSTv1.0.0
- Create bank accountPOSTv1.0.0
- Create billPOSTv1.0.0
- Create bill credit notePOSTv1.0.0
- Create bill paymentsPOSTv1.0.0
- Create credit notePOSTv1.0.0
- Create customerPOSTv1.0.0
- Create direct costPOSTv1.0.0
- Create direct incomePOSTv1.0.0
- Create invoicePOSTv1.0.0
- Create itemPOSTv1.0.0
- Create journalPOSTv1.0.0
- Create journal entryPOSTv1.0.0
- Create paymentPOSTv1.0.0
- Create purchase orderPOSTv1.0.0
- Create suppliersPOSTv1.0.0
- Create transferPOSTv1.0.0
- Delete billDELETEv1.0.0
- Get accountGETv1.0.0
- Get account transactionGETv1.0.0
- Get balance sheetGETv1.0.0
- Get bank accountGETv1.0.0
- Get bank accountGETv1.0.0
- Get billGETv1.0.0
- Get bill attachmentGETv1.0.0
- Get bill credit noteGETv1.0.0
- Get bill paymentGETv1.0.0
- Get cash flow statementGETv1.0.0
- Get company infoGETv1.0.0
- Get create account modelGETv1.0.0
- Get create bill payment modelGETv1.0.0
- Get create direct cost modelGETv1.0.0
- Get create direct income modelGETv1.0.0
- Get create item modelGETv1.0.0
- Get create journal entry modelGETv1.0.0
- Get create journal modelGETv1.0.0
- Get create payment modelGETv1.0.0
- Get create transfer modelGETv1.0.0
- Get create/update bank account modelGETv1.0.0
- Get create/update bill credit note modelGETv1.0.0
- Get create/update bill modelGETv1.0.0
- Get create/update credit note modelGETv1.0.0
- Get create/update customer modelGETv1.0.0
- Get create/update invoice modelGETv1.0.0
- Get create/update purchase order modelGETv1.0.0
- Get create/update supplier modelGETv1.0.0
- Get credit noteGETv1.0.0
- Get customerGETv1.0.0
- Get customer attachmentGETv1.0.0
- Get direct costGETv1.0.0
- Get direct cost attachmentGETv1.0.0
- Get direct incomeGETv1.0.0
- Get direct income attachmentGETv1.0.0
- Get direct incomesGETv1.0.0
- Get invoiceGETv1.0.0
- Get invoice attachmentGETv1.0.0
- Get invoice attachmentsGETv1.0.0
- Get itemGETv1.0.0
- Get journalGETv1.0.0
- Get journal entryGETv1.0.0
- Get paymentGETv1.0.0
- Get payment methodGETv1.0.0
- Get profit and lossGETv1.0.0
- Get purchase orderGETv1.0.0
- Get sales orderGETv1.0.0
- Get supplierGETv1.0.0
- Get supplier attachmentGETv1.0.0
- Get tax rateGETv1.0.0
- Get tracking categoriesGETv1.0.0
- Get transferGETv1.0.0
- List accountsGETv1.0.0
- List all bank transactionsGETv1.0.0
- List all payment methodsGETv1.0.0
- List all tax ratesGETv1.0.0
- List bank accountsGETv1.0.0
- List bill attachmentsGETv1.0.0
- List bill credit notesGETv1.0.0
- List bill paymentsGETv1.0.0
- List billsGETv1.0.0
- List credit notesGETv1.0.0
- List customer attachmentsGETv1.0.0
- List customersGETv1.0.0
- List direct cost attachmentsGETv1.0.0
- List direct costsGETv1.0.0
- List direct income attachmentsGETv1.0.0
- List invoicesGETv1.0.0
- List itemsGETv1.0.0
- List journal entriesGETv1.0.0
- List journalsGETv1.0.0
- List paymentsGETv1.0.0
- List purchase ordersGETv1.0.0
- List push options for bank account bank transactionsGETv1.0.0
- List sales ordersGETv1.0.0
- List supplier attachmentsGETv1.0.0
- List suppliersGETv1.0.0
- List tracking categoriesGETv1.0.0
- List transfersGETv1.0.0
- Refresh company infoPOSTv1.0.0
Finance/Accounting
Get profit and loss
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
{
"type": "object",
"properties": {
"periodLength": {
"type": "integer",
"format": "int32"
},
"periodsToCompare": {
"type": "integer",
"format": "int32"
},
"startMonth": {
"type": "string",
"description": "In Codat's data model, dates and times are represented using the <a class=\"external\" href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:\n\n```\n2020-10-08T22:40:50Z\n2021-01-01T00:00:00\n```\n\n\n\nWhen syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:\n\n- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`\n- Unqualified local time: `2021-11-15T01:00:00`\n- UTC time offsets: `2021-11-15T01:00:00-05:00`\n\n> Time zones\n> \n> Not all dates from Codat will contain information about time zones. \n> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced."
}
},
"required": [
"periodLength",
"periodsToCompare"
],
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
{
"type": "object",
"description": "> **Language tip:** Profit and loss statement is also referred to as **income statement** under US GAAP (Generally Accepted Accounting Principles).\n\n> View the coverage for profit and loss in the <a className=\"external\" href=\"https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=profitAndLoss\" target=\"_blank\">Data coverage explorer</a>.\n\n## Overview\n\nThe purpose of a profit and loss report is to present the financial performance of a company over a specified time period.\n\nA profit and loss report shows a company's total income and expenses for a specified period of time and whether a profit or loss has been made.\n\n> **Profit and loss or balance sheet?** \n> Profit and loss reports summarise the total revenue, expenses, and profit or loss over a specified time period. A balance sheet report presents all assets, liability, and equity for a given date.\n\n\n**Structure of this report** \nThis report will reflect the structure and line descriptions that the business has set in their own accounting platform.\n\n**History** \nBy default, Codat pulls (up to) 24 months of profit and loss history for a company. You can adjust this to fetch more history, where available, by updating the `monthsToSync` value for `profitAndLoss` on the [data type settings endpoint](https://docs.codat.io/codat-api#/operations/post-profile-syncSettings).\n\n**Want to pull this in a standardised structure?** \nOur [Enhanced Financials](https://docs.codat.io/assess/reports/enhanced-financials/financials) endpoints provide the same report under standardized headings, allowing you to pull it in the same format for all of your business customers.",
"required": [
"currency",
"reportBasis",
"reports"
],
"properties": {
"currency": {
"type": "string",
"description": "Base currency of the company in which the profit and loss report is presented."
},
"earliestAvailableMonth": {
"type": "string",
"description": "In Codat's data model, dates and times are represented using the <a class=\"external\" href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:\n\n```\n2020-10-08T22:40:50Z\n2021-01-01T00:00:00\n```\n\n\n\nWhen syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:\n\n- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`\n- Unqualified local time: `2021-11-15T01:00:00`\n- UTC time offsets: `2021-11-15T01:00:00-05:00`\n\n> Time zones\n> \n> Not all dates from Codat will contain information about time zones. \n> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced."
},
"mostRecentAvailableMonth": {
"type": "string",
"description": "In Codat's data model, dates and times are represented using the <a class=\"external\" href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:\n\n```\n2020-10-08T22:40:50Z\n2021-01-01T00:00:00\n```\n\n\n\nWhen syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:\n\n- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`\n- Unqualified local time: `2021-11-15T01:00:00`\n- UTC time offsets: `2021-11-15T01:00:00-05:00`\n\n> Time zones\n> \n> Not all dates from Codat will contain information about time zones. \n> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced."
},
"reportBasis": {
"type": "string",
"description": "The basis of a report.",
"enum": [
"Unknown",
"Accrual",
"Cash"
]
},
"reports": {
"type": "array",
"description": "An array of profit and loss reports.",
"items": {
"type": "object",
"required": [
"grossProfit",
"netOperatingProfit",
"netOtherIncome",
"netProfit"
],
"properties": {
"costOfSales": {
"type": "object",
"required": [
"value"
],
"properties": {
"accountId": {
"type": [
"string",
"null"
],
"description": "Identifier for the account, unique for the company in the accounting platform."
},
"items": {
"type": [
"array",
"null"
],
"description": "An array of ReportLine items.",
"items": {
"type": "object",
"additionalProperties": true
}
},
"name": {
"type": [
"string",
"null"
],
"description": "Name of the report line item."
},
"value": {
"type": "number",
"description": "Numerical value of the line item."
}
}
},
"expenses": {
"type": "object",
"additionalProperties": true
},
"fromDate": {
"type": "string",
"description": "In Codat's data model, dates and times are represented using the <a class=\"external\" href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:\n\n```\n2020-10-08T22:40:50Z\n2021-01-01T00:00:00\n```\n\n\n\nWhen syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:\n\n- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`\n- Unqualified local time: `2021-11-15T01:00:00`\n- UTC time offsets: `2021-11-15T01:00:00-05:00`\n\n> Time zones\n> \n> Not all dates from Codat will contain information about time zones. \n> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced."
},
"grossProfit": {
"type": "number",
"description": "Gross profit of the company in the given date range."
},
"income": {
"type": "object",
"additionalProperties": true
},
"netOperatingProfit": {
"type": "number",
"description": "Net operating profit of the company in the given date range."
},
"netOtherIncome": {
"type": "number",
"description": "Net other income of the company in the given date range."
},
"netProfit": {
"type": "number",
"description": "Net profit of the company in the given date range."
},
"otherExpenses": {
"type": "object",
"additionalProperties": true
},
"otherIncome": {
"type": "object",
"additionalProperties": true
},
"toDate": {
"type": "string",
"description": "In Codat's data model, dates and times are represented using the <a class=\"external\" href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:\n\n```\n2020-10-08T22:40:50Z\n2021-01-01T00:00:00\n```\n\n\n\nWhen syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:\n\n- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`\n- Unqualified local time: `2021-11-15T01:00:00`\n- UTC time offsets: `2021-11-15T01:00:00-05:00`\n\n> Time zones\n> \n> Not all dates from Codat will contain information about time zones. \n> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced."
}
},
"additionalProperties": false
}
}
}
}