List expenses
const url = 'https://api.stocksmith.io/api/v1/expenses';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.stocksmith.io/api/v1/expenses \ --header 'Authorization: Bearer <token>'Requires financial access (view_material_costs permission). Returns 403 if the authenticated user lacks this permission.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Page number (default: 1)
Results per page (default: 25, max: 100)
Filter by purchase date on or after this ISO 8601 date (e.g. 2026-01-01)
Filter by purchase date on or before this ISO 8601 date (e.g. 2026-12-31)
Filter by last-modified on or after this ISO 8601 timestamp
Filter by supplier (contact) ID
Filter by line item category ID
Filter by receipt status. Comma-separated for multiple (e.g. ‘partial,outstanding’). One or more of: received, partial, outstanding.
Responses
Section titled “ Responses ”Paginated list of expenses
object
object
ID of the supplier contact
Line-item receipt rollup: all lines received, some received, or none received. “received” for a purchase with zero line items.
Grand total
object
Decimal string, e.g. ‘8.75’
ISO 4217 code, e.g. ‘USD’
Sum of line item totals
object
Decimal string, e.g. ‘8.75’
ISO 4217 code, e.g. ‘USD’
object
Decimal string, e.g. ‘8.75’
ISO 4217 code, e.g. ‘USD’
object
Decimal string, e.g. ‘8.75’
ISO 4217 code, e.g. ‘USD’
object
Decimal string, e.g. ‘8.75’
ISO 4217 code, e.g. ‘USD’
object
ID of the material on this line
True when this line is a material purchase
True when this line has been received
Decimal string
object
Decimal string, e.g. ‘8.75’
ISO 4217 code, e.g. ‘USD’
object
Decimal string, e.g. ‘8.75’
ISO 4217 code, e.g. ‘USD’
object
Example
{ "expenses": [ { "received_status": "received" } ]}Missing or invalid Bearer token
object
Error message
Example generated
{ "error": "example"}User lacks financial access (view_material_costs permission)
object
Error message
Example generated
{ "error": "example"}