Smart PMSQuery the Process of Serial Number

Query the Process of Serial Number

Last Updated on : 2022-03-02 03:46:43download

Definitions

Name Version Description
v1.0/pms/station/sn/flows/get 2.0 Get flows of the sn

Request

  • HTTP type

    Post

  • Parameters

    Name Type Description Required
    sn String device’s sn Yes
  • Parameters
    None

Request example

{ "sn" : "XUNBL23VD0***1" }

Response

Name Type Description
result List list of the flows
result[i].orderCode String code of the work order
result[i].sn String sn
result[i].craftLineCode String code of the craft line
result[i].node String code of current node
result[i].nodeDesc String description of current node
result[i].requestId String sn’s request id of current node
result[i].status Boolean pass the current node or not
result[i].time String generation time
success Boolean succeed or not

Response example

Successful response

{ "result" : [ { "node" : "firstTest", "craftLineCode" : "jabe7jea", "nodeDesc" : "Color package", "orderCode" : "XUNBL23VD", "time" : 1606203797475, "sn" : "XUNBL23VD00001", "status" : false }, { "node" : "secondTest", "craftLineCode" : "jabe7jea", "nodeDesc" : "large package", "orderCode" : "XUNBL23VD", "time" : 1606203797481, "sn" : "XUNBL23VD00001", "status" : false } ], "t" : 1606204070, "success": true }

Error response

{ "success": false, "code" : "THE_BLANK_PARAM", "msg": "username cannot be null" }

Error code

Name Description
THE_BLANK_PARAM parameter can not be empty