Finance

Retrieve a Cost

Work with Costs. Retrieves the Cost with the given ID.

get/admin/finance/costs/{id}

Request

  • Base URL: https://demo.splynx.com/api/2.0
  • URL: https://demo.splynx.com/api/2.0/admin/finance/costs/{id}
  • Auth: HTTP basic

Path parameters

idnumber double required
Example:1

The ID of the desired Cost.

Response

idnumber

Cost ID.

category_idnumber

Cost category ID.

supplier_invoice_idnumber nullable

Linked supplier invoice ID. Nullable.

fixed_cost_idnumber

Linked fixed cost ID. 0 if the entry is not derived from a fixed cost.

descriptionstring

Free-form description of the cost.

date_timestring

When the cost was registered. Format: YYYY-MM-DD HH:mm:ss.

amountnumber

Cost amount.

Example response

{
  "id": 1,
  "category_id": 5,
  "supplier_invoice_id": 12,
  "fixed_cost_id": 0,
  "description": "Office rent - March",
  "date_time": "2026-03-01 09:00:00",
  "amount": 1500
}

Changes

No recorded changes to this operation across all 1 revision of this API.