Picture

Get Product

Picture

Request Header

Name
Type
Required
Description
Ocp-Apim-Subscription-Key
String
Required

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

Request Parameter

Name
Type
Required
Description
id
Long
Required
id ของสินค้า

Example Request

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

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

--header 'Authorization: Bearer <Your Access Token>'

Download postman Collection

Response

Name
Type
Description
productCode
String
รหัสสินค้า
groupId
Integer
รหัสกลุ่ม
groupName
String
ชื่อกลุ่ม
productName
String
ชื่อสินค้า
qty
Decimal
จำนวน
price
Decimal
ราคาสินค้า
companyId
Integer
รหัสบริษัท
unitId
Integer
รหัสหน่วย
unitName
String
ชื่อหน่วย
notes
String
รายละเอียดเพิ่มเติม
isForSale
Boolean
ขายแล้วหรือยัง
isForInventory
Boolean
มีสินค้าคงคลัง
isActive
Boolean
ใช้งานอยู่หรือไม่

Example Response

{

    "data": {

        "value": {

            "productCode": "string",

            "groupId": 0,

            "groupName": "string",

            "productName": "string",

            "qty": 0,

            "price": 0,

            "companyId": 0,

            "unitId": 0,

            "unitName": "string",

            "notes": "string",

            "isForSale": true,

            "isForInventory": true,

            "isActive": true

          },

        "formatters": [],

        "statusCode": 200

    },

    "statusCode": 1000,

    "httpStatusCode": 200

}

Response Codes

HTTP Status Code
Business Code
Description
200
1000
Get ข้อมูลสินค้ามตาม id ที่กำหนดสำเร็จ
400
1102
id ไม่ถูกต้อง
401

-

access_token ผิดหรือหมดอายุ
403

-

Forbidden
© Copyright 2021 Gofive Co., Ltd. All right reserved.