Skip to main content

Order Instruction

This interface is used to inform AdOr5 of a delivery instruction to a specified customer. Orders can be updated up until the time that allocation has occurred – thereafter no updates will be accepted. Order cancellations are handled outside of interfacing.

VAS instructions on line level must be enabled by the VAS flag on the header. VAS instruction on header level takes precedence over VAS on the line level.

DestinationLocation object takes precedence over the destination properties in the header.

Below you will find the Actions with descriptions and the Specfication for the requests.

Actions

VIEW

This method allows you to view an empty orderinstruction.json file

Request details

MethodEndpointHeader keyHeader Value
VIEWBaseURL/api/outboundX-AUTH-TOKENIntegration Service API key

Request Response

{
"OrderID": 0,
"ClientID": 0,
"CustomerID": 0,
"ClientNo": null,
"CustomerNo": null,
"OrderNo": null,
"Priority": 0,
"DueDate": null,
"OrderTypeID": 0,
"OrderSource": null,
"CreateDate": "0001-01-01T00:00:00",
"CreateUID": 0,
"ShipFromDate": null,
"DespatchUID": 0,
"DespatchDate": null,
"StartDate": null,
"VAS": false,
"VASText": null,
"SubPack": false,
"CheckMethodID": null,
"ServiceLevelID": null,
"CourierID": null,
"CourierRef": null,
"DestNo": null,
"DestName1": null,
"DestName2": null,
"DestAddress1": null,
"DestAddress2": null,
"DestAddress3": null,
"DestAddress4": null,
"DestCity": null,
"DestTownCode": null,
"DestPostalCode": null,
"DestCountryCode": null,
"DestHub": null,
"DestContact": null,
"DestTelephone": null,
"DestRef": null,
"DeliveryDate": null,
"DeliveryTime": null,
"Reference1": null,
"Reference2": null,
"Reference3": null,
"Reference4": null,
"Note1": null,
"Note2": null,
"CampaignNo": null,
"CampaignDesc": null,
"CloseDate": "0001-01-01T00:00:00",
"CloseUID": 0,
"CloseReason": null,
"SealUID": 0,
"SealStart": "0001-01-01T00:00:00",
"ExportTrigger": null,
"SalesOrg": null,
"InputLine": null,
"ExportID": 0,
"StatusID": 0,
"SalesOrderID": null,
"SubPackVersion": 0,
"DestRef2": null,
"PrintDespatchNote": false,
"PrintConsignmentNote": false,
"XDP": null,
"ExportID_PP": 0,
"Line": null,
"LogFileID": 0,
"AllocationResult": null,
"ModeId": 0,
"UnpackBinId": null,
"RequireWeightAndDims": true,
"CourierName": null,
"CourierDesc": null,
"CourierBin": null,
"OrderTypeNo": null,
"OrderTypeDesc": null,
"CheckMethodDesc": null,
"ServiceLevelCode": null,
"DestinationLocation": {
"LocationID": 0,
"LocationTypeID": 0,
"LocationNo": null,
"Address1": null,
"Address2": null,
"Address3": null,
"Address4": null,
"PostalCode": null,
"CountryCode": null,
"Telephone": null,
"Fax": null,
"Email": null,
"Ref1": null,
"CreateDate": "0001-01-01T00:00:00",
"CreateUID": 0,
"SubPack": false,
"RequireWeightAndDims": false,
"CheckMethodID": 0,
"LocationName1": null,
"LocationName2": null,
"VAS": false,
"VASText": null,
"ParentLocationID": null,
"Hub": null,
"IsXDock": false,
"UnpackBinId": null
},
"Lines": [
{
"LineNo": 0,
"CustomerNo": null,
"CustomerId": null,
"SKUNo": null,
"ItemAtt1": null,
"ItemAtt2": null,
"ItemAtt3": null,
"ItemAtt4": null,
"ItemAtt5": null,
"ItemAttValue1": null,
"ItemAttValue2": null,
"ItemAttValue3": null,
"OrderedQty": 0,
"VASText": null,
"Ref1": null,
"Ref2": null
}
]
}

POST

This method allows you to post to the OrderInstructionSTD_API Interface.

Request details

MethodEndpointHeader keyHeader Value
POSTBaseURL/api/outboundX-AUTH-TOKENIntegration Service API key

Request Body

