MTY AN
The following interfaces apply to General Data Query
Update Acceptance Status
Used to lock AN data, the default status is 'Pending', and when set to 'Processing', this data cannot be modified or deleted by the SCC platform.
Request Info
Environment | URL |
---|---|
Test | https://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/inbound/mty/an/updateAcceptanceStatus |
Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/inbound/mty/an/updateAcceptanceStatus |
Method: PUT
Content-Type: application/json
Request Parameters
field | type | key | length | desc | example |
---|---|---|---|---|---|
anNo | String | Y | 30 | AN Code | AN2023080200001 |
status | String | Y | 30 | pending/processing | pending |
Response Parameters
field | type | key | length | desc | example |
---|---|---|---|---|---|
code | String | Y | 10 | 回执 code | "0" |
msg | String | Y | 10 | 回执信息 | "ok"/"error" |
result | Object | N | 回执示例 | 见响应示例 |
Request Example
json
{
"anNo": "AN2023080200001",
"status": "pending"
}
Response Example
JSON
{
"code": "0",
"msg": "ok"
}
Error Example
JSON
{
"code": "-1",
"msg": "unknown status.please input only 'pending' or 'processing'!"
}
Business Error code
error code | error description | solutions |
---|---|---|
-1 | Return receipt code | Please follow msg instructions |