- Introduction
- Activity
- Authentication API
- Customer
- Case
- Contract
- Deal
- Employee
- Expense
- Product
- Create Or Update Products
- Get a Product Ticket
- Get Products With Take & Status
- Get a Product by ProductCode
- Get Product Groups
- Get Product Properties
- Get Products By Filter
- Verify Serial Number
- /v3/Products/serials/status
- Create or Update Codeguard Products
- Update Product Stock
- /v1/products/units
- /v1/products/units Copy
- Quotation
- SalesOrder
- Webhooks
- Task
- Setting
- Chat
Create or Update Contract Service Agreement
Developing
POST
https://api.gofive.co.th/v1/contract/service-agreement
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Content-Type
string
required
Example:
application/json
Ocp-Apim-Subscription-Key
string
required
Example:
<Your-Subscription-Key>
Body Params application/json
contractNo
string
required
contractServiceId
integer | null
optional
frequency
integer
required
Yearly = 260001
Quarterly = 260002
Monthly = 260003
Weekly = 260004
Custom = 260005
subject
string
required
numberOfTimes
integer
required
agreementNote
string | null
optional
Example
{
"contractNo": "string",
"contractServiceId": 37881,
"subject": "string",
"frequency": 260001,
"numberOfTimes": 1,
"agreementNote": null
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gofive.co.th/v1/contract/service-agreement' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"contractNo": "string",
"contractServiceId": 37881,
"subject": "string",
"frequency": 260001,
"numberOfTimes": 1,
"agreementNote": null
}'
Responses
🟢200Success
application/json
Body
data
object (ContractServiceDto)
required
contractNo
string
required
contractServiceId
integer
required
frequency
integer
required
Yearly = 260001
Quarterly = 260002
Monthly = 260003
Weekly = 260004
Custom = 260005
subject
string
required
numberOfTimes
integer
required
agreementNote
string | null
optional
activityServices
array[object (ActivityServiceDto) {3}]
required
statusCode
integer
required
httpStatusCode
integer
required
Example
{
"status": {
"code": "1000",
"description": "Success"
},
"data": {
"contractServiceId": 37923,
"contractNo": "string",
"frequency": 260001,
"subject": "string",
"numberOfTimes": 1,
"activityServices": [
{
"title": "#1 string",
"dateStart": "2025-06-18T00:00:00+0700",
"dateEnd": "2026-06-17T00:00:00+0700"
},
{
"title": "#2 string",
"dateStart": "2026-06-18T00:00:00+0700",
"dateEnd": "2026-06-18T00:00:00+0700"
}
]
}
}
🟠400Bad Request
Modified at 2025-06-24 14:05:12