{
"interfaceName" : "OrderInstructionSTD_API",
"returnDetailedData" : true,
"data": [{
"OrderID": 0,
"ClientID": 0,
"CustomerID": 0,
"ClientNo": "CL01",
"CustomerNo": "CU01",
"OrderNo": "326194875.748192636",
"Priority": 1,
"DueDate": null,
"OrderTypeID": 0,
"OrderSource": "Customer",
"CreateDate": "0001-01-01T00:00:00",
"CreateUID": 0,
"ShipFromDate": null,
"DespatchUID": 0,
"DespatchDate": null,
"StartDate": null,
"VAS": false,
"VASText": null,
"SubPack": false,
"CheckMethodID": null,
"ServiceLevelID": null,
"CourierID": null,
"CourierRef": null,
"DestNo": null,
"DestName1": null,
"DestName2": null,
"DestAddress1": null,
"DestAddress2": null,
"DestAddress3": null,
"DestAddress4": null,
"DestCity": null,
"DestTownCode": null,
"DestPostalCode": null,
"DestCountryCode": null,
"DestHub": null,
"DestContact": null,
"DestTelephone": null,
"DestRef": null,
"DeliveryDate": null,
"DeliveryTime": null,
"Reference1": null,
"Reference2": null,
"Reference3": null,
"Reference4": null,
"Note1": null,
"Note2": null,
"CampaignNo": null,
"CampaignDesc": null,
"CloseDate": "0001-01-01T00:00:00",
"CloseUID": 0,
"CloseReason": null,
"SealUID": 0,
"SealStart": "0001-01-01T00:00:00",
"ExportTrigger": null,
"SalesOrg": null,
"InputLine": null,
"ExportID": 0,
"StatusID": 0,
"SalesOrderID": null,
"SubPackVersion": 0,
"DestRef2": null,
"PrintDespatchNote": false,
"PrintConsignmentNote": false,
"XDP": null,
"ExportID_PP": 0,
"Line": null,
"LogFileID": 0,
"AllocationResult": null,
"ModeId": 0,
"UnpackBinId": null,
"RequireWeightAndDims": true,
"CourierName": null,
"CourierDesc": null,
"CourierBin": null,
"OrderTypeNo": "1",
"OrderTypeDesc": "Default",
"CheckMethodDesc": null,
"ServiceLevelCode": null,
"DestinationLocation": {
"LocationID": 0,
"LocationTypeID": 0,
"LocationNo": "LOC123",
"Address1": null,
"Address2": null,
"Address3": null,
"Address4": null,
"PostalCode": null,
"CountryCode": null,
"Telephone": null,
"Fax": null,
"Email": null,
"Ref1": null,
"CreateDate": "0001-01-01T00:00:00",
"CreateUID": 0,
"SubPack": false,
"RequireWeightAndDims": false,
"CheckMethodID": 0,
"LocationName1": null,
"LocationName2": null,
"VAS": false,
"VASText": null,
"ParentLocationID": null,
"Hub": null,
"IsXDock": false,
"UnpackBinId": null
},
"Lines": [
{
"LineNo": 1,
"CustomerNo": null,
"CustomerId": 0,
"SKUNo": "885522",
"ItemAtt1": null,
"ItemAtt2": null,
"ItemAtt3": null,
"ItemAtt4": null,
"ItemAtt5": null,
"ItemAttValue1": null,
"ItemAttValue2": null,
"ItemAttValue3": null,
"OrderedQty": 10,
"VASText": null,
"Ref1": null,
"Ref2": null
}
]
}]
}

Request Response

