Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Authentication API
  • Introduction
  • Activity
    • Get a Activity
      GET
    • Activities Enquiry
      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
  • Case
    • Add Case
      POST
    • Edit Case by CaseNo
      PUT
    • Get Case by CaseNo
      GET
    • Get Case Categories
      GET
  • 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
  1. Authentication API

Authorization

POST
https://api.gofive.co.th/authorization/connect/token
สำหรับขอ access token

Request

Header Params
Content-Type
string 
required
Content type of request payload Value: - application/x-www-form-urlencoded
Example:
application/x-www-form-urlencoded
Ocp-Apim-Subscription-Key
string 
required
รหัส subscription key ของลูกค้า
Example:
<Your-Subscription-Key>
Body Params application/x-www-form-urlencoded
grant_type
string 
required
ประเภทของ Grant Types ใน OAuth 2.0 (client_credentials เท่านั้น)
Example:
client_credentials
client_id
string 
required
API client_id respective to each partner obtained from partner onboarding process :api cliend_id ที่เกี่ยวข้องตามแต่ละpartnerที่ได้รับในขั้นตอนเริ่มต้น onboarding
Example:
<Your-Client-Id>
client_secret
string 
required
API client_secret obtained from partner onboarding process: api cliend_secret ที่ได้รับจาก partnerในขั้นตอนเริ่มต้น onboarding
Example:
<Your-Client-Secret>

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/authorization/connect/token' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=<Your-Client-Id>' \
--data-urlencode 'client_secret=<Your-Client-Secret>'

Responses

🟢200OK
application/json
Body
access_token
string 
required
access token
token_type
string 
required
ประเภท token
expires_in
integer 
required
ระยะเวลาของ token
scope
string 
required
ขอบเขต
Example
{
  "access_token": "string",
  "expires_in": 1,
  "token_type": "Bearer",
  "scope": "string"
}
🟠401Unauthorized
🟠400Bad Request
Previous
Activities Enquiry
Next
Create or Update customer
Built with