Properties
| Name | Type | Description |
|---|---|---|
| id | object | |
| display_id | object | |
| number | string | Number. |
| transaction_date | object | |
| account_id | string | The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead. |
| account | object | |
| supplier_id | string | The ID of the supplier this entity is linked to. Deprecated, use supplier instead. |
| supplier | object | |
| company_id | object | |
| location | object | |
| department_id | object | |
| department | object | |
| payment_type | string | The type of payment for the expense. |
| currency | object | |
| currency_rate | object | |
| type | string | The type of expense. |
| memo | string | The memo of the expense. |
| tax_rate | object | |
| tax_inclusive | object | |
| sub_total | object | |
| total_tax | object | |
| total_amount | number | The total amount of the expense line item. |
| tracking_categories | object | |
| line_items | array | Expense line items linked to this expense. |
| reference | object | |
| source_document_url | string | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. |
| custom_fields | array | |
| custom_mappings | object | |
| status | string | Expense status |
| updated_at | object | |
| created_at | object | |
| row_version | object | |
| updated_by | object | |
| created_by | object | |
| pass_through | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/Expense",
"title": "Expense",
"type": "object",
"x-apideck-schema-id": "Expense",
"additionalProperties": false,
"x-apideck-weights": {
"id": "critical",
"display_id": "high",
"transaction_date": "critical",
"account_id": "critical",
"account": "critical",
"supplier_id": "high",
"supplier": "high",
"line_items": "high",
"currency": "high",
"type": "high",
"number": "medium",
"memo": "medium",
"total_amount": "medium",
"sub_total": "high",
"total_tax": "high",
"tax_inclusive": "medium",
"tracking_categories": "medium",
"currency_rate": "edge-case",
"company_id": "edge-case",
"location": "medium",
"department_id": "medium",
"department": "medium",
"payment_type": "medium",
"tax_rate": "medium",
"reference": "medium",
"custom_fields": "medium",
"source_document_url": "low",
"custom_mappings": "low",
"pass_through": "low",
"status": "medium",
"updated_at": "medium",
"created_at": "medium",
"updated_by": "low",
"created_by": "low",
"row_version": "low"
},
"required": [
"transaction_date",
"line_items"
],
"x-apideck-strict-required": [
"transaction_date",
"line_items"
],
"x-apideck-strict-any-of": [
{
"required": [
"account_id"
]
},
{
"required": [
"account"
]
}
],
"properties": {
"id": {
"$ref": "#/components/schemas/Id"
},
"display_id": {
"$ref": "#/components/schemas/DisplayId"
},
"number": {
"type": "string",
"title": "Number",
"description": "Number.",
"example": "OIT00546",
"nullable": true
},
"transaction_date": {
"$ref": "#/components/schemas/TransactionDate"
},
"account_id": {
"title": "Account ID",
"description": "The unique identifier for the ledger account that this expense should be credited to. Deprecated, use account instead.",
"type": "string",
"example": "123456",
"deprecated": true
},
"account": {
"$ref": "#/components/schemas/LinkedFinancialAccount"
},
"supplier_id": {
"type": "string",
"title": "Supplier ID",
"description": "The ID of the supplier this entity is linked to. Deprecated, use supplier instead.",
"example": "12345",
"deprecated": true
},
"supplier": {
"$ref": "#/components/schemas/LinkedSupplier"
},
"company_id": {
"$ref": "#/components/schemas/AccountingCompanyId"
},
"location": {
"$ref": "#/components/schemas/LinkedLocation"
},
"department_id": {
"$ref": "#/components/schemas/DepartmentId"
},
"department": {
"$ref": "#/components/schemas/LinkedDepartment"
},
"payment_type": {
"type": "string",
"title": "Payment type",
"description": "The type of payment for the expense.",
"x-apideck-enum-id": "expenses.payment_type",
"enum": [
"cash",
"check",
"credit_card",
"other"
],
"example": "cash",
"nullable": true
},
"currency": {
"$ref": "#/components/schemas/Currency"
},
"currency_rate": {
"$ref": "#/components/schemas/CurrencyRate"
},
"type": {
"type": "string",
"title": "Expense type",
"description": "The type of expense.",
"x-apideck-enum-id": "expenses.type",
"enum": [
"expense",
"refund"
],
"example": "expense",
"nullable": true
},
"memo": {
"type": "string",
"title": "Memo",
"description": "The memo of the expense.",
"example": "For travel expenses incurred on 2024-05-15",
"nullable": true
},
"tax_rate": {
"$ref": "#/components/schemas/LinkedTaxRate"
},
"tax_inclusive": {
"$ref": "#/components/schemas/TaxInclusive"
},
"sub_total": {
"$ref": "#/components/schemas/SubTotal"
},
"total_tax": {
"$ref": "#/components/schemas/TotalTax"
},
"total_amount": {
"type": "number",
"title": "Total amount",
"description": "The total amount of the expense line item.",
"example": 275,
"nullable": true
},
"tracking_categories": {
"$ref": "#/components/schemas/LinkedTrackingCategories"
},
"line_items": {
"type": "array",
"minItems": 1,
"description": "Expense line items linked to this expense.",
"items": {
"$ref": "#/components/schemas/ExpenseLineItem"
}
},
"reference": {
"$ref": "#/components/schemas/Reference"
},
"source_document_url": {
"type": "string",
"title": "Source document URL",
"description": "URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero.",
"example": "https://www.invoicesolution.com/expense/123456",
"nullable": true
},
"custom_fields": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomField"
}
},
"custom_mappings": {
"$ref": "#/components/schemas/CustomMappings"
},
"status": {
"type": "string",
"title": "Status",
"description": "Expense status",
"example": "draft",
"x-apideck-enum-id": "expenses.status",
"enum": [
"draft",
"posted",
"voided"
],
"nullable": true
},
"updated_at": {
"$ref": "#/components/schemas/UpdatedAt"
},
"created_at": {
"$ref": "#/components/schemas/CreatedAt"
},
"row_version": {
"$ref": "#/components/schemas/RowVersion"
},
"updated_by": {
"$ref": "#/components/schemas/UpdatedBy"
},
"created_by": {
"$ref": "#/components/schemas/CreatedBy"
},
"pass_through": {
"$ref": "#/components/schemas/PassThroughBody"
}
}
}
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-expense"
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.