Get Contract by ID

GET/api/contracts/{id}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area
curl -X GET "https://yoursite.com/api/contracts/123" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

{
  "id": "1",
  "title": "Contract A",
  "client_id": "2",
  "project_id": "1",
  "contract_date": "2024-01-15",
  "valid_until": "2024-12-31",
  "status": "sent"
}
MethodGET
Path/api/contracts/{id}
GroupContracts
Sincev1.0.0
Defined inRestApi/Controllers/ContractsController.php