Picture

Get Sale Order

Picture

Request Header

Name
Type
Required
Description
Authorization
String
Required
OAuth token obtained after the user has provided consent and the authorized partner calls the /authorization/Connect/Token endpoint to retrieve this token
Ocp-Apim-Subscription-Key
String
Required

Request Parameter

Name
Type
Required
Description
Id
Integer
Required
รหัส sale order

Example Request

curl --location -g --request GET 'https://api.veniocrm.com/dev/v1/SalesOrders/{id}' \

--header 'Ocp-Apim-Subscription-Key;<Your Subscription-Key>' \

--header 'Authorization: <Your access_token>'

Download postman Collection

Response

Name
Type
Description
attachments
List<Attachment>
รายการสิ่งที่แนบมา
customer
Customer
ลูกค้า
userInfo
UserInfo
ผู้ใช้งาน
statusName
String
ชื่อสถานะ
isEdit
Boolean
แก้ไขหรือไม่
isDelete
Boolean
ลบหรือไม่
isApprove
Boolean
อนุมัติหรือไม่
total
Decimal
ราคารวม
buyer
BuyerSeller
ผู้ซื้อ
seller
BuyerSeller
ผู้ขาย
customerIds
List<Long>
รายการรหัสลูกค้า
currency
Currency
สกุลเงิน
subTotal
Decimal
ราคารวมทั้งหมด
saleOrderId
Long
รหัสรายการขาย
orderType
Integer
1=Sale Order, 2= Sale Report
saleOrderNo
String
หมายเลขรายการขาย
status
Integer
รหัสสถานะ
dateOrder
DateTime
เวลาของรายการ
customerId
Long
รหัสลูกค้า
isActive
Boolean
ใช้งานอยู่หรือไม่
remark
String
createdByUserId
String
รหัสผู้ขอเบิก
dateCreated
DateTime
เวลาสร้าง
waitingApproveByUserId
String
รหัสของผู้อนุมัติ
approvedByUserId
String
รหัสผู้อนุมัติหรือไม่อนุมัติ
modifiedByUserId
String
รหัสผู้แก้ไข
dateModified
DateTime
วันที่แก้ไข
grandTotal
Decimal
รวมราคาทั้งหมด
currencyCode
String
รหัสสกุลเงิน
vat
decimal
ราคา Vat
isShowContact
Boolean
แสดงการติดต่อ
saleOrderDetails
List<SaleOrderDetail>
รายการรายละเอียดสั่งขาย
saleOrderStates
List<SaleOrderState>
รายการสถานะสั่งขาย

Example Response

{

    "data": {

        "value": {

            "orderId": 0,

            "attachments": [

                {

                    "attachmentId": 0,

                    "refId": 0,

                    "type": 0,

                    "filename": "string",

                    "extension": "string",

                    "fileSize": 0,

                    "isActive": true,

                    "createdByUserId": "string",

                    "dateCreated": "2021-09-18T06:55:41.321Z",

                    "resourceUrl": "string",

                    "companyId": 0,

                    "isProcessed": true,

                    "url": "string",

                    "urlResponseUpload": "string",

                    "thumbnail": "string"

                }

            ],

            "customer": {},

            "userInfo": {},

            "statusName": "string",

            "isEdit": true,

            "isDelete": true,

            "isApprove": true,

            "reason": "string",

            "total": 0,

            "buyer": {

                "name": "string",

                "companyName": "string",

                "address": "string",

                "taxId": "string",

                "pictureLogo": "string"

            },

            "seller": {

                "name": "string",

                "companyName": "string",

                "address": "string",

                "taxId": "string",

                "pictureLogo": "string"

            },

            "customerIds": [

                0

            ],

            "currency": {

                "currencyCode": "string",

                "currencyName": "string",

                "currencySymbol": "string",

                "currencyNumber": 0,

                "dateCreated": "2021-09-18T06:55:41.321Z",

                "isActive": true,

                "currencyUnitTH": "string",

                "currencyUnitEN": "string",

                "currencySubUnitTH": "string",

                "currencySubUnitEN": "string"

            },

            "comments": [

                {

                    "activityLogId": 0,

                    "refId": 0,

                    "refGroupId": 0,

                    "refActivityLogId": 0,

                    "comment": "string",

                    "jsonLog": "string",

                    "logType": 0,

                    "status": 0,

                    "dateModified": "2021-09-18T06:55:41.321Z",

                    "dateCreated": "2021-09-18T06:55:41.321Z",

                    "createdByUserId": "string",

                    "modifiedByUserId": "string"

                }

            ],

            "isExcludeVat": true,

            "subTotal": 0,

            "saleOrderId": 0,

            "orderType": 0,

            "refNo": "string",

            "saleOrderNo": "string",

            "subject": "string",

            "status": 0,

            "dateOrder": "2021-09-18T06:55:41.321Z",

            "customerId": 0,

            "contactId": 0,

            "contactName": "string",

            "siteId": 0,

            "isActive": true,

            "remarkTemplateId": 0,

            "remark": "string",

            "createdByUserId": "string",

            "dateCreated": "2021-09-18T06:55:41.321Z",

            "waitingApproveByUserId": "string",

            "waitingApproveByRoleId": "string",

            "approvedByUserId": "string",

            "modifiedByUserId": "string",

            "dateModified": "2021-09-18T06:55:41.321Z",

            "dateApproved": "2021-09-18T06:55:41.321Z",

            "activityId": 0,

            "discount": 0,

            "discountPercentage": 0,

            "isDiscountPercentage": true,

            "discountNote": "string",

            "grandTotal": 0,

            "privateNote": "string",

            "currencyCode": "string",

            "shipToId": 0,

            "shipToAddress": "string",

            "shipToAddressName": "string",

            "shipToAddressType": 0,

            "creditTerm": 0,

            "paymentTermDescription": "string",

            "vatType": 0,

            "vat": 0,

            "totalVat": 0,

            "totalWht": 0,

            "note": "string",

            "saleOrderHeaderTemplateId": 0,

            "dealId": 0,

            "isShowContact": true,

            "refId": 0,

            "ownerUserId": "string",

            "saleOrderDetails": [

                {

                    "name": "string",

                    "unit": "string",

                    "totalQty": 0,

                    "saleOrderDetailId": 0,

                    "saleOrderId": 0,

                    "partId": 0,

                    "qty": 0,

                    "unitId": 0,

                    "unitName": "string",

                    "price": 0,

                    "discount": 0,

                    "discountPercentage": 0,

                    "isDiscountPercentage": true,

                    "vatTaxId": 0,

                    "vatTaxValue": 0,

                    "whtTaxId": 0,

                    "whtTaxValue": 0,

                    "totalPrice": 0,

                    "partCode": "string",

                    "itemName": "string",

                    "note": "string",

                    "dateCreated": "2021-09-18T06:55:41.321Z",

                    "seq": 0

                }

            ],

            "saleOrderStates": [

                {

                    "saleOrderStatesId": 0,

                    "saleOrderId": 0,

                    "statusId": 0,

                    "reason": "string",

                    "createdByUserId": "string",

                    "dateCreated": "2021-09-18T06:55:41.321Z",

                    "approveLevel": 0,

                    "seq": 0

                }

            ]

        },

        "formatters": [],

        "statusCode": 200

    },

    "statusCode": 1000,

    "httpStatusCode": 200

}

Response Codes

HTTP Status Code
Description
200
Get ข้อมูล Sale order สำเร็จ
400
รหัส Sale order ไม่ถูกต้อง
401
Unauthorized
403
Forbidden
© Copyright 2021 Gofive Co., Ltd. All right reserved.