getContractBudgets
getContractBudgets
Overview
This method returns the budget details for a contract.
A single contract may have thousands of budget records, depending on its pay cycle, posting classes and term. For example, a weekly pay cycle with 10 posting classes (FIN, MAINT, REG and so on) over 60 months has 2,600 budget records. Use the billing_period, posting_class_code and page filters to return a manageable set of results.
This method requires the ContractBudgets:Get permission to be associated with your role.
Permissions
The permission for this api is stored in [gb_api_permissions]permission as 'ContractBudgets:Get'.
Only roles with a stored link to this permission in [gb_role_api_permissions] can run this api.
HTTP Method
Use the HTTP Method 'GET' for consuming this web service.
URL Examples
https://api.demo.catch-e.com/fm/contract/budgets?contract_id=5678&billing_period=1 https://api.{{environment}}.catch-e.com/fm/contract/budgets?contract_id=5678&billing_period=1 https://api.test.catch-e.com/fm/contract/budgets?contract_id=5678&billing_period=1 Query Parameters
Response Details
Success
200 - OK
Each record in _embedded.contract_budgets contains:
{ "_links": { "self": { "href": "https://api.catch-e.loc/fm/contract/budgets?contract_id=5678&page=1" } }, "_embedded": { "contract_budgets": [ { "id": "[40-CHARACTER-HEX-ID]", "contract_id": "5678", "posting_class_id": "3", "billing_period": 1, "billing_period_item_no": 1, "billing_type_flag": "string", "billing_interval": "fortnightly", "billing_date": "2026-02-12", "payment_method": "direct-debit", "amount_net": 250.0, "amount_gst": 25.0, "status_flag": "string", "posting_class_code": "FIN" } ] }, "page_count": 1, "page_size": 25, "total_items": 1, "page": 1 } Error Response Details
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unauthorized", "status": 401, "detail": "Unauthorized" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Forbidden", "status": 403, "detail": "Forbidden" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Found", "status": 404, "detail": "Not Found" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Acceptable", "status": 406, "detail": "Not Acceptable" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Conflict", "status": 409, "detail": "Conflict" } { "warning_messages": {}, "validation_messages": { "fieldName": { "validationExceptionCode": "A textual description of the validation exception" } }, "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unprocessable Entity", "status": 422, "detail": "Failed Validation" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" }