Contracts - Add New Contract
POST yourdomain.com/api/contracts
Header
json
Field | Type | Description |
---|---|---|
Authorization | String |
Basic Access Authentication token. |
Parameter
json
Field | Type | Description |
---|---|---|
subject | String |
Mandatory. Contract subject |
datestart | Date |
Mandatory. Contract start date |
client | Number |
Mandatory. Customer ID |
dateend | Date |
Optional. Contract end date |
contract_type | Number |
Optional. Contract type |
contract_value | Number |
Optional. Contract value |
description | String |
Optional. Contract description |
content | String |
Optional. Contract content |
Success 200
json
Field | Type | Description |
---|---|---|
status | Boolean |
Request status. |
message | String |
Contracts Added Successfully |
Error 4xx
json
Name | Type | Description |
---|---|---|
status | Boolean |
Request status. |
message | String |
Contract add fail |
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Contract ID Exists"
}
HTTP/1.1 404 Not Found
{
"status": false,
"error": {
"total": "The Customer ID is required"
},
"message": "<p>The Customer ID is required</p>\n"
}