Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Quotation
  • Introduction
  • Activity
    • Activities Enquiry
      POST
    • Get a Activity By Id
      GET
    • Get a Activity By No
      GET
    • Get Key Activities
      GET
    • Create or Update Activity
      POST
  • Authentication API
    • Authorization
      POST
  • Customer
    • Create or Update customer
      POST
    • Get a Customer By CustomerCode
      GET
    • Customers Enquiry
      POST
    • Get a Customer By CustomerName
      GET
    • Create Customer Satisfaction
      POST
    • Add Customer Event
      POST
    • Get Customer Events by Customer Code
      GET
    • Edit Customer Event
      PUT
    • Delete Customer Event
      DELETE
    • Get Customer Event Types
      GET
    • Get file categories
      GET
    • Attach files category
      POST
  • Case
    • Add Case
      POST
    • Edit Case by CaseNo
      PUT
    • Get Case by CaseNo
      GET
    • Get Case Categories
      GET
  • Contract
    • Get Contract By No
    • Get Contract Types
    • Get Contract Templates
    • Create or Update Contract
    • Create or Update Contract Service Agreement
    • Send Contract Document
  • Deal
    • Create Deal
    • Update Deal
    • Deal Enquiry
    • Get Deal
    • Get Deal Board
    • Get Deal Stage
    • Get Deal Interest
    • Get DealLabel
    • Get Deal Missed Reason Categories
  • Employee
    • Employees Enquiry
    • Get a Employee
  • Expense
    • Create Expense
    • Update Expense
    • Expense Enquiry
    • Get a 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
    • Create Update Quotation
      POST
    • Convert Quotation To SalesOrder
      POST
    • Quotation Enquiry
      POST
    • Get a Quotation By QuotationNo
      GET
    • Cancel Quotation
      POST
  • SalesOrder
    • Create Or Update SalesOrder
    • Get a SalesOrders By Id
    • Get a SalesOrder By SalesOrderNo
    • Get Sale Order Attachment
    • Reject SaleOrder
    • Approve Sale Order
    • Update SalesOrder Payment
    • Update SalesOrder Tracking Number
  • Webhooks
    • Webhook Payload
  • Task
    • CreateTask
  • Setting
    • Get HeaderTemplate
  • Chat
    • Post Send message
  • Storage
    • Upload files attachments
    • Get file attachments
    • Delete file attachments
  1. Quotation

Create Update Quotation