{
"success": true,
"message": null,
"errorData": null,
"returnData": [
{
"orderID": 25173,
"clientID": 1,
"customerID": 1,
"clientNo": "CL01",
"customerNo": "CU01",
"orderNo": "326194875.748192636",
"priority": 1,
"dueDate": "2020-11-18T00:00:00+02:00",
"orderTypeID": 14,
"orderSource": "APITEST",
"createDate": "2020-11-18T11:44:53.9957612+02:00",
"createUID": 0,
"shipFromDate": "2020-11-18T00:00:00+02:00",
"despatchUID": 0,
"despatchDate": null,
"startDate": "2020-11-18T00:00:00+02:00",
"vas": false,
"vasText": null,
"subPack": false,
"checkMethodID": "0",
"serviceLevelID": 1,
"courierID": 1,
"courierRef": null,
"destNo": "LOC123",
"destName1": null,
"destName2": null,
"destAddress1": null,
"destAddress2": null,
"destAddress3": null,
"destAddress4": null,
"destCity": null,
"destTownCode": null,
"destPostalCode": null,
"destCountryCode": null,
"destHub": null,
"destContact": null,
"destTelephone": null,
"destRef": null,
"deliveryDate": null,
"deliveryTime": null,
"reference1": null,
"reference2": null,
"reference3": null,
"reference4": null,
"note1": null,
"note2": null,
"campaignNo": null,
"campaignDesc": null,
"closeDate": "0001-01-01T00:00:00",
"closeUID": 0,
"closeReason": null,
"sealUID": 0,
"sealStart": "0001-01-01T00:00:00",
"exportTrigger": "DESPATCH",
"salesOrg": null,
"inputLine": null,
"exportID": 0,
"statusID": 1400,
"salesOrderID": null,
"subPackVersion": 0,
"destRef2": null,
"printDespatchNote": false,
"printConsignmentNote": false,
"xdp": null,
"exportID_PP": 0,
"line": null,
"logFileID": 0,
"allocationResult": null,
"modeId": 0,
"unpackBinId": null,
"requireWeightAndDims": true,
"courierName": null,
"courierDesc": null,
"courierBin": null,
"orderTypeNo": "7",
"orderTypeDesc": "Demo Type",
"checkMethodDesc": null,
"serviceLevelCode": null,
"destinationLocation": {
"locationID": 824,
"locationTypeID": 2,
"locationNo": "LOC123",
"address1": null,
"address2": null,
"address3": null,
"address4": null,
"postalCode": null,
"countryCode": null,
"telephone": null,
"fax": null,
"email": null,
"ref1": null,
"createDate": "0001-01-01T00:00:00",
"createUID": 0,
"subPack": false,
"requireWeightAndDims": false,
"checkMethodID": 0,
"locationName1": null,
"locationName2": null,
"vas": false,
"vasText": null,
"parentLocationID": null,
"hub": null,
"isXDock": false,
"unpackBinId": null
},
"lines": [
{
"lineNo": 1,
"customerNo": null,
"customerId": 1,
"skuNo": "885522",
"itemAtt1": null,
"itemAtt2": null,
"itemAtt3": null,
"itemAtt4": null,
"itemAtt5": null,
"itemAttValue1": null,
"itemAttValue2": null,
"itemAttValue3": null,
"orderedQty": 10,
"vasText": null,
"ref1": null,
"ref2": null
}
]
}
]
}

PUT

This method allows you to put to the OrderInstructionSTD_API Interface.

Request details

MethodEndpointHeader keyHeader Value
PUTBaseURL/api/outboundX-AUTH-TOKENIntegration Service API key

Request Body

{
"interfaceName" : "OrderInstructionSTD_API",
"returnDetailedData" : true,
"data": [{
"OrderID": 0,
"ClientID": 0,
"CustomerID": 0,
"ClientNo": "CL01",
"CustomerNo": "CU01",
"OrderNo": "326194875.748192636",
"Priority": 1,
"DueDate": null,
"OrderTypeID": 0,
"OrderSource": "APITEST",
"CreateDate": "0001-01-01T00:00:00",
"CreateUID": 0,
"ShipFromDate": null,
"DespatchUID": 0,
"DespatchDate": null,
"StartDate": null,
"VAS": false,
"VASText": null,
"SubPack": false,
"CheckMethodID": null,
"ServiceLevelID": null,
"CourierID": null,
"CourierRef": null,
"DestNo": null,
"DestName1": null,
"DestName2": null,
"DestAddress1": null,
"DestAddress2": null,
"DestAddress3": null,
"DestAddress4": null,
"DestCity": null,
"DestTownCode": null,
"DestPostalCode": null,
"DestCountryCode": null,
"DestHub": null,
"DestContact": null,
"DestTelephone": null,
"DestRef": null,
"DeliveryDate": null,
"DeliveryTime": null,
"Reference1": null,
"Reference2": null,
"Reference3": null,
"Reference4": null,
"Note1": null,
"Note2": null,
"CampaignNo": null,
"CampaignDesc": null,
"CloseDate": "0001-01-01T00:00:00",
"CloseUID": 0,
"CloseReason": null,
"SealUID": 0,
"SealStart": "0001-01-01T00:00:00",
"ExportTrigger": null,
"SalesOrg": null,
"InputLine": null,
"ExportID": 0,
"StatusID": 0,
"SalesOrderID": null,
"SubPackVersion": 0,
"DestRef2": null,
"PrintDespatchNote": false,
"PrintConsignmentNote": false,
"XDP": null,
"ExportID_PP": 0,
"Line": null,
"LogFileID": 0,
"AllocationResult": null,
"ModeId": 0,
"UnpackBinId": null,
"RequireWeightAndDims": true,
"CourierName": null,
"CourierDesc": null,
"CourierBin": null,
"OrderTypeNo": "7",
"OrderTypeDesc": "Demo Type",
"CheckMethodDesc": null,
"ServiceLevelCode": null,
"DestinationLocation": {
"LocationID": 0,
"LocationTypeID": 0,
"LocationNo": "LOC123",
"Address1": null,
"Address2": null,
"Address3": null,
"Address4": null,
"PostalCode": null,
"CountryCode": null,
"Telephone": null,
"Fax": null,
"Email": null,
"Ref1": null,
"CreateDate": "0001-01-01T00:00:00",
"CreateUID": 0,
"SubPack": false,
"RequireWeightAndDims": false,
"CheckMethodID": 0,
"LocationName1": null,
"LocationName2": null,
"VAS": false,
"VASText": null,
"ParentLocationID": null,
"Hub": null,
"IsXDock": false,
"UnpackBinId": null
},
"Lines": [
{
"LineNo": 1,
"CustomerNo": null,
"CustomerId": 0,
"SKUNo": "885522",
"ItemAtt1": null,
"ItemAtt2": null,
"ItemAtt3": null,
"ItemAtt4": null,
"ItemAtt5": null,
"ItemAttValue1": null,
"ItemAttValue2": null,
"ItemAttValue3": null,
"OrderedQty": 101,
"VASText": null,
"Ref1": null,
"Ref2": null
}
]
}]
}

