Client Contract
| Property | Type | Description | Information |
|---|---|---|---|
id | int | Identifier | Unique for single Client contract. |
name | string | Name of the contract | |
description | string/null | Contract description | |
client_id | int | Unique for single Client. | |
file_id | int/null | Unique for single File. | File must be of type PDF/DOC/DOCX. |
project_id | int/null | Unique for single Project. | |
responsible_person_id | int/null | Unique for single User. | If null, value is set to be same as responsible person for Client. |
amount_of_money | Monetary (array<string, Decimal>) | Amount of money per invoice. | |
billings_frequency | int (enum) | Frequency of new invoices. | Value must be from enum. Enum values are described here: client-contracts |
billings_at | int (enum) | If invoice is generated at the start/end of given period. | Value must be from enum. Enum values are described here: client-contracts |
valid_from | date | Contract valid from | |
valid_to | date/null | Contract valid to | |
created_at | date | Client creation date | Date of Client creation |
updated_at | date | Client latest update date | Date of latest Client update |
Example:
{
"id": 6,
"name": "Kaitrade Smlouva",
"description": null,
"client_id": 2,
"file_id": 1,
"project_id": null,
"responsible_person_id": 39,
"amount_of_money": {
"CZK": {
"value": 120.22,
"formatted": "120,22 Kč"
}
},
"billings_frequency": "1",
"billings_at": "2",
"valid_from": "2023-12-31T23:00:00.000000Z",
"valid_to": null,
"created_at": "2024-01-30T10:37:35+0100",
"updated_at": "2024-01-30T10:37:35+0100",
"_links": [
{
"href": "/api/v0/client-contracts/6",
"rel": "self",
"type": "GET"
}
]
}