Search for product information using barcode

Created by Weebo Support, Modified on Fri, 17 Jun, 2022 at 12:48 AM by Weebo Support

Search for product information using barcode

interface address

hostname/openapi/v1/productOpenApi/queryProductByBarcode

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",

     "barcode":"1001" {

}

parameter name

Is it necessary

Types of

Instructions

appId

Yes

String

KYBIO configured access credentials

Barcode

Yes

String

barcode

Return result

{

     "status": "success",

     "messages": [],

     "data":{

          "uid": 1366004607492564649,

          "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, thickness 5.07 centimeters",

          "attribute1":"y",

          "attribute2":"",

          "attribute3":"",

          "attribute4":""

     }

}

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

Json

Product entity information

Uid

Long

Unique identifier of Product entity

categoryUid

Long

The unique identifier of the product category

Name

String

product name

Barcode

String

Product barcode

buyPrice

BigDecimal

Product cost price

sellPrice

BigDecimal

Product selling price

Stock

BigDecimal

Product stocks

Pinyin

String

Product Name Pinyin

customerPrice

BigDecimal

Product member price

isCustomerDiscount

Integer

Whether to open membership discount support, 0 or null does not open; 1 to open

Description

String [length 6000]

product description

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