Authorization: Bearer ********************
{
"contractNo": "CONT250600006",
"contractName": "test contract open api 3",
"customerCode": "L000308",
"contractType": "MA",
"contractValue": 2000,
"dateStart": "2025-06-18 00:00:00",
"dateEnd": "2026-06-18 21:37:51",
"dealNo": "string",
"note": null,
"owner": "UAT007",
"contractService": {
"subject": "test frequency open api",
"frequency": 260001,
"numberOfTimes": 1,
"agreementNote": null
},
"attachmentIds": []
}
curl --location --request POST 'https://api.gofive.co.th/v1/contract' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"contractNo": "CONT250600006",
"contractName": "test contract open api 3",
"customerCode": "L000308",
"contractType": "MA",
"contractValue": 2000,
"dateStart": "2025-06-18 00:00:00",
"dateEnd": "2026-06-18 21:37:51",
"dealNo": "string",
"note": null,
"owner": "UAT007",
"contractService": {
"subject": "test frequency open api",
"frequency": 260001,
"numberOfTimes": 1,
"agreementNote": null
},
"attachmentIds": []
}'
{
"status": {
"code": "1000",
"description": "Success"
},
"data": {
"contractNo": "string",
"contractType": 3204,
"statusId": 1602,
"contractName": "string",
"owner": "string",
"dateStart": "2025-06-18T00:00:00+0700",
"dateEnd": "2026-06-18T00:00:00+0700",
"contractValue": 2000.00,
"contractServices": [
{
"contractServiceId": 37881,
"frequency": 260001,
"subject": "string",
"numberOfTimes": 1,
"isActive": true
},
{
"contractServiceId": 37902,
"frequency": 260001,
"subject": "string",
"numberOfTimes": 1,
"isActive": true
},
{
"contractServiceId": 37903,
"frequency": 260001,
"subject": "string",
"numberOfTimes": 1,
"isActive": true
}
],
"attachments": [],
"contractTypeName": "string",
"customerCode": "string",
"customerName": "string",
"statusTypeId": 1,
"customerType": 0,
"dealNo": "string"
}
}