ODM PO Data Integration Report
The following interfaces apply to General Data Query
Request URL
- API
获取token接口:
Environment | URL (TBD) |
---|---|
Test | https://apihub-test.lenovo.com/token |
Prod |
Request Parameters
field | Type | required | description | length | |
---|---|---|---|---|---|
body | |||||
username | String | Y | |||
password | String | Y | |||
header | |||||
X-API-KEY | String | Y |
参数值
Response Example
json
{
"access_token": "*****",
"expires_in": 300,
"refresh_expires_in": 1800,
"refresh_token": "********",
"token_type": "Bearer",
"not-before-policy": 0,
"session_state": "********",
"scope": "email profile"
}
Request URL
Environment | URL (TBD) |
---|---|
Test | https://apihub-test.lenovo.com/uat/v1.0/supply-chain/odm_po_data/sync_odm_data/odm_po_data/sync_odm_data |
Prod |
Request Parameters
field | Type | required | description | length | |
---|---|---|---|---|---|
header | |||||
Authorization | String | Y | 200 | ||
X-API-KEY | String | Y | 200 | ||
body | |||||
id | String | Y | 50 | ||
mainPoNo | String | Y | 50 | ||
mainPoLine | String | Y | 20 | ||
bu | String | N | 10 | ||
family | String | N | 100 | ||
po | String | Y | 20 | ||
poLine | String | Y | 20 | ||
lenovoPn | String | Y | 20 | ||
odmSupplierName | String | N | 200 | ||
site | String | N | 10 | ||
commodity | String | N | 200 | ||
itemgroup | String | N | 200 | ||
priorityCode | Integer | N | |||
orderType | String | N | 10 | ||
orderTypeDesc | String | N | 200 | ||
uom | String | N | 200 | ||
mot | String | N | 10 | ||
leadTime | Integer | N | |||
poQty | Double | N | |||
status | String | N | |||
shipDate | Date | N | |||
asnNo | String | N | 40 | ||
deliveryNote | String | N | 20 | ||
requestEtd | Date | N | |||
requestEta | Date | N | |||
confirmedEtd | Date | N | |||
confirmedEta | Date | N | |||
systemEtd | Date | N | |||
systemEta | Date | N | |||
newEtd | Date | N | |||
newEta | Date | N | |||
incoterm | String | N | 50 | ||
shippingToCode | String | N | 50 | ||
shippingToAddress | String | N | 300 | ||
price | Double | N | |||
currency | String | N | 10 | ||
paymentTerms | String | N | 300 | ||
poChange | String | N | 100 | ||
poChangeDate | Date | N | |||
poCreateDate | Date | N | |||
odmPoChangeRequest | String | N | 500 | ||
buyerPoChangeRequest | String | N | 500 | ||
comment1 | String | N | 100 | ||
comment2 | String | N | 100 | ||
geo | String | N | 20 | ||
subGeo | String | N | 50 | ||
itemDesc | String | N | 500 | ||
sysLastModifyDate | Date | N | |||
inputDate | Date | N | yyyy-MM-dd | ||
outputDate | Date | N | yyyy-MM-dd | ||
mrDate | Date | N | yyyy-MM-dd | ||
reasonCode | String | N | 100 |
Response Parameters
field | key | Type | description | sample |
---|---|---|---|---|
code | string | 0 | ||
msg | string |
Request Example
header
name | value |
---|---|
Authorization | Bearer ******* |
X-API-KEY | ******** |
body
{
"batch_id":"10067",
"data":[{
"id": "1",
"mainPoNo": "po1",
"mainPoLine": "00010",
"bu": "ThinkNB",
"po": "po1",
"poLine": "00010",
"lenovoPn": "pn1",
"odmSupplierName": "***",
"site": "***",
"commodity": "********",
"itemgroup": "********",
"priorityCode": 60,
"orderType": "NB",
"orderTypeDesc": "Standard PO",
"uom": "EA",
"mot": "Train",
"leadTime": 1,
"poQty": 20,
"shipDate": "2024-11-07",
"asnNo": "1111111111111111",
"deliveryNote": "dn",
"requestEtd": "2024-11-07",
"requestEta": "2024-11-05",
"confirmedEtd": "2024-11-07",
"confirmedEta": "2024-11-07",
"systemEtd": "2024-11-07",
"systemEta": "2024-11-07",
"newEtd": "2024-11-07",
"newEta": "2024-11-07",
"incoterm": "FOB FOB",
"shippingToCode": "",
"shippingToAddress": "",
"geo": "",
"subGeo": "",
"itemDesc": "",
"price": 0.00,
"currency": "USD",
"paymentTerms": "********",
"poChange": "********",
"odmPoChangeRequest": "********",
"comment1": "********",
"comment2": "********",
"inputDate": "2025-02-17",
"outputDate": "2025-02-17",
"mrDate": "2025-02-17",
"reasonDate": "********"
}]
}
Response Example
json
{
"code": "0",
"message": ""
}
Error Example
json
{
"code": "-1",
"message": "System error. Please try again later or contact your system administrator!"
}
Business Error code
error code | error description | solutions |
---|---|---|