GET SSCC Packing List
https://jerrytest.ewe.com.au/eweApi/ewe/api/upi/orderDetail
You can use SSCC packing list API to query the SSCC number for the outbound (EDI) order.
Request
Header
| Attribute | Type | Required | Description | 
|---|---|---|---|
| Sign | string | Required | Signature (in Header) | 
| Username | string | Required | Jerry username | 
Basic Parameter
| Attribute | Type | Required | Description | 
|---|---|---|---|
| orderNo | string | Required | Order reference number (Query string) | 
| poNumber | string | Required if orderNo is not provided | PO number (Query string) | 
Either orderNo or poNumber must be included in the request. At least one is required.
Sign
Comment: boxNo is the orderNo from get, and keys is API password.
public static String encodeByMD5Hex (String originString) 
{
        if (originString != null) {
           try {
                MessageDigest md = MessageDigest.getInstance("MD5");
                byte[] results = md.digest(originString.getBytes());
                return bytesToHexStr(results);
               } catch (Exception e) {
                     throw new RuntimeException(e);
               }
            }
           return null;
         }
public static String MD5EncodeForUpi (String orderNo, String keys)
{
           return new 
           String (Base64.encodeBase64(MD5Util.encodeByMD5Hex(orderNo + keys).getBytes(Charsets.UTF_8)), Charsets.UTF_8);
        }
Key will provided by Jerry
String sign = MD5EncodeForUpi(orderNo,keys)
Response
| Attribute | Type | Required | Description | 
|---|---|---|---|
| code | integer | Required | Interface return status | 
| message | string | Required | Return code description | 
| total | integer | Required | Total carton number | 
List
| Attribute | Type | Description | 
|---|---|---|
| ssccNumber | string | SSCC number | 
| lpnNumber | string | Carton number | 
| baseQuantity | integer | Quantity | 
| conditionCode | string | Item's condition; GD: Good; DAM: Damaged | 
| skuId | string | The unique SKU ID in Jerry's database | 
| upc | string | Barcode | 
| zhName | string | Item description in Chinese | 
| enName | string | Item description in English | 
Successful Response Example
{
    "total": 2,
    "list": [
        {
            "ssccNumber": "00394219039000000341",
            "lpnNumber": "EPAC000000000111",
            "baseQuantity": 100,
            "conditionCode": "GD",
            "skuId": "1112233",
            "upc": "935000000000001",
            "zhName": "TEST001-XS",
            "enName": "TEST001-XS",
            "customerPoNumber": "SO-TEST_ICON008"
        },
        {
            "ssccNumber": "00394219039000000334",
            "lpnNumber": "EPAC000000000222",
            "baseQuantity": 100,
            "conditionCode": "GD",
            "skuId": "2223344",
            "upc": "935000000000002",
            "zhName": "TEST002-M",
            "enName": "TEST002-M",
            "customerPoNumber": "SO-TEST_ICON008"
        }
    ]
}
Failed Response Example
{
    "message": "Username does not exist!",
    "code": 500
}