- Introduction
- Activity
- Authentication API
- Customer
- Case
- 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
Quotation Enquiry
POST
https://api.gofive.co.th/v1/quotation/enquiry
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
take
integer
required
skip
integer | null
optional
quotationNo
string | null
optional
quotationStatus
integer | null
optional
1 = ร่าง
2= รออนุมัติ
3 = รอส่ง
4 = ส่งแล้ว
5 = เสร็จสิ้น
6 = ปฏิเสธ
7 = ยกเลิก
staffCode
string | null
optional
customerCode
string | null
optional
quotationDate
string | null
optional
Example
{
"quotationDate" : "<datetime>",//วันที่สร้างใบเสนอราคา
"staffCode" : "<string>",//รหัสพนักงานขาย
"quotationNo" : "<string>",//รหัสใบเสนอราคา
"customerCode" : "<string>", ///รหัสลูกค้า
"quotationStatus" :2,//สถานะใบเสนอราคา <integer>
"take" : 5,//จำนวนรายการที่อยากแสดง required **จำเป็นต้องใส่<decimal>
"skip" : 0//จำนวนรายการที่อยากข้าม <decimal>
}
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/quotation/enquiry' \
--header 'Ocp-Apim-Subscription-Key: <Your Subscription-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"quotationDate" : "<datetime>",//วันที่สร้างใบเสนอราคา
"staffCode" : "<string>",//รหัสพนักงานขาย
"quotationNo" : "<string>",//รหัสใบเสนอราคา
"customerCode" : "<string>", ///รหัสลูกค้า
"quotationStatus" :2,//สถานะใบเสนอราคา <integer>
"take" : 5,//จำนวนรายการที่อยากแสดง required **จำเป็นต้องใส่<decimal>
"skip" : 0//จำนวนรายการที่อยากข้าม <decimal>
}'
Responses
🟢200OK
application/json
Body
status
object
required
code
string
required
สถานะของ Business Code ถ้า
Success = 1000
Error 1 ตัว = 4001
Error มากกว่า 1 ตัว = 4002
หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล
description
string
required
data
array [object {23}]
required
quotationSubject
string
required
quotationDate
string
required
quotationValidUntil
string
required
quotationStatus
integer
required
1 = ร่าง
2= รออนุมัติ
3 = รอส่ง
4 = ส่งแล้ว
5 = เสร็จสิ้น
6 = ปฏิเสธ
7 = ยกเลิก
staffCode
string
required
customerCode
string
required
vatCalculation
boolean
required
quotationDetails
array [object {11}]
required
currencyCode
string
required
discountName
string | null
optional
discountType
boolean | null
optional
True คือคิดเป็น %,
False คิดเป็นบาท
discountValue
number | null
optional
quotationNote
string | null
optional
paymentTerm
string | null
optional
contactName
string | null
optional
recipientName
string | null
optional
recipientAddress
string | null
optional
subTotal
number
required
subTotalWithDiscount
number | null
optional
totalVat
number
required
grandTotal
number
required
remark
string | null
optional
headerTemplateId
integer | null
optional
Example
{
"status": {
"code": "1000",
"description": "Success"
},
"data": [
{
"quotationSubject": "Bff test create quotation",
"quotationNo": "DRAFT2212000100",
"quotationDate": "2022-12-16T00:00:00+0700",
"quotationValidUntil": "2023-12-16T00:00:00+0700",
"customerCode": "daisy",
"recipientName": "Mook",
"recipientAddress": "Chanthaburi",
"quotationDetails": [
{
"productCode": "ROG001",
"productName": "ROG Phone 6 Pro [Default]",
"price": 5000,
"qty": 6,
"productDescription": "Good product",
"discountValue": 1,
"discountType": true,
"vatTaxValue": 3,
"whtTaxValue": 1,
"totalPrice": 29700
}
],
"currencyCode": "THB",
"vatCalculation": true,
"discountName": "just discount test",
"discountType": true,
"discountValue": 7,
"paymentTerm": "1 month test",
"remark": "Remember this for test",
"quotationNote": "test 13dec2022",
"staffCode": "Admin01",
"quotationStatus": 1,
"subTotal": 29700,
"subTotalWithDiscount": 27621,
"totalVat": 828.63,
"grandTotal": 28449.63
}
]
}
🟠401Unauthorized
🟢200Bad Request
Modified at 2023-02-07 08:44:37