Picture

Create Product

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
productCode
String
Required
รหัสสินค้า
groupId
Integer
Required
รหัสกลุ่ม
productName
String
Required
ชื่อสินค้า
qty
Decimal
Optional
จำนวน
price
Decimal
Optional
ราคา
unitId
Integer
Required
รหัสหน่วย
notes
String
Optional
รายละเอียดเพิ่มเติม
isForSale
Boolean
Required
ขายแล้วหรือไม่
isForInventory
Boolean
Required
มีสินค้าคงคลังหรือไม่

Example Request

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

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

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

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

--data-raw '{

    "productCode": "string",

    "groupId": 0,

    "productName": "string",

    "qty": 0,

    "price": 0,

    "unitId": 0,

    "notes": "string",

    "isForSale": true,

    "isForInventory": true

  }'

Download postman Collection

Response Codes

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