Response

{
"success": true,
"message": null,
"errorData": null,
"returnData": [
{
"orderID": 25173,
"clientID": 1,
"customerID": 1,
"clientNo": "CL01",
"customerNo": "CU01",
"orderNo": "326194875.748192636",
"priority": 1,
"dueDate": "2020-11-18T00:00:00+02:00",
"orderTypeID": 14,
"orderSource": "APITEST",
"createDate": "0001-01-01T00:00:00",
"createUID": 0,
"shipFromDate": "2020-11-18T00:00:00+02:00",
"despatchUID": 0,
"despatchDate": null,
"startDate": "2020-11-18T00:00:00+02:00",
"vas": false,
"vasText": null,
"subPack": false,
"checkMethodID": "0",
"serviceLevelID": 1,
"courierID": 1,
"courierRef": null,
"destNo": "LOC123",
"destName1": null,
"destName2": null,
"destAddress1": null,
"destAddress2": null,
"destAddress3": null,
"destAddress4": null,
"destCity": null,
"destTownCode": null,
"destPostalCode": null,
"destCountryCode": null,
"destHub": null,
"destContact": null,
"destTelephone": null,
"destRef": null,
"deliveryDate": null,
"deliveryTime": null,
"reference1": null,
"reference2": null,
"reference3": null,
"reference4": null,
"note1": null,
"note2": null,
"campaignNo": null,
"campaignDesc": null,
"closeDate": "0001-01-01T00:00:00",
"closeUID": 0,
"closeReason": null,
"sealUID": 0,
"sealStart": "0001-01-01T00:00:00",
"exportTrigger": null,
"salesOrg": null,
"inputLine": null,
"exportID": 0,
"statusID": 1400,
"salesOrderID": null,
"subPackVersion": 0,
"destRef2": null,
"printDespatchNote": false,
"printConsignmentNote": false,
"xdp": null,
"exportID_PP": 0,
"line": null,
"logFileID": 0,
"allocationResult": null,
"modeId": 0,
"unpackBinId": null,
"requireWeightAndDims": true,
"courierName": null,
"courierDesc": null,
"courierBin": null,
"orderTypeNo": "7",
"orderTypeDesc": "Demo Type",
"checkMethodDesc": null,
"serviceLevelCode": null,
"destinationLocation": {
"locationID": 824,
"locationTypeID": 2,
"locationNo": "LOC123",
"address1": null,
"address2": null,
"address3": null,
"address4": null,
"postalCode": null,
"countryCode": null,
"telephone": null,
"fax": null,
"email": null,
"ref1": null,
"createDate": "0001-01-01T00:00:00",
"createUID": 0,
"subPack": false,
"requireWeightAndDims": false,
"checkMethodID": 0,
"locationName1": null,
"locationName2": null,
"vas": false,
"vasText": null,
"parentLocationID": null,
"hub": null,
"isXDock": false,
"unpackBinId": null
},
"lines": [
{
"lineNo": 1,
"customerNo": null,
"customerId": 1,
"skuNo": "885522",
"itemAtt1": null,
"itemAtt2": null,
"itemAtt3": null,
"itemAtt4": null,
"itemAtt5": null,
"itemAttValue1": null,
"itemAttValue2": null,
"itemAttValue3": null,
"orderedQty": 101,
"vasText": null,
"ref1": null,
"ref2": null
}
]
}
]
}

