Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. SalesOrder
  • 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
    • 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
    • Convert Quotation To SalesOrder
    • Quotation Enquiry
    • Get a Quotation By QuotationNo
    • Cancel Quotation
  • SalesOrder
    • Create Or Update SalesOrder
      POST
    • Get a SalesOrders By Id
      GET
    • Get a SalesOrder By SalesOrderNo
      GET
    • Get Sale Order Attachment
      GET
    • Reject SaleOrder
      DELETE
    • Approve Sale Order
      PUT
    • Update SalesOrder Payment
      PUT
    • Update SalesOrder Tracking Number
      PUT
  • Webhooks
    • Webhook Payload
  • Task
    • CreateTask
  • Setting
    • Get HeaderTemplate
  • Chat
    • Post Send message
  • Storage
    • Upload files attachments
    • Get file attachments
    • Delete file attachments
  1. SalesOrder

Get a SalesOrders By Id

GET
https://api.gofive.co.th/v1/salesorders/{id}
ดึงข้อมูล saleorder โดย saleorderId

Request

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

Header Params

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 GET 'https://api.gofive.co.th/v1/salesorders/' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json'

Responses

🟢200OK
application/json
Body

Example
{
    "data": {
        "value": {
            "attachments": [],
            "customer": {
                "customerId": 1,
                "companyId": 1,
                "customerCode": "string",
                "customerName": "string",
                "type": 13002,
                "customerType": 11300,
                "isActive": true,
                "createdByUserId": "string",
                "dateCreated": "2022-11-28T13:41:11+0700",
                "modifiedByUserId": "string",
                "dateModified": "2023-01-16T15:12:52+0700",
                "customerGroupId": 1,
                "sourceOfLead": 110084,
                "classificationId": 1,
                "hasOwner": true,
                "customerOwnersStr": [
                    "string"
                ],
                "pictureUrl": "string",
                "addresses": [
                    {
                        "addressId": 1,
                        "customerId": 1,
                        "isActive": true,
                        "createdByUserId": "string",
                        "dateCreated": "2023-01-16T15:12:52+0700",
                        "location": "string",
                        "locationName": "string"
                    }
                ],
                "customerInterests": [
                    {
                        "customerId": 1,
                        "topicId": 1,
                        "isActive": true
                    }
                ],
                "customerClassification": {
                    "customerClassificationId": 1,
                    "customerClassificationName": "string",
                    "companyId": 1,
                    "isActive": true,
                    "createdByUserId": "string",
                    "dateCreated": "2019-11-28T15:51:04+0700",
                    "modifiedByUserId": "string",
                    "dateModified": "2020-04-11T19:47:35+0700"
                },
                "customerGroup": {
                    "customerGroupId": 1,
                    "companyId": 1,
                    "customerGroupName": "string",
                    "isActive": true,
                    "createdByUserId": "string",
                    "dateCreated": "2022-11-22T10:19:01+0700",
                    "modifiedByUserId": "string",
                    "dateModified": "2022-11-22T10:19:01+0700"
                }
            },
            "userInfo": {
                "userId": "string",
                "username": "string",
                "companyId": 1,
                "companyName": "string",
                "teamId": 1,
                "teamName": "string",
                "staffCode": "string",
                "title": "string",
                "firstname": "string",
                "lastname": "string",
                "fullname": "string",
                "position": "string",
                "email": "string",
                "phoneNumber": "string",
                "orgString": "string",
                "orgLevel": 1,
                "latitude": 0,
                "longitude": 0,
                "location": "string",
                "locationName": "string",
                "isActive": true,
                "createdByUserId": "string",
                "hasPicture": true,
                "dateCreated": "2018-11-05T10:13:59+0700",
                "dateModified": "2023-01-23T10:54:28+0700",
                "role": "string",
                "roleId": "string",
                "level": 0,
                "siteId": 1,
                "isAgreementPDPA": true,
                "dateAgreementPDPA": "2020-08-26T07:13:22+0700",
                "emailSubscription": 1,
                "identityUserId": "string",
                "uniqueName": "string",
                "inAppSubscription": 1,
                "userType": 1011
            },
            "statusName": "string",
            "reason": "string",
            "buyer": {
                "address": "string"
            },
            "seller": {
                "name": "string",
                "companyName": "string",
                "address": "string",
                "taxId": "string",
                "pictureLogo": "string"
            },
            "customerIds": [],
            "currency": {
                "currencyCode": "THB",
                "currencyName": "Baht",
                "currencySymbol": "฿",
                "currencyNumber": 1,
                "dateCreated": "2020-03-31T14:04:32+0700",
                "isActive": true,
                "currencyUnitTH": "บาท",
                "currencyUnitEN": "Baht",
                "currencySubUnitTH": "สตางค์",
                "currencySubUnitEN": "Satang"
            },
            "comments": [
                {
                    "activityLogId": 1,
                    "refId": 1,
                    "comment": "string",
                    "logType": 270003,
                    "status": 1050,
                    "dateCreated": "2023-01-23T15:56:52+0700",
                    "createdByUserId": "string"
                }
            ],
            "isExcludeVat": true,
            "subTotal": 0,
            "saleOrderId": 1,
            "orderType": 1,
            "saleOrderNo": "string",
            "subject": "string",
            "status": 903,
            "dateOrder": "2023-01-23T00:00:00+0700",
            "customerId": 1,
            "isActive": true,
            "remarkTemplateId": 0,
            "remark": "string",
            "createdByUserId": "string",
            "dateCreated": "2023-01-23T15:56:52+0700",
            "modifiedByUserId": "string",
            "dateModified": "2023-01-23T16:27:43+0700",
            "discount": 5,
            "discountNote": "string",
            "grandTotal": 0,
            "privateNote": "string",
            "currencyCode": "THB",
            "shipToAddress": "string",
            "shipToAddressType": 0,
            "paymentTermDescription": "string",
            "vatType": 170002,
            "vat": 0,
            "totalVat": 0,
            "totalWht": 0,
            "note": "string",
            "saleOrderHeaderTemplateId": 1,
            "isShowContact": true,
            "ownerUserId": "string",
            "saleOrderDetails": [
                {
                    "name": "string",
                    "saleOrderDetailId": 1,
                    "saleOrderId": 1,
                    "partId": 1,
                    "qty": 2,
                    "unitId": 1,
                    "price": 0,
                    "discount": 0,
                    "discountPercentage": 3,
                    "isDiscountPercentage": true,
                    "vatTaxId": -1,
                    "vatTaxValue": 0,
                    "whtTaxId": -1,
                    "whtTaxValue": 0,
                    "totalPrice": 0,
                    "partCode": "string",
                    "itemName": "string",
                    "note": "string",
                    "dateCreated": "2023-01-23T15:56:52+0700",
                    "isShipping": true
                }
            ],
            "saleOrderStates": [
                {
                    "saleOrderStatesId": 1,
                    "saleOrderId": 1,
                    "statusId": 905,
                    "createdByUserId": "string",
                    "dateCreated": "2023-01-23T15:56:52+0700",
                    "approveLevel": 0,
                    "seq": 0
                }
            ]
        },
        "statusCode": 200
    },
    "statusCode": 1000,
    "httpStatusCode": 200
}
🟠401Unauthorized
🟠403Forbidden
🟢200Bad Request
🟠401User authentication required V2.
Modified at 2025-06-04 15:28:01
Previous
Create Or Update SalesOrder
Next
Get a SalesOrder By SalesOrderNo
Built with