createClaims
createClaims
Overview
Create claims.
This method requires the Contract:CreateClaim permission to be associated with your role.
It performs the same function as the corresponding action in the Contract / Claims screen.
Permissions
The permission for this API is stored in [gb_api_permissions]permission as 'Contract:CreateClaim'.
Only roles with a stored link to this permission in [gb_role_api_permissions] can run this api.
HTTP Method
Use the HTTP Method 'POST' for consuming this web service.
URL Examples
https://api.demo.catch-e.com/fm/contract/claims
https://api.{{environment}}.catch-e.com/fm/contract/claims
https://api.test.catch-e.com/fm/contract/claims
Input Fields (Header)
Input Fields (JSON)
[ { "attachment_id": "string", "bank_details_correct_flag": "no", "billing_period": 0, "contract_id": "string", "driver_bank_account_id": "string", "invoice_date": "2026-07-25", "invoice_no": "string", "notes": "string", "reimbursement_flag": "no", "maintenance_lines": [ { "invoice_date": "2026-07-25", "odometer": 0, "posting_class_id": "string", "vmrs_code_id": "string", "description": "string", "quantity": 0, "retail_price": 0, "gst_cost": 0 } ] } ]Response Details
Success
201 - Claims(s) created successfully
{ "_links": { "self": { "href": "https://api.catch-e.loc/fm/contract/{contract_id}/claims" } }, "_embedded": { "contract_claims": [ { "approval_id": "string", "contract_id": "string", "user_id": "string", "supplier_id": "string", "supplier_contact": "string", "supplier_phone": "string", "payee_payment_method_id": "string", "driver_bank_account_id": "string", "driver_name": "string", "driver_phone": "string", "client_phone": "string", "misc_phone": "string", "notes": "string", "invoice_no": "string", "invoice_date": "2026-07-25", "billing_period": 0, "reimbursement_flag": "no", "bank_details_correct_flag": "no", "attachment_id": "string", "created": "2026-07-25", "last_edit": "2026-07-25", "user_id_edit": "string", "posted_date": "2026-07-25", "approval_sub_status_id": "string", "status_flag": "string", "maintenance_lines": [ { "maintenance_id": "string", "invoice_date": "2026-07-25", "odometer": 0, "posting_class_id": "string", "vmrs_code_id": "string", "description": "string", "quantity": 0, "retail_price": 0, "gst_cost": 0 } ] } ] }, "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": "Employee Not Found", "status": 404, "detail": "Employee 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": "Unsupported Media Type", "status": 415, "detail": "Not Acceptable" }{ "warning_messages": { "fieldName": { "warningExceptionCode": "A textual description of the warning exception" } }, "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" }