Order Create

Allows customers to create a new logistics order in the WMS. The id value in the result can be used for further update and delete operations. Required fields are in bold text.

Access

To access to Mainfreight APIs, you have to Register

Resource URI

Make an HTTP POST request to:

https://api.mainfreight.com/Warehousing/1.1/Customers/Order

Resource Information

TypeValue 
Authentication API Key  
Response Formats JSON / XML  
HTTP Methods POST  
API Version 1.1  

HTTP Headers

You must add the following HTTP Headers to your request:

HeaderDescriptionTypeRequired
Content-Type Request content type. Supported types are "application/json" or "application/xml" string Yes
Authorization

The word " Secret" followed by a space, then your unique Warehousing API Key

e.g: Secret wdnOId93-VXZECxvVRPQEJZNxPB5XZ...

string Yes

Parameters

You have to provide the parameters marked as required:

Request Parameters

ParameterDescriptionTypeLengthRequired
orderReference Your unique order reference identifying the Order string 50  Yes
customerOrderReference Your customer reference for the Order string  50   
receiverReference Your customer's receiver reference for the Order string  50   
crossDocReference Cross docking reference string  50   
carrierReference Not required in your request. Carrier Reference is populated when finalising/despatching your order string     
warehouse The warehouse involved in the Order array    Yes
code Shorthand code to identify the warehouse Integer   Yes
receiverGroup General purpose field to group Receivers that have the same business rules, e.g. documentation array    
code Shorthand code to identify the receiver group string    
customer Customer involved in the Order array   Yes 
code Shorthand code to identify the customer string   Yes 
receiver Receiver contact details array   Yes
address1 Street address string 50 Yes
address2 Additional street address details string 50  
code Shorthand code to identify the receiver string 50 Yes
country Country for the Receiver address string 50 Yes
name The name of the Receiver string 50  
phone The phone number of the Receiver string 50  
place City/Place for the Receiver address string 50  
postCode PostCode/Zip for the Receiver address string 50  
state State for the Receiver address string 50  
suburb Suburb for the Receiver address string 50  
soldTo Contact details for the party the goods were sold to. If this party is used, code is required. array    
address1 Street address string 50  
address2 Additional street address details string 50  
code Shorthand code to identify the party the goods were sold to string 50 Yes
country Country for the party the goods were sold to address string 50  
name The name of the party the goods were sold to string 50  
phone The phone number of the party the goods were sold to string 50  
place City/Place for the party the goods were sold to address string 50  
postCode PostCode/Zip for the party the goods were sold to address string 50  
state State for the party the goods were sold to address string 50  
suburb Suburb for the party the goods were sold to address string 50  
contact contact name for the party the goods were sold to string 50  
charge   array    
code Charge code string    
sender   array    
code Sender code string    
consigneeDeliveryLocation   array    
code   string    
deliveryInstructions Delivery instructions for the order string 500  
Comment1 Comment1 used to display additional information in packing slip string    
Comment2 Comment2 used to display additional information in packing slip string    
Comment3 Comment3 used to display additional information in packing slip string    
serviceProvider The service provider that will transport the order array    
name The name of the service provider, e.g. Mainfreight string 50  
orderType Order type list of available of types can be found here string 50  
repCode General purpose use field, discuss usage with the integration team string 50  
repName General purpose use field, discuss usage with the integration team string 50  
requiredDate Required date that order needs to be dispatched by
Format yyyy-MM-dd
date   Yes
etaDate Estimated date that order will be dispatched by
Format yyyy-MM-dd
date    
miscChargeAmount Miscellaneous charge amount for the order decimal    
freightCharge Freight charge amount for the order decimal    
taxAmount Tax amount charge for the order decimal    
pallets Number of pallets required for the order integer    
weight Total weight for the order decimal    
volume Total volume for the order decimal    
invoicedNetAmount Invoiced amount charge for the order decimal    
vipEmailAddress VIP email notification email address string 500  
customStockStatusCode Custom stock status code, discuss usage with the integration team string 50  
urgent Indicates that the order should be dispatched with urgent priority boolean    
dutyFree Indicates that the order is shipped as duty free boolean    
timesLotRequired Indicates that a timeslot is required for delivery in relation to the booking time boolean    
booking Booking details for the Order array    
fromDateTime Booking from date used for booking with Mainfreight Transport Format yyyy-MM-dd HH:mm:ss dateTime    
toDateTime Booking to date used for booking with Mainfreight Transport Format yyyy-MM-dd HH:mm:ss dateTime    
reference Booking reference value string 20  
comment Booking comment value string 50  
serviceLevel The required service levels for service providers object    
callRequired Indicates that a call is required to confirm the booking time boolean    
externalReferences External reference's, list of available of external reference types can be found here array    
externalSystem   array    
code   string 50  
references   array 50  
reference   array 50  
referenceType External reference types, list of available of types can be found here string 50  
value   string 50  
orderLines List of products related to this order array   Yes
orderLine Product related to this order array   Yes
lineNo Number identifying the order in your order integer   Yes
units Number of units for this product decimal   Yes
backOrderUnits Number of back order units integer    
retailPrice Number of back order units decimal    
discountPrice Number of back order units decimal    
costPrice Number of back order units decimal    
extendedPrice Number of back order units integer    
miscCharge Miscellaneous charge amount for ordered product array    
amount   decimal    
description   string 50   
receiverStock Reciver product details array    
code Receiver product code string 50  
packType Pack type ordered for product string 50  
weight Weight for product decimal    
volume Volume for product decimal    
contingencyPrice Contingency price for product decimal    
freightClass Freight class code for product list of available codes can be found here string 6  
kitsetCode Kitset code identifying the kitset. string 50  
product   object   Yes, if kitset not provided
code Product code
When providing a product code as well as a kitset code, all products for the kitset
should be provided with the correct ratios
string 50 Yes
description Product description, only required if configured to automatically create new products string 50 Conditional
alternativeDescription Alternative product description string 50  
grade1 Grade 1 attribute field against products in the WMS string   50  
grade2 Grade 2 attribute field against products in the WMS string  50   
grade3 Grade 3 attribute field against products in the WMS string  50   
expiryDate Expiry date attribute field against products in the WMS date    
packingDate Packing date attribute field against products in the WMS date    
underBond Under bond integer    
note Value for the note to appear against the line string 250  
externalSystem External reference's, list of available of external reference types can be found here array    
code   string 50  
references   array 50  
reference   array 50  
referenceType  External reference types, list of available of types can be found here string 50  
value   string 50  