Specification

Order Header

FieldTypeNotesReq
OrderIDIntegerN
ClientIDIntegerN
CustomerIDIntegerN
ClientNoString (30)Y
CustomerNoString (30)Y
OrderNoString (30)Y
PriorityIntegerMust be higher than 0Y
DueDateTimestampN
OrderTypeIDIntegerN
OrderSourceString (30)Y
CreateDateTimestampN
CreateUIDIntegerN
ShipFromDateTimestampN
DespatchUIDIntegerN
DespatchDateTimestampN
StartDateTimestampN
VASBooleanN
VASTextString (2048)N
SubPackBooleanN
CheckMethodIDString (50)N
ServiceLevelIDIntegerN
CourierIDIntegerN
CourierRefString (30)N
DestNoString (20)N
DestName1String (60)N
DestName2String (60)N
DestAddress1String (50)N
DestAddress2String (50)N
DestAddress3String (50)N
DestAddress4String (50)N
DestCityString (30)N
DestTownCodeString (10)N
DestPostalCodeString (20)N
DestCountryCodeString (10)N
DestHubString (10)N
DestContactString (30)N
DestTelephoneString (30)N
DestRefString (30)N
DeliveryDateString (50)N
DeliveryTimeString (50)N
Reference1String (30)N
Reference2String (30)N
Reference3String (30)N
Reference4String (30)N
Note1String (255)N
Note2String (255)N
CampaignNoString (20)N
CampaignDescString (50)N
CloseDateTimestampN
CloseUIDIntegerN
CloseReasonString (255)N
SealUIDIntegerN
SealStartTimestampN
ExportTriggerString (40)N
SalesOrgString (20)N
InputLineString (700)Will be populated with the current line objectN
ExportIDIntegerN
StatusIDIntegerN
SalesOrderIDIntegerN
SubPackVersionIntegerN
DestRef2String (30)N
PrintDespatchNoteBooleanN
PrintConsignmentNoteBooleanN
XDPString (30)N
ExportID_PPIntegerN
LineString (50)N
LogFileIDIntegerN
AllocationResultString (500)N
ModeIdIntegerN
UnpackBinIdIntegerN
RequireWeightAndDimsBooleanN
CourierNameString (15)Will use the default courier if not suppliedN
CourierDescString (30)Recomended for new CouriersN
CourierBinString (30)Bin must exist in AdOrN
OrderTypeNoString (10)Y
OrderTypeDescString (30)Recomended for new typesN
CheckMethodDescString (20)N
ServiceLevelCodeString (10)N

Destination Location

FieldTypeReq
LocationIDIntegerN
LocationTypeIDIntegerN
LocationNoString (10)Y
Address1String (50)N
Address2String (50)N
Address3String (50)N
Address4String (50)N
PostalCodeString (20)N
CountryCodeString (10)N
TelephoneString (30)N
FaxString (30)N
EmailString (50)N
Ref1String (30)N
CreateDateTimestampN
CreateUIDIntegerN
SubPackBooleanN
RequireWeightAndDimsBooleanN
CheckMethodIDIntegerN
LocationName1String (60)N
LocationName2String (60)N
VASBooleanN
VASTextString (255)N
ParentLocationIDIntegerN
HubString (10)N
IsXDockBooleanN
UnpackBinIdIntegerN

Lines

FieldTypeReq
LineNoIntegerY
CustomerNoString (50)Y
CustomerDescString (50)N
SkuNoString (30)Y
OrderedQtyIntegerY
Ref1String (50)N
ItemAtt1String (40)N
ItemAtt2String (40)N
ItemAtt3String (40)N
ItemAtt4String (40)N
ItemAtt5String (40)N
ItemAttValue1DoubleN
ItemAttValue2DoubleN
ItemAttValue3DoubleN