Get the profit & loss report
The calling organization's P&L as a single derived report (not paginated). Revenue comes from approved statements, expenses from coded bills — a management report, not audited books. Capital spend is broken out into a dedicated capex section and is EXCLUDED from expenses.total and netIncome. A separate cashFlow section reports money actually moved in the period (revenue received vs. bills paid), independent of the accrual/interest bases. Every row carries a byMonth map keyed by the months array plus a period total.
- Type: string Format: date-timestart
Date ISO 8601 date. Start of the reported window. Defaults to the first of the month 12 months ago.
- Type: string Format: date-timeend
Date ISO 8601 date. End of the reported window. Defaults to the end of the current month.
- Type: array string[]well
Id max length:100Repeatable. Restrict the report to these wells. Omit for all wells.
- Type: string enumrevenue
Date Basis Bucket revenue by production month (default) or by check date.
values- production
- check
- Type: string enumexpense
Date Basis Bucket expenses by invoice date (accrual, default) or by paid date (cash).
values- invoice
- paid
- Type: string enuminterest
Basis Owner net interest (default) or gross 8/8 well-level values.
values- owner
- eight
Eighths
- application/json
- application/json
- application/json
- application/json
curl https://app.joltly.io/api/v1/profit-loss \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"data": {
"months": [
"string"
],
"revenue": {
"byProduct": [
{
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
}
],
"grossTotal": {
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
},
"taxes": {
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
},
"deductions": {
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
},
"netTotal": {
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
}
},
"expenses": {
"groups": [
{
"name": "string",
"accounts": [
{
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
}
],
"total": {
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
}
}
],
"total": {
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
}
},
"capex": {
"accounts": [
{
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
}
],
"total": {
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
}
},
"netIncome": {
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
},
"cashFlow": {
"cashIn": {
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
},
"cashOut": {
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
},
"netCash": {
"id": "string",
"label": "string",
"byMonth": {
"additionalProperty": 1
},
"total": 1
}
},
"meta": {
"startDate": "2026-08-06T20:36:32.031Z",
"endDate": "2026-08-06T20:36:32.031Z",
"wellIds": [
"string"
],
"revenueDateBasis": "production",
"expenseDateBasis": "invoice",
"interestBasis": "owner"
}
}
}