Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Deal
  • 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
    • Edit Case by CaseNo
    • Get Case by CaseNo
    • Get Case Categories
  • 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
      POST
    • Update Deal
      PUT
    • Deal Enquiry
      POST
    • Get Deal
      GET
    • Get Deal Board
      GET
    • Get Deal Stage
      GET
    • Get Deal Interest
      GET
    • Get DealLabel
      GET
    • Get Deal Missed Reason Categories
      GET
  • 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
    • Convert Quotation To SalesOrder
    • Quotation Enquiry
    • Get a Quotation By QuotationNo
    • Cancel Quotation
  • 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. Deal

Create Deal

POST
https://api.gofive.co.th/v1/deals
เพิ่ม แก้ไขอัพเดท deal

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
{
    "customerCodes": [
        "string"
    ],
    "boardId": 34628319,
    "dealName": "dealName",
    "dealQuantity": 91493369,
    "dealQuantityUnit": "unit",
    "dealValue": 10,
    "dealInterests": [
        1001
    ],
    "dealLabels": [
        1002
    ],
    "dealDate": "2023-02-07T16:51:40+0700",
    "expectedCloseDate": "2023-02-08T16:51:40+0700",
    "note": "string",
    "assignTo": "staff01",
    "participantCodes": [
        "staff02"
    ],
    "dateFollowUp": "2023-02-08T16:51:40+0700",
    "followUpNotes": "followUp"
}

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/v1/deals' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customerCodes": [
        "string"
    ],
    "boardId": 34628319,
    "dealName": "dealName",
    "dealQuantity": 91493369,
    "dealQuantityUnit": "unit",
    "dealValue": 10,
    "dealInterests": [
        1001
    ],
    "dealLabels": [
        1002
    ],
    "dealDate": "2023-02-07T16:51:40+0700",
    "expectedCloseDate": "2023-02-08T16:51:40+0700",
    "note": "string",
    "assignTo": "staff01",
    "participantCodes": [
        "staff02"
    ],
    "dateFollowUp": "2023-02-08T16:51:40+0700",
    "followUpNotes": "followUp"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "data": {
        "value": [
            {
                "dealsId": 1,
                "customerId": 1,
                "dealNo": "string",
                "dealsName": "string",
                "dealsValue": 0,
                "statusId": 702,
                "dealStageId": 0,
                "dealsDate": "string",
                "expectedCloseDate": "2023-02-24T00:00:00+0700",
                "probability": 0,
                "notes": "string",
                "isActive": true,
                "boardId": 1,
                "dateCreated": "2023-01-26T10:06:27+0700",
                "createByUserId": "string",
                "dealsInterests": [
                    {
                        "dealsId": 1,
                        "topicId": 1,
                        "isActive": true
                    }
                ],
                "dealsLabels": [
                    {
                        "dealsId": 1,
                        "dealLabelId": 1
                    }
                ],
                "dateFollowUp": "2023-02-12T00:00:00+0700",
                "userId": [
                    "string"
                ],
                "participantUserIds": []
            }
        ],
        "statusCode": 200
    },
    "statusCode": 1000,
    "httpStatusCode": 200
}
🟠401Unauthorized
🟠403Forbidden
🔴500Server Error
🟢200Bad Request
🟠400Field Required
🟠401User authentication required V2.
Modified at 2025-04-21 08:04:35
Previous
Send Contract Document
Next
Update Deal
Built with