Skip to content

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 ​

EnvironmentURL
Testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/inbound/mty/an/updateAcceptanceStatus
Prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/inbound/mty/an/updateAcceptanceStatus
  • Method: PUT

  • Content-Type: application/json

Request Parameters ​

fieldtypekeylengthdescexample
anNoStringY30AN CodeAN2023080200001
statusStringY30pending/processingpending

Response Parameters ​

fieldtypekeylengthdescexample
codeStringY10回执 code"0"
msgStringY10回执信息"ok"/"error"
resultObjectN回执示例见响应示例

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 codeerror descriptionsolutions
-1Return receipt codePlease follow msg instructions