POST
https://api.gofive.co.th/v2/quotation
เพิ่ม แก้ไขข้อมูลใบเสนอราคา ที่อยู่ในสถานะ ร่าง รออนุมัติ และรอส่ง

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Example
{
            "quotationSubject":"<string> ",//ชื่อหัวข้อใบเสนอราคา required **จำเป็นต้องใส่มา 
            "ReferenceNo": "<string>",//เลขอ้างอิง
            "quotationNo":"<string>",//รหัสใบเสนอราคา  required กรณีแก้ไข ถ้าสร้างไม่ใส่ ต้องเป็นรหัสใบเสนอราคาที่อยู่ในบริษัท
            "quotationDate": "<datetime>",//วันที่สร้างใบเสนอราคา  required **จำเป็นต้องใส่มา
            "quotationValidUntil": "<datetime>",//วันที่สิ้นสุดใบเสนอราคา  required **จำเป็นต้องใส่มา
            "customerCode": "<string>",//รหัสลูกค้า  required **จำเป็นต้องใส่มา
            "contactName": "<string>",//ชื่อผู้ติดต่อ  optional
            "recipientName": "<string>",//ชื่อผู้รับ  optional
            "recipientAddress": "<string>",//ที่อยู่ผู้รับ  optional
            "quotationDetails": [
                //รายการสินค้า
                {
                    "productCode": "<string>",//รหัสสินค้า  required **จำเป็นต้องใส่มา ต้องเป็นรหัสที่มีอยู่ในบริษัทและactive
                    "productName": "<string>",//ชื่อสินค้า  optional
                    "price":0.0,//ราคาาำหนดต่อหน่วย  optional <decimal>
                    "qty":0.0,//จำนวนสินค้า required **จำเป็นต้องใส่มา <decimal>
                    "productUnitName": "<string>",//หน่วยสินค้า  optional
                    "productDescription": "<string>",//รายละเอียดสินค้า  optional
                    "discountValue": 0.0,//ส่วนลดสินค้าถ้าหากประเภทสินค้าเป็น%คิดเป็น%  ถ้าไม่ใช่คิดเป็นบาท  optional ห้ามใส่เกิน100%หรือมากกว่ายอดรวมสินค้า <decimal>
                    "vatTaxValue": 0.0,//ภาษีมูลค่าเพิ่ม  required ห้ามใส่เกิน1000 <decimal>
                    "discountType":false,//ประเภทส่วนลด ถ้าtrueเป็น% ไม่ใช่เป็นบาท  optional <bool>
                    "whtTaxValue":0.0//ภาษี ณ ที่จ่าย ต้องเป็นภาษี ณ ที่จ่ายที่มีอยู่ในบริษัทและactiveอยู่ <decimal>
              
                }
            ],
            "currencyCode": "<string>",// สกุลเงิน เช่น "THB" , "USD" [ถ้าไม่ส่ง หรือ null ระบบจะหยิบ System Currency ของ Company นั้นๆให้] optional
            "vatCalculation": true,//การคำนวณภาษีมูลค่าเพิ่ม  required **จำเป็นต้องใส่มา <bool>
            "discountName": "<string>",//ชื่อส่วนลด  optional
            "discountType": false,//ประเภทส่วนลด ถ้าtrueเป็น% ไม่ใช่เป็นบาท  optional <bool>
            "discountValue": 0.0,//ส่วนลดสินค้าถ้าหากประเภทสินค้าเป็น%คิดเป็น% ถ้าไม่ใช่คิดเป็นบาท  optional ห้ามใส่เกิน100%หรือมากกว่ายอดรวมสินค้า <decimal>
            "paymentTerm": "<string>",//เงื่อนไขการชำระเงิน  optional
            "remark": "<string>",//หมายเหตุใบเสนอราคา  optional
            "quotationNote": "<string>",//รายละเอียดเพิ่มเติม  optional
            "staffCode": "<string>",//รหัสพนักงาน  required **จำเป็นต้องใส่มา ต้องเป็นรหัสที่มีอยู่ในบริษัทและactive
            "quotationStatus":1
            ,//สถานะใบเสนอราคา required **จำเป็นต้องใส่มา สามารถสร้างสถานะเป็น 1 darf ใบร่าง, 2 waiting approve รอให้อนุมัติ, 3 pending sent รอส่ง
            "headerTemplate":1 
            //หัวกระดาษในpdf <integer>
        
        }

