POST Receipt Details
https://jerrytest.ewe.com.au/eweApi/ewe/api/receiptDetails
You can use receipt details API to pull the ASN/inbound order details.
NOTE:
- The receiptDetails API is only available after the ASN has been processed and closed via Upimium. The API returns empty data if the ASN has not been closed in Upimium.
Request
Attribute | Type | Required | Description |
---|---|---|---|
boxNo | string | Required | ASN reference number |
username | string | Required | Jerry username |
digest | string | Required | Digest algorithm |
Digest Algorithm
The digest algorithm is MD5 + base64 algorithm.
Example: digest = username + reference number + API password
String content = username + requestDto.getBoxNo();
String digest = MD5Util.MD5EncodeForCainiao(content, auCustomer.getPassword());
public static String MD5EncodeForCainiao (String content, String keys) {
String sign = "";
String charset = "UTF-8";
content = content + keys;
try {
MessageDigest md = MessageDigest.getInstance("MD5");
md.update(content.getBytes(charset));
sign = new String(Base64.encodeBase64(md.digest()), charset);
} catch (Exception e) {
throw new RuntimeException(e);
}
return sign;
}
Response
Attribute | Type | Description |
---|---|---|
data | object | Receipt result |
success | boolean | See Status Codes |
error | string | Error message |
Data
Attribute | Type | Description |
---|---|---|
boxNo | string | ASN reference number |
shipDatetime | date | Inbound date time |
details | list | Merchandise details |
Details
Attribute | Type | Description |
---|---|---|
sku | string | SKU |
upc | string | Barcode |
quantity | integer | Quantity |
lotNumber | bigDecimal | Lot number |
itemDescription | string | Item description |
revisionNumber | string | Revision number |
expiryDate | Date | Expiry date |
conditionCode | string | Item condition |
uomRatio | string | Uom ratio |
uomQuantity | string | Uom quantity |
packNumber | string | LPN number |
serialNumbers | string | Serial numbers |
Status Codes
Codes | Type | Description |
---|---|---|
true | SUCCESS | Successful |
false | FAILURE | Failed |
Successful Response Example
{
"success": true,
"data": {
"boxNo": "PO-1495292",
"shipDatetime": "2022-02-11 03:07:46",
"details": [
{
"sku": "DUMMY",
"upc": "123456789123",
"quantity": 3,
"itemDescription": "EWE Test 1",
"conditionCode": "good",
"uomRatio": "1.0",
"uomQuantity": "10.0",
"serialNumbers": [
"11",
"99",
"1010"
]
},
{
"sku": "EC0053",
"upc": "123456789122",
"quantity": 10,
"itemDescription": "EWE Test 2",
"conditionCode": "good",
"uomRatio": "1.0",
"uomQuantity": "10.0",
"serialNumbers": []
},
{
"sku": "B79347",
"upc": "123456789111",
"quantity": 2,
"lotNumber": "1003",
"itemDescription": "EWE Test 3",
"conditionCode": "good",
"uomRatio": "1.0",
"uomQuantity": "10.0",
"serialNumbers": [
"1",
"10"
]
}
]
}
}