Response Parameters

ParameterDescriptionTypeLength 
id Order identifier that can be used to update and delete this order guid 36  
orderReference Your unique order reference identifying the Order string  50  Yes
customerOrderReference Your customer reference for the Order string  50   
receiverReference Your customer's receiver reference for the Order string  50   
crossDocReference Cross docking reference string  50   
carrierReference Not required in your request. Carrier Reference is populated when finalising/despatching your order string  50   
warehouse The warehouse involved in the Order array    Yes
code Shorthand code to identify the warehouse Integer   Yes
receiverGroup General purpose field to group Receivers that have the same business rules, e.g. documentation array    
code Shorthand code to identify the receiver group string    
customer Customer involved in the Order array   Yes 
code Shorthand code to identify the customer string   Yes 
receiver Receiver contact details array   Yes
address1 Street address string 50 Yes
address2 Additional street address details string 50  
code Shorthand code to identify the receiver string 50 Yes
country Country for the Receiver address string 50 Yes
name The name of the Receiver string 50  
phone The phone number of the Receiver string 50  
place City/Place for the Receiver address string 50  
postCode PostCode/Zip for the Receiver address string 50  
state State for the Receiver address string 50  
suburb Suburb for the Receiver address string 50  
soldTo Contact details for the party the goods were sold to. If this party is used, code is required. array    
address1 Street address string 50  
address2 Additional street address details string 50  
code Shorthand code to identify the party the goods were sold to string 50 Yes
country Country for the party the goods were sold to address string 50  
name The name of the party the goods were sold to string 50  
phone The phone number of the party the goods were sold to string 50  
place City/Place for the party the goods were sold to address string 50  
postCode PostCode/Zip for the party the goods were sold to address string 50  
state State for the party the goods were sold to address string 50  
suburb Suburb for the party the goods were sold to address string 50  
contact contact name for the party the goods were sold to string 50  
charge   array    
code Charge code string    
sender   array    
code Sender code string    
consigneeDeliveryLocation   array    
code   string    
deliveryInstructions Delivery instructions for the order string 500  
Comment1 Comment1 used to display additional information in packing slip string    
Comment2 Comment2 used to display additional information in packing slip string    
Comment3 Comment3 used to display additional information in packing slip string    
serviceProvider The service provider that will transport the order array    
name The name of the service provider, e.g. Mainfreight string 50  
orderType Order type list of available of types can be found here string 50  
repCode General purpose use field, discuss usage with the integration team string 50  
repName General purpose use field, discuss usage with the integration team string 50  
requiredDate Required date that order needs to be dispatched by
Format yyyy-MM-dd
date   Yes
etaDate Estimated date that order will be dispatched by
Format yyyy-MM-dd
date    
miscChargeAmount Miscellaneous charge amount for the order decimal    
freightCharge Freight charge amount for the order decimal    
taxAmount Tax amount charge for the order decimal    
pallets Number of pallets required for the order integer    
weight Total weight for the order decimal    
volume Total volume for the order decimal    
invoicedNetAmount Invoiced amount charge for the order decimal    
vipEmailAddress VIP email notification email address string 500  
customStockStatusCode Custom stock status code, discuss usage with the integration team string 50  
urgent Indicates that the order should be dispatched with urgent priority boolean    
dutyFree Indicates that the order is shipped as duty free boolean    
timesLotRequired Indicates that a timeslot is required for delivery in relation to the booking time boolean    
booking Booking details for the Order array    
fromDateTime Booking from date used for booking with Mainfreight Transport Format yyyy-MM-dd HH:mm:ss dateTime    
toDateTime Booking to date used for booking with Mainfreight Transport Format yyyy-MM-dd HH:mm:ss dateTime    
reference Booking reference value string 20  
comment Booking comment value string 50  
serviceLevel The required service levels for service providers object    
callRequired Indicates that a call is required to confirm the booking time boolean    
externalReferences External reference's, list of available of external reference types can be found here array    
externalSystem   array    
code   string 50  
references   array 50  
reference   array 50  
referenceType  External reference types, list of available of types can be found here string 50  
value Line External References Type, list of available of types can be found here string 50  
orderLines List of products related to this order array   Yes
orderLine Product related to this order array   Yes
lineNo Number identifying the order in your order integer   Yes
units Number of units for this product decimal   Yes
backOrderUnits Number of back order units integer    
retailPrice Number of back order units decimal    
discountPrice Number of back order units decimal    
costPrice Number of back order units decimal    
extendedPrice Number of back order units integer    
miscCharge Miscellaneous charge amount for ordered product array    
amount   decimal    
description   string    
receiverStock Reciver product details array    
code Receiver product code string 50  
packType Pack type ordered for product string 50  
weight Weight for product decimal    
volume Volume for product decimal    
contingencyPrice Contingency price for product decimal    
freightClass Freight class code for product list of available codes can be found here string 6  
kitsetCode Kitset code identifying the kitset. string 50  
product   object   Yes, if kitset not provided
code Product code
When providing a product code as well as a kitset code, all products for the kitset
should be provided with the correct ratios
string 50 Yes
description Product description, only required if configured to automatically create new products string 50 Conditional
alternativeDescription Alternative product description string 50  
grade1 Grade 1 attribute field against products in the WMS  string 50   
grade2 Grade 2 attribute field against products in the WMS  string 50   
grade3 Grade 3 attribute field against products in the WMS  string 50   
expiryDate Expiry date attribute field against products in the WMS date    
packingDate Packing date attribute field against products in the WMS date    
underBond Under bond integer    
note Value for the note to appear against the line string 250  
externalSystem External reference's, list of available of external reference types can be found here array    
code   string 50  
references   array 50  
reference   array 50  
referenceType  External reference types, list of available of types can be found here string 50  
value   string 50  

