Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Auth Request
  • Auth Request
    • Auth Token
      POST
  • Document Management
    • Validate Documents
      • Validate Documents Json
    • Delivery Service
      • Delivery Service Resend
    • Create Document JSON
      POST
    • List Sellers
      GET
    • Create Tax Invoice
      POST
    • Update Tax Invoice
      PUT
    • Create Debit Note
      POST
    • Create Credit Note
      POST
    • Create Invoice
      POST
    • Create Receipt
      POST
    • Create Invoice and Tax Invoice
      POST
    • Create Receipt and Tax Invoice
      POST
    • Create Delivery Order and Tax Invoice
      POST
    • Create Abbreviated Tax Invoice
      POST
    • Create Receipt Abbreviated Tax Invoice
      POST
    • Document Raw Data
      POST
    • Download Document
      POST
    • Download Document By Id
      GET
    • Get Batch By Id
      GET
    • List Provinces
      GET
    • List Districts
      GET
    • List Sub Districts
      GET
    • List Posts
      GET
  1. Auth Request

Auth Token

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

Request

Header Params
Content-Type
string 
optional
Content type of request payload Value: - application/x-www-form-urlencoded
Example:
application/x-www-form-urlencoded
Ocp-Apim-Subscription-Key
string 
optional
รหัส subscription key ของลูกค้า
Example:
<Your-Subscription-Key>
Body Params application/x-www-form-urlencoded
grant_type
string 
optional
ประเภทของ Grant Types ใน OAuth 2.0 (client_credentials เท่านั้น)
Example:
client_credentials
client_id
string 
optional
API client_id respective to each partner obtained from partner onboarding process :api cliend_id ที่เกี่ยวข้องตามแต่ละpartnerที่ได้รับในขั้นตอนเริ่มต้น onboarding
Example:
<Your-Client-Id>
client_secret
string 
optional
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
ขอบเขต
Examples
{
  "access_token": "<access_token>",
  "expires_in": 3600,
  "token_type": "Bearer"
}
🟠400Bad Request
🟠401Unauthorized
🟠401User authentication required V2.
Next
Validate Documents Json
Built with