- 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
Get Contract By No
Developing
GET
https://api.gofive.co.th/v1/contract/{no}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
no
string
required
Header Params
Content-Type
string
required
Example:
application/json
Ocp-Apim-Subscription-Key
string
required
Example:
<Your-Subscription-Key>
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 GET 'https://api.gofive.co.th/v1/contract/' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json'
Responses
🟢200Success
application/json
Body
status
object
required
code
string
required
description
string
required
data
object
required
contractNo
string
required
contractType
string
required
statusId
integer
required
Open = 1601
Active = 1602
Completed = 1603
Cancel = 1604
contractName
string
required
owner
string
required
dateStart
string
required
dateEnd
string
required
contractValue
integer
required
contractServices
array [object {5}]
required
attachments
array[object (AttachmentDto) {24}]
required
customerCode
string
required
customerName
string
required
customerType
integer
required
Prospect = 11200
Customer = 11300
Lead = 11100
Example
{
"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
}
}
🟠404Not Found
🟠401User authentication required V2.
Modified at 2025-06-24 14:05:19