Code samples

JSON Example

To Create an Order in JSON format you will need to POST a JSON object:

  • URL
< > grab code
https://api.mainfreight.com/warehousing/1.1/customers/order

You are going to send a JSON object similar to this:

  • REQUEST JSON
< > grab code
{
    "orderReference": "{OurReference}",
    "customerOrderReference":"{YourReference}",
    "receiverReference": "{YourReceiverReference}",
    "carrierReference": "{CarrierReference}",
    "crossDocReference": "{CrossDocReference}",
    "warehouse": [{
        "code":"{{warehouseCode}}"
    }],
    "receiverGroup": [{
        "code": "2"
    }],
    "customer": [{
        "code": "{{customerCode}}"
    }],
    "receiver": [{
        "address1": "42 O'rorke Road",
        "address2": "",
        "code": "123",
        "country": "New Zealand",
        "name": "Cosignee ABCD",
        "phone": "123-456-789",
        "place": "Auckland",
        "postCode": "1234",
        "state:": "",
        "suburb": ""
    }],
    "soldTo": [{
        "address1": "42 O'rorke Road",
        "address2": "",
        "code": "123",
        "country": "New Zealand",
        "name": "Cosignee ABCD",
        "phone": "123-456-789",
        "place": "Auckland",
        "postCode": "1234",
        "state:": "",
        "suburb": "",
        "contact": "contact"
    }],
    "charge": [{
        "code": "456"
    }],
    "sender": [{
        "code": "789"
    }],
    "consigneeDeliveryLocation": [{
        "code": "1011"
    }],
    "deliveryInstructions": "deliveryInstructions",
    "comment1": "Comment1",
    "comment2": "Comment2",
    "comment3": "Comment3",
    "serviceProvider": [{
        "name": "Mainfreight"
    }],
    "orderType":"N",
    "repCode": "123",
    "repName": "repName",
    "requiredDate": "2017-05-31",
    "etaDate": "2000-06-02",
    "miscChargeAmount": "0.00",
    "freightCharge": "0.00",
    "taxAmount": "0.00",
    "pallets": "1",
    "weight": "2.7",
    "volume": "4.99",
    "invoicedNetAmount": "50.54",
    "vipEmailAddress": "test@mainfreight.com",
    "customStockStatusCode": "3",
    "urgent": "true",
    "dutyFree": "true",
    "timesLotRequired": "1",
    "booking": [{
        "fromDateTime": "2021-06-02 11:11:00",
        "toDateTime": "2022-06-14 11:11:00",
        "reference": "reference",
        "comment": "comment"
    }],
    "serviceLevel": "Metro",
    "callRequired": "false",
    "externalReferences": [{
        "externalSystem": [{
            "code": "SPSCommerce",
            "references": [{
                "reference": [{
                    "referenceType": "Department",
                    "value": "PurchaseOrderNumber"
                }]
            }]
        }]
    }],
    "orderLines": [{
        "orderLine": [{
            "lineNo": "1",
            "units": "5",
            "backOrderUnits": "2",
            "retailPrice": "54.0",
            "discountPrice": "23.5",
            "costPrice": "3.5",
            "extendedPrice": "5.50",
            "miscCharge": [{
                "amount": "11.0",
                "description": "name"
            }],
            "receiverStock": [{
                "code": "123"
            }],
            "packType": "EACH",
            "weight": "23.66",
            "volume": "23.33",
            "contingencyPrice": "332.5",
            "freightClass": "50",
            "kitsetCode": "",
            "product": [{
                "code": "productCode",
                "description": "product desc",
                "alternativeDescription": "alternative prod desc"
            }],
            "grade1": "grade1",
            "grade2": "grade2",
            "grade3": "grade3",
            "expiryDate": "2049-03-03",
            "packingDate": "2059-02-12",
            "underBond": "1",
            "note": "Product Line",
            "externalReferences": [{
                "externalSystem": [{
                    "code": "SPSCommerce",
                    "references": [{
                        "reference": [{
                            "referenceType": "BuyerPartNumber",
                            "value": "Value"
                        }]
                    }]
                }]
            }]
        }]
    }]
}

