Properties
| Name | Type | Description |
|---|---|---|
| customer_id | string | Filter by customer id |
| start_date | string | Filter by start date. If start date is given, end date is required. |
| end_date | string | Filter by end date. If end date is given, start date is required. |
| location_id | string | Filter by location id |
| accounting_method | string | The accounting method used for the report: cash or accrual. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/ProfitAndLossFilter",
"title": "ProfitAndLossFilter",
"type": "object",
"x-apideck-schema-id": "ProfitAndLossFilter",
"example": {
"customer_id": "123abc",
"start_date": "2021-01-01",
"end_date": "2021-12-31",
"location_id": "123",
"accounting_method": "accrual"
},
"properties": {
"customer_id": {
"type": "string",
"title": "Customer Id",
"description": "Filter by customer id",
"example": "123abc"
},
"start_date": {
"type": "string",
"title": "Start date",
"description": "Filter by start date. If start date is given, end date is required.",
"example": "2021-01-01"
},
"end_date": {
"type": "string",
"title": "End date",
"description": "Filter by end date. If end date is given, start date is required.",
"example": "2021-12-31"
},
"location_id": {
"type": "string",
"title": "Location ID",
"description": "Filter by location id",
"example": "123"
},
"accounting_method": {
"x-apideck-enum-id": "profit-and-loss.accounting-method",
"type": "string",
"title": "Accounting Method",
"description": "The accounting method used for the report: cash or accrual.",
"example": "accrual",
"enum": [
"cash",
"accrual"
]
}
},
"additionalProperties": false
}
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema 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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/apideck-profitandlossfilter"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.