Request Code 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/v2/quotation' \
--header 'Ocp-Apim-Subscription-Key: <Your subscription-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
            "quotationSubject":"<string> ",//ชื่อหัวข้อใบเสนอราคา required **จำเป็นต้องใส่มา 
            "ReferenceNo": "<string>",//เลขอ้างอิง
            "quotationNo":"<string>",//รหัสใบเสนอราคา  required กรณีแก้ไข ถ้าสร้างไม่ใส่ ต้องเป็นรหัสใบเสนอราคาที่อยู่ในบริษัท
            "quotationDate": "<datetime>",//วันที่สร้างใบเสนอราคา  required **จำเป็นต้องใส่มา
            "quotationValidUntil": "<datetime>",//วันที่สิ้นสุดใบเสนอราคา  required **จำเป็นต้องใส่มา
            "customerCode": "<string>",//รหัสลูกค้า  required **จำเป็นต้องใส่มา
            "contactName": "<string>",//ชื่อผู้ติดต่อ  optional
            "recipientName": "<string>",//ชื่อผู้รับ  optional
            "recipientAddress": "<string>",//ที่อยู่ผู้รับ  optional
            "quotationDetails": [
                //รายการสินค้า
                {
                    "productCode": "<string>",//รหัสสินค้า  required **จำเป็นต้องใส่มา ต้องเป็นรหัสที่มีอยู่ในบริษัทและactive
                    "productName": "<string>",//ชื่อสินค้า  optional
                    "price":0.0,//ราคาาำหนดต่อหน่วย  optional <decimal>
                    "qty":0.0,//จำนวนสินค้า required **จำเป็นต้องใส่มา <decimal>
                    "productUnitName": "<string>",//หน่วยสินค้า  optional
                    "productDescription": "<string>",//รายละเอียดสินค้า  optional
                    "discountValue": 0.0,//ส่วนลดสินค้าถ้าหากประเภทสินค้าเป็น%คิดเป็น%  ถ้าไม่ใช่คิดเป็นบาท  optional ห้ามใส่เกิน100%หรือมากกว่ายอดรวมสินค้า <decimal>
                    "vatTaxValue": 0.0,//ภาษีมูลค่าเพิ่ม  required ห้ามใส่เกิน1000 <decimal>
                    "discountType":false,//ประเภทส่วนลด ถ้าtrueเป็น% ไม่ใช่เป็นบาท  optional <bool>
                    "whtTaxValue":0.0//ภาษี ณ ที่จ่าย ต้องเป็นภาษี ณ ที่จ่ายที่มีอยู่ในบริษัทและactiveอยู่ <decimal>
              
                }
            ],
            "currencyCode": "<string>",// สกุลเงิน เช่น "THB" , "USD" [ถ้าไม่ส่ง หรือ null ระบบจะหยิบ System Currency ของ Company นั้นๆให้] optional
            "vatCalculation": true,//การคำนวณภาษีมูลค่าเพิ่ม  required **จำเป็นต้องใส่มา <bool>
            "discountName": "<string>",//ชื่อส่วนลด  optional
            "discountType": false,//ประเภทส่วนลด ถ้าtrueเป็น% ไม่ใช่เป็นบาท  optional <bool>
            "discountValue": 0.0,//ส่วนลดสินค้าถ้าหากประเภทสินค้าเป็น%คิดเป็น% ถ้าไม่ใช่คิดเป็นบาท  optional ห้ามใส่เกิน100%หรือมากกว่ายอดรวมสินค้า <decimal>
            "paymentTerm": "<string>",//เงื่อนไขการชำระเงิน  optional
            "remark": "<string>",//หมายเหตุใบเสนอราคา  optional
            "quotationNote": "<string>",//รายละเอียดเพิ่มเติม  optional
            "staffCode": "<string>",//รหัสพนักงาน  required **จำเป็นต้องใส่มา ต้องเป็นรหัสที่มีอยู่ในบริษัทและactive
            "quotationStatus":1
            ,//สถานะใบเสนอราคา required **จำเป็นต้องใส่มา สามารถสร้างสถานะเป็น 1 darf ใบร่าง, 2 waiting approve รอให้อนุมัติ, 3 pending sent รอส่ง
            "headerTemplate":1 
            //หัวกระดาษในpdf <integer>
        
        }'

Responses

🟢200Created
application/json
Body

Example
{
    "status": {
        "code": "1000",
        "description": "Success"
    },
    "data": [
        {
            "quotationSubject": "string",
            "quotationNo": "string",
            "quotationDate": "2022-12-16T00:00:00+0700",
            "quotationValidUntil": "2023-12-16T00:00:00+0700",
            "customerCode": "string",
            "contactName": "string",
            "recipientName": "string",
            "recipientAddress": "string",
            "quotationDetails": [
                {
                    "productCode": "string",
                    "productName": "string",
                    "price": 10,
                    "qty": 6,
                    "productUnitName": "string",
                    "productDescription": "string",
                    "discountValue": 1,
                    "vatTaxValue": 3,
                    "totalPrice": 5
                }
            ],
            "currencyCode": "THB",
            "vatCalculation": true,
            "discountName": "string",
            "discountType": false,
            "discountValue": 7,
            "paymentTerm": "string",
            "remark": "string",
            "quotationNote": "string",
            "staffCode": "string",
            "quotationStatus": 3,
            "subTotal": 59,
            "subTotalWithDiscount": 52,
            "totalVat": 1.56,
            "grandTotal": 53.56
        }
    ]
}
🟢200Updated
🟠400Bad Request
🟠401Unauthorized
Modified at 2023-02-08 06:40:48
Previous
/v1/products/units Copy
Next
Convert Quotation To SalesOrder
Built with