You are going get another JSON object similar to this:

  • RESPONSE JSON
< > grab code
{
    "id": "00000000-0000-0000-0000-000000000000",
    "orderReference": "{OurReference}",
    "customerOrderReference":"{YourReference}",
    "receiverReference": "{YourReceiverReference}",
    "carrierReference": "{CarrierReference}",
    "crossDocReference": "{CrossDocReference}",
    "warehouse": [{
        "code":"{{warehouseCode}}"
    }],
    "receiverGroup": [{
        "code": "2"
    }],
    "customer": [{
        "code": "{{customerCode}}"
    }],
    "receiver": [{
        "address1": "42 O'rorke Road",
        "address2": "",
        "code": "123",
        "country": "New Zealand",
        "name": "Cosignee ABCD",
        "phone": "123-456-789",
        "place": "Auckland",
        "postCode": "1234",
        "state:": "",
        "suburb": ""
    }],
    "soldTo": [{
        "address1": "42 O'rorke Road",
        "address2": "",
        "code": "123",
        "country": "New Zealand",
        "name": "Cosignee ABCD",
        "phone": "123-456-789",
        "place": "Auckland",
        "postCode": "1234",
        "state:": "",
        "suburb": "",
        "contact": "contact"
    }],
    "charge": [{
        "code": "456"
    }],
    "sender": [{
        "code": "789"
    }],
    "consigneeDeliveryLocation": [{
        "code": "1011"
    }],
    "deliveryInstructions": "deliveryInstructions",
    "comment1": "Comment1",
    "comment2": "Comment2",
    "comment3": "Comment3",
    "serviceProvider": [{
        "name": "Mainfreight"
    }],
    "orderType":"N",
    "repCode": "123",
    "repName": "repName",
    "requiredDate": "2017-05-31",
    "etaDate": "2000-06-02",
    "miscChargeAmount": "0.00",
    "freightCharge": "0.00",
    "taxAmount": "0.00",
    "pallets": "1",
    "weight": "2.7",
    "volume": "4.99",
    "invoicedNetAmount": "50.54",
    "vipEmailAddress": "test@mainfreight.com",
    "customStockStatusCode": "3",
    "urgent": "true",
    "dutyFree": "true",
    "timesLotRequired": "1",
    "booking": [{
        "fromDateTime": "2021-06-02 11:11:00",
        "toDateTime": "2022-06-14 11:11:00",
        "reference": "reference",
        "comment": "comment"
    }],
    "serviceLevel": "Metro",
    "callRequired": "false",
    "externalReferences": [{
        "externalSystem": [{
            "code": "SPSCommerce",
            "references": [{
                "reference": [{
                    "referenceType": "Department",
                    "value": "PurchaseOrderNumber"
                }]
            }]
        }]
    }],
    "orderLines": [{
        "orderLine": [{
            "lineNo": "1",
            "units": "5",
            "backOrderUnits": "2",
            "retailPrice": "54.0",
            "discountPrice": "23.5",
            "costPrice": "3.5",
            "extendedPrice": "5.50",
            "miscCharge": [{
                "amount": "11.0",
                "description": "name"
            }],
            "receiverStock": [{
                "code": "123"
            }],
            "packType": "EACH",
            "weight": "23.66",
            "volume": "23.33",
            "contingencyPrice": "332.5",
            "freightClass": "50",
            "kitsetCode": "",
            "product": [{
                "code": "productCode",
                "description": "product desc",
                "alternativeDescription": "alternative prod desc"
            }],
            "grade1": "grade1",
            "grade2": "grade2",
            "grade3": "grade3",
            "expiryDate": "2049-03-03",
            "packingDate": "2059-02-12",
            "underBond": "1",
            "note": "Product Line",
            "externalReferences": [{
                "externalSystem": [{
                    "code": "SPSCommerce",
                    "references": [{
                        "reference": [{
                            "referenceType": "BuyerPartNumber",
                            "value": "Value"
                        }]
                    }]
                }]
            }]
        }]
    }]
}
XML Example

