Mass search for product information using barcode

Created by Weebo Support, Modified on Thu, 16 Jun, 2022 at 11:48 PM by Weebo Support

Mass search for product information using barcode

interface address

hostname/openapi/v1/productOpenApi/queryProductBarcodes

Request header

User-Agent: openApi

Content-Type: application/json; charset=utf-8

Accept-encoding: gzip,deflate

Time-stamp: 1437528688233

Data-signature: BF706E6AC693BA3B1BABD32E6713431D

Request method

POST

Request body

{

     "appId": "abcdefghijklmn"

     "barcodes":["000000001","000000002"]

}

parameter name

Is it necessary

Types of

Instructions

appId

Yes

String

KYBIO configured access credentials

Barcodes

Yes

String[]

Product barcode list

Return result

{

     "status": "success",

     "messages": [],

     "data": {[

          {

          "uid": 1366004607492566649,

               "categoryUid": 813701230071893827,

               "name": "Jade Cabbage",

               "barcode": "1001",

               "buyPrice": 10000,

               "sellPrice": 15000,

               "stock": 0,

               "pinyin": "CYBC",

               "customerPrice": 15000,

               "isCustomerDiscount": 1,

               "description": "Dimensions: Length 18.7 centimeters, width 9.1 centimeters"

          }

          ]

     }

}

Field name

Types of

Instructions

Status

String

Whether the request is processed correctly, return success or error, case-insensitive

Messages

String[]

Processing result message

errorCode

Int

Operation process error code, see error code table

Data

List

Product entity information, field information reference 3. Query product information based on bar code

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article