Picture

Product Filter

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
ProductType
Required
Product = 1031,Bundle = 1032
productFor
String
Optional
รายการรหัสกลุ่ม
typeFor
Integer
Optional
null=all,1=For Sales,2=For Inventory,None
productGroupIds
Integer[]
Optional
รายการรหัสกลุ่มสินค้า
status
Boolean[]
Optional
รายการสถานะ
skip
Integer
Optional
ข้าม
take
Integer
Optional
smartSearch
String
Optional
orderBy
String
Optional
จัดเรียงตาม

Example Request

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

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

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

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

--data-raw '{

    "productFor": "string",

    "typeFor": 0,

    "productType": 1031,

    "productGroupIds": [

        0

    ],

    "status": [

        true

    ],

    "skip": 0,

    "take": 0,

    "smartSearch": "string",

    "orderBy": "string"

}'

Download postman Collection

Response

Name
Type
Description
partId
Long
รหัสสินค้า
partTypeId
Integer
รหัสประเภทสินค้า
partName
String
ชื่อสินค้า
qty
Decimal
จำนวน
price
Decimal
ราคา
companyId
Integer
รหัสบริษัท
unit
String
หน่วย
name
String
ชื่อ
isActive
Boolean
ใช้งานอยู่หรือไม่
partTypeName
String
ชื่อประเภทสินค้า
partCode
String
รหัสสินค้า
notes
String
รายละเอียดเพิ่มเติม
productCode
Integer
รหัสสินค้า
isForInventory
Boolean
สำหรับสินค้าคงคลัง
isForSales
Boolean
มีไว้สำหรับขาย
isForPurchase
Boolean
สำหรับการซื้อ
unitId
Integer
รหัสหน่วย
productType
Integer
ประเภทสินค้า
productValues
List<ProductValue>
รายการค่า Product
attachments
List<Attachment>
รายการเอกสารแนบ

Example Response

{

    "data": {

        "value": [

            {

              "partId": 0,

              "partTypeId": 0,

              "partName": "string",

              "qty": 0,

              "price": 0,

              "companyId": 0,

              "unit": "string",

              "name": "string",

              "isActive": true,

              "partTypeName": "string",

              "partCode": "string",

              "notes": "string",

              "productCode": 0,

              "isForInventory": true,

              "isForSales": true,

              "isForPurchase": true,

              "unitId": 0,

              "productType": 0,

              "productValues": [

                {

                  "itemId": 0,

                  "productPropertyId": 0,

                  "productPropertyValueId": 0,

                  "propertyValue": "string"

                }

              ],

              "attachments": [

                {

                  "attachmentId": 0,

                  "refId": 0,

                  "type": 0,

                  "filename": "string",

                  "extension": "string",

                  "fileSize": 0,

                  "isActive": true,

                  "createdByUserId": "string",

                  "dateCreated": "2021-09-18T04:07:13.639Z",

                  "resourceUrl": "string",

                  "companyId": 0,

                  "isProcessed": true,

                  "url": "string",

                  "urlResponseUpload": "string",

                  "thumbnail": "string"

                }

              ]

            }

          ],

        "formatters": [],

        "statusCode": 200

    },

    "statusCode": 1000,

    "httpStatusCode": 200

}

Response Codes

HTTP Status Code
Description
200
Success
400
ข้อมูล Request ไม่ถูกต้อง
401
Unauthorized
403
Forbidden
© Copyright 2021 Gofive Co., Ltd. All right reserved.