Service Name Encode
Service Method POST
Service URL /epcs/encode
Request Header Fields
Content-Type = application/json
Authorization = <token>
Request Body Data (JSON)
{
"item_number": "<item number>",
"location": "<location code>",
"epcs" : [
{
"epc": "<epc>",
"tid": "<unique tag id>"
},
{
"epc": "<epc>",
"tid": "<unique tag id>"
}
]
}
Response Data (JSON)
{
"epcs": [
{
"old_epc": "<old epc>",
"new_epc": "<new encoded epc>",
"tid": "epc unique id"
},
...
]
}
Example
POST: http://app.senitron.net/api/v1/epcs/encode
{
"item_number": "140195001",
"location": "001",
"epcs" : [
{
"epc": "321AB45009E66F002367ABCD",
"tid": "0000031"
},
{
"epc": "421AB45009ECCA002367ABC7",
"tid": "0000032"
}
]
}
Response Data (JSON)
{
"epcs": [
{
"old_epc": "321AB45009E66F002367ABCD",
"new_epc": "CF00000216CD2E400000000C",
"tid": "0000031"
},
{
"old_epc": "421AB45009ECCA002367ABC7",
"new_epc": "CF00000216CD2E400000000D",
"tid": "0000032"
}
]
}