interface address | hostname/openapi/v1/productOpenApi/updateProductInfo | ||
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", "productInfo":{ "uid": 1366004607492564649, "buyPrice": 10000, "sellPrice": 15000, "stock": 100, "customerPrice": 15000, "isCustomerDiscount": 1 } } | ||
parameter name | Is it necessary | Types of | Instructions |
appId | Yes | String | KYBIO configured access credentials |
productInfo | Yes | Json | |
Uid | Yes | Long | The unique identifier of the product in KYBIO system |
buyPrice | no | BigDecimal | Purchase price, blank field does not affect operation |
sellPrice | no | BigDecimal | Sales price, blank field does not affect operation |
Stock | no | BigDecimal | Inventory, blank field does not affect operation |
customerPrice | no | BigDecimal | Member price, blank field does not affect operation |
isCustomerDiscount | no | Integer | 1 means use member discount to calculate merchandise price, 0 means use merchandise member price |
Return result | { "status": "success", "messages": [], "errorCode":null } | ||
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 |
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article