Query a certain record detail

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

Query a certain record detail

interface address

Hostname/openapi/v1/stockTakingOpenApi/queryStockTakingItems

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

     "stockTakingId": 8422

}

parameter name

Is it necessary

Types of

Instructions

appId

Yes

String

KYBIO configured access credentials

stockTakingId

Yes

Int

Inventory record ID

Return result

{

     "status": "success",

     "messages": [],

     "data": [

          {

               "stockTakingId": 8422,

               "productUid": 242258285416665380,

               "oldStock": 66,

               "newStock": 30,

               "buyPrice": 2,

               "sellPrice": 15,

               "losePrice": 2,

               "takingStock": 10,

               "takingStockUnitUid": 1500947506799175400

          }

     ]

}

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

Business process error code, see error code table

stockTakingId

Int

Inventory record id

productUid

Long

Unique product identifier

oldStock

Int

Pre-count inventory (reference units)

newStock

Int

Inventory after inventory (base unit)

buyPrice

BigDecimal

Purchase price

sellPrice

BigDecimal

Selling price

losePrice

BigDecimal

Loss price

TakingStock

Int

Inventory inventory ==” is used in combination with inventory units

takingStockUnitUid

Long

Inventory unit

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