Picture

Create Sales 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
Content-Type
String
Required
Content type of request payload
Value:
- application/json
Ocp-Apim-Subscription-Key
String
Required

Request Body

Name
Type
Required
Description
products
SalesOrderProduct[]
Required
รายการสินค้า
code
String
Required
รหัสสินค้า
qty
Integer
Optional
จำนวน
discount
Decimal
Optional
ลดราคา
customerCodes
String[]
Optional
รายการลูกค้า
dateOrder
DateTime
Optional
เวลาของรายการ
remark
String
Optional

Example Request

curl --location --request POST 'https: //api.veniocrm.com/dev/v1/SalesOrders' \

--header 'Authorization: Bearer <Your access_token>' \

--header 'Content-Type: application/json' \

--data-raw '{

"products": [

{

"code": "string",

"qty": 0,

"discount": 0

}

],

"customerCodes": [

"string"

],

"dateOrder": "2021-09-18T06:18:08.058Z",

"remark": "string"

}'

Download postman Collection

Response Codes

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