To Create an Order in XML format, you will need to POST XML object.

  • URL
< > grab code
https://api.mainfreight.com/warehousing/1.1/customers/order

You are going to send XML document similar to this:

  • XML REQUEST
< > grab code
<order>
    <orderReference>{OurReference}</orderReference>
    <customerOrderReference>{YourReference}</customerOrderReference>
    <receiverReference>{YourReceiverReference}</receiverReference>
    <carrierReceiver>{CarrirerReference}</carrierReceiver>
    <crossDocReference>{CrossDocReference}</crossDocReference>
    <warehouse>
        <code>{{warehouseCode}}</code>
    </warehouse>
    <receiverGroup>
        <code>2</code>
    </receiverGroup>
    <customer>
        <code>{{customerCode}}</code>
    </customer>
    <receiver>
        <address1>1115 broadway floor 3</address1>
        <address2/>
        <code>179707</code>
        <country>US</country>
        <name>Sage,Ashique</name>
        <phone>(718) 926-7450</phone>
        <place>New York</place>
        <postCode>10010</postCode>
        <state>NY</state>
        <suburb />
    </receiver>
    <soldTo>
      <address1>111</address1>
      <address2 />
      <code>1723</code>
      <country>New Zealand</country>
      <name>Consignee ABCD</name>
      <phone />
      <place>AUCKLAND</place>
      <postCode />
      <state />
      <suburb>NEWTON</suburb>
      <contact>Contact</contact>
    </soldTo>
    <charge>
      <code>54</code>
    </charge>
    <sender>
      <code>23</code>
    </sender>
    <consigneeDeliveryLocation>
      <code>23</code>
    </consigneeDeliveryLocation>
    <deliveryInstructions>deliveryInstructions</deliveryInstructions>
    <comment1>Comment1</comment1>
    <comment2>Comment2</comment2>
    <comment3>Comment3</comment3>
    <serviceProvider>
      <name>Mainfreight</name>
    </serviceProvider>
    <orderType>N</orderType>
    <repCode>4</repCode>
    <repName>[repName]</repName>
    <requiredDate>2017-05-31</requiredDate>
    <etaDate>2000-06-02</etaDate>
    <miscChargeAmount>4.50</miscChargeAmount>
    <freightCharge>23.14</freightCharge>
    <taxAmount>54.66</taxAmount>
    <pallets>1</pallets>
    <weight>2.7</weight>
    <volume>4.99</volume>
    <invoicedNetAmount>54.54</invoicedNetAmount>
    <vipEmailAddress>test@mainfreight.co.nz</vipEmailAddress>
    <customStockStatusCode>3</customStockStatusCode>
    <urgent>true</urgent>
    <dutyFree>true</dutyFree>
    <timesLotRequired>1</timesLotRequired>
    <booking>
      <fromDateTime>2021-06-02 11:11:00</fromDateTime>
      <toDateTime>2022-06-14 11:11:00</toDateTime>
      <reference>[reference]</reference>
      <comment>[comment]</comment>
    </booking>
    <serviceLevel>Metro</serviceLevel>
    <callRequired>false</callRequired>
	<externalReferences>
	    <externalSystem>
	    	<code>SPSCommerce</code>
		<references>
		      <reference>
		        <referenceType>Department</referenceType>
		        <value>PurchaseOrderNumber</value>
		      </reference>
		 </references>
	    </externalSystem>
	</externalReferences>
    <orderLines>
      <orderLine>
        <lineNo>1</lineNo>
        <units>1.67</units>
        <backOrderUnits>2</backOrderUnits>
        <retailPrice>54.0</retailPrice>
        <discountPrice>23.5</discountPrice>
        <costPrice>3.5</costPrice>
        <extendedPrice>5.50</extendedPrice>
        <miscCharge>
          <amount>11.0</amount>
          <description>[name]</description>
        </miscCharge>
        <receiverStock>
          <code>123</code>
        </receiverStock>
        <packType>EACH</packType>
        <weight>23.66</weight>
        <volume>23.33</volume>
        <contingencyPrice>332.5</contingencyPrice>
        <freightClass>50</freightClass>
        <kitsetCode />
        <product>
          <code>{{productCode}}</code>
          <description>My Product</description>
          <alternativeDescription>{ProductAltDescription}</alternativeDescription>
        </product>
        <grade1>[grade1]</grade1>
        <grade2>[grade2]</grade2>
        <grade3>[grade3]</grade3>
        <expiryDate>2049-03-03</expiryDate>
        <packingDate>2059-02-12</packingDate>
        <underBond>1</underBond>
        <note>Product Line</note>
        <externalReferences>
	      <externalSystem>
		 <code>SPSCommerce</code>
		    <references>
			<reference>
			   <referenceType>BuyerPartNumber</referenceType>
			        <value>BuyerPartNumber</value>
			</reference>
	            </references>
	       </externalSystem>
    	</externalReferences>
        <destinations />
      </orderLine>
    </orderLines>
</order>

You are going to get a XML document similar to this:

  • XML RESPONSE
< > grab code
<order>
    <id>00000000-0000-0000-0000-000000000000</id>
    <orderReference>{OurReference}</orderReference>
    <customerOrderReference>{YourReference}</customerOrderReference>
    <receiverReference>{YourReceiverReference}</receiverReference>
    <carrierReceiver>{CarrirerReference}</carrierReceiver>
    <crossDocReference>{CrossDocReference}</crossDocReference>
    <warehouse>
        <code>{{warehouseCode}}</code>
    </warehouse>
    <receiverGroup>
        <code>2</code>
    </receiverGroup>
    <customer>
        <code>{{customerCode}}</code>
    </customer>
    <receiver>
        <address1>1115 broadway floor 3</address1>
        <address2/>
        <code>179707</code>
        <country>US</country>
        <name>Sage,Ashique</name>
        <phone>(718) 926-7450</phone>
        <place>New York</place>
        <postCode>10010</postCode>
        <state>NY</state>
        <suburb />
    </receiver>
    <soldTo>
      <address1>111</address1>
      <address2 />
      <code>1723</code>
      <country>New Zealand</country>
      <name>Consignee ABCD</name>
      <phone />
      <place>AUCKLAND</place>
      <postCode />
      <state />
      <suburb>NEWTON</suburb>
      <contact>Contact</contact>
    </soldTo>
    <charge>
      <code>54</code>
    </charge>
    <sender>
      <code>23</code>
    </sender>
    <consigneeDeliveryLocation>
      <code>23</code>
    </consigneeDeliveryLocation>
    <deliveryInstructions>deliveryInstructions</deliveryInstructions>
    <comment1>Comment1</comment1>
    <comment2>Comment2</comment2>
    <comment3>Comment3</comment3>
    <serviceProvider>
      <name>Mainfreight</name>
    </serviceProvider>
    <orderType>N</orderType>
    <repCode>4</repCode>
    <repName>[repName]</repName>
    <requiredDate>2017-05-31</requiredDate>
    <etaDate>2000-06-02</etaDate>
    <miscChargeAmount>4.50</miscChargeAmount>
    <freightCharge>23.14</freightCharge>
    <taxAmount>54.66</taxAmount>
    <pallets>1</pallets>
    <weight>2.7</weight>
    <volume>4.99</volume>
    <invoicedNetAmount>54.54</invoicedNetAmount>
    <vipEmailAddress>test@mainfreight.co.nz</vipEmailAddress>
    <customStockStatusCode>3</customStockStatusCode>
    <urgent>true</urgent>
    <dutyFree>true</dutyFree>
    <timesLotRequired>1</timesLotRequired>
    <booking>
      <fromDateTime>2021-06-02 11:11:00</fromDateTime>
      <toDateTime>2022-06-14 11:11:00</toDateTime>
      <reference>[reference]</reference>
      <comment>[comment]</comment>
    </booking>
    <serviceLevel>Metro</serviceLevel>
    <callRequired>false</callRequired>
	<externalReferences>
	    <externalSystem>
	    	<code>SPSCommerce</code>
		<references>
		     <reference>
		        <referenceType>Department</referenceType>
		        <value>PurchaseOrderNumber</value>
		     </reference>
		</references>
	     </externalSystem>
	</externalReferences>
    <orderLines>
      <orderLine>
        <lineNo>1</lineNo>
        <units>1.67</units>
        <backOrderUnits>2</backOrderUnits>
        <retailPrice>54.0</retailPrice>
        <discountPrice>23.5</discountPrice>
        <costPrice>3.5</costPrice>
        <extendedPrice>5.50</extendedPrice>
        <miscCharge>
          <amount>11.0</amount>
          <description>[name]</description>
        </miscCharge>
        <receiverStock>
          <code>123</code>
        </receiverStock>
        <packType>EACH</packType>
        <weight>23.66</weight>
        <volume>23.33</volume>
        <contingencyPrice>332.5</contingencyPrice>
        <freightClass>50</freightClass>
        <kitsetCode />
        <product>
          <code>{{productCode}}</code>
          <description>My Product</description>
          <alternativeDescription>{ProductAltDescription}</alternativeDescription>
        </product>
        <grade1>[grade1]</grade1>
        <grade2>[grade2]</grade2>
        <grade3>[grade3]</grade3>
        <expiryDate>2049-03-03</expiryDate>
        <packingDate>2059-02-12</packingDate>
        <underBond>1</underBond>
        <note>Product Line</note>
        <externalReferences>
	      	<externalSystem>
		    <code>SPSCommerce</code>
		    <references>
		       <reference>
			   <referenceType>BuyerPartNumber</referenceType>
			   <value>BuyerPartNumber</value>
		        </reference>
		    </references>
	         </externalSystem>
    	</externalReferences>
        <destinations />
      </orderLine>
    </orderLines>
</order>
NOTE: Content in the panels below this point are not visible on the site unless used by other features e.g. gadgets, OB&E, etc.