POST Create ASN
https://jerrytest.ewe.com.au/eweApi/ewe/api/creatASN
You can use create ASN API to create an ASN - Advanced Ship Notice (Inbound Order) to notify the wareshouse regarding the upcoming goods.
NOTE:
- The SKU should be the unique identifier for different items.
- If you want to trace the lot number, expiry date, or serial number on the SKU, set the API fields - lotControl, expiryControl, serialControl accordingly.
- Jerry system will automatically register the new item right after the ASN has been created in Jerry system.
- The stock will only be available after EWE ops team has processed and closed the ASN.
NOTE: You can apply the UTF8 created by the code presents below when using C#, instead of applying the system default UTF8.
new UTF8Encoding (false)
Request
Attribute | Type | Required | Description |
---|---|---|---|
USERNAME | string | Required | Jerry username |
APIPASSWORD | string | Required | API password |
ETA | date | Required | Estimated time of arrival |
REF1 | string | Required | Inbound order reference number |
CarrierID | string | Optional | Carrier company ID |
Items | object array | Required | Item information |
Items Object Model
Attribute | Type | Required | Description |
---|---|---|---|
Supplier | string | Required | Supplier |
SKU | string | Required | Stock keeping unit |
UPCCode | string | Required | Barcode |
SKUName | string | Required | SKU name (Chinese) |
SKUNameE | string | Required | SKU name (English) |
SKUSpec | string | Required | Specification |
DueDate | date | Required | Due date |
Qty | integer | Required | Quantity |
GrossWeight | decimal number | Required | Gross weight (KG) |
length | decimal number | Required | Length (M) |
width | decimal number | Required | Width (M) |
height | decimal number | Required | Height (M) |
lotNumber | string | Optional | Lot number |
expiryControl | string | Optional | Expiry date trace; N (not control), F (control), I (trace in), O (Trace out) |
lotControl | string | Optional | Lot number trace; N (not control), F (control), I (trace in), O (Trace out) |
serialControl | string | Optional | Serial number trace; N (not control), T (control), I (trace in), O (Trace out) |
PackNumber | integer | Optional | Medium Box Specification |
BoxNumber | integer | Optional | Full Box Specification |
Request Example
Content-Type application/javascript
{
"USERNAME": "DUMMY",
"APIPASSWORD": "123456",
"ETA": "2022-07-15",
"REF1": "PO_0715001",
"Items": [
{
"Supplier": "DummyDuck",
"SKU": "TEST01",
"UPCCode": "931110036500",
"SKUName": "Test product 01",
"SKUNameE": "Test product 01",
"SKUSpec": "1",
"DueDate": "2022-07-15",
"Qty": "1000",
"GrossWeight": "1"
},
{
"Supplier": "DummyDuck",
"SKU": "TEST02",
"UPCCode": "931110036501",
"SKUName": "Test product 02",
"SKUNameE": "Test product 02",
"SKUSpec": "1",
"DueDate": "2022-07-15",
"Qty": "500",
"GrossWeight": "2"
}
]
}
Response
Attribute | Type | Description |
---|---|---|
Status | integer | Status code. Please refer to the Status Code for details |
msg | list | Text message. The message gives explanation when complicated error occurs |
LBX | string | Inbound order number |
Status Codes
Status Code | Description |
---|---|
0 | Succeessful |
1 | Failed |
2 | Failed due to duplicate reference number |
3 | Failed due to invalid operation |