Picture

Product Enquiry

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
productType
Integer
Required
ประเภทสินค้า All = 0, ForSales = 1, ForSalesOnly = 2,
ForInventory = 3,ForInventoryOnly = 4
groupIds
Integer[]
Optional
รายการรหัสกลุ่ม
statuses
Boolean[]
Optional
รายการสถานะ
pageLength
Integer
Required
ความยาวของหน้า
skip
Integer
Optional
ข้าม
orderBy
String
Optional
จัดเรียงตาม
keyword
String
Optional
คำสำคัญ

Example Request

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

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

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

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

--data-raw '{

    "productType": 0,

    "groupIds": [

        0

    ],

    "statuses": [

        true

    ],

    "pageLength": 0,

    "skip": 0,

    "orderBy": "string",

    "keyword": "string"

}'

Download postman Collection

Response Codes

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