Skip to content

General data integration API solution

A unified API solution for partners to query data from Lenovo. Please understand the API access process before connecting.

Request address

EnvironmentURL
Testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/query/{data_category}/{biz_key}
Officialhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/query/{data_category}/{biz_key}

Public request parameters

Before calling, please obtain Token first

Parameter locationParameter nameDescriptionRemarks
Http MethodPOST
----
HeaderAuthorizationBearer + space + TokenBearer aaf0d4d6-c541-34cd-a4e0-03da1cc4019d
----
Url Pathdata_categoryData classificationRefer to the specific data interface URL
Url Pathbiz_keyBusiness keywordRefer to the specific data interface URL

Public request parameters

PositionNameRequiredTypeLengthDescription
BodyappNameString10Partner short name, optional
BodypageNoYString5Page number
BodypageSizeYString5Amount of data per page
BodycriteriaNMapQuery conditions

Public response parameters

LocationNameRequiredTypeFormatDescriptionExample
BodycodeYString---Status code"0" represents success, other failures can refer to the return code
BodymsgNString---Prompt messageIf it is not "0", an error message will be prompted
BodyresultNobject/array---data body

Header Authorization = Bearer aaf0d4d6-c541-34cd-a4e0-03da1cc4019d

  • Content-Type application/json
json
{
  "pageNo": 1,
  "pageSize": 10,
  "criteria": {
    "vendorCode": "0001000836",
    "lastModifiedDate": "2023-10-24 00:02:08"
  }
}
  • Response example
json
{
  "code": "0",
  "msg": "request success!",
  "result": {
    "total": 15,
    "data": [
      {
        "lpart_category": "PRODUCT",
        "odm": "LCFC",
        ....
      },
      ....
    ]
  }
}
  • Exception examples
json
{
  "code": "-1",
  "msg": "System error!",
  "result": null
}

General error code description

Parameter positionValueDescription
httpcode200Normal return result
httpcode401Token error/Signature error
httpcode404The accessed path does not exist
httpcode500Server error
body.code"0"Success
body.code"-1"System error