Create a new order

POST https://api.entrenue.com/orders


Required Fields
  • email - Your Entrenue email/username. This is NOT the customer/shipping email
  • apikey - Your Entrenue API key (found under your account section on entrenue.com).
  • products - An array of products and quantities to order.
  • po_number - Order purchase order number (must be unique).
  • name - Shipping name.
  • address_line1 - Shipping address line 1.
  • city - Shipping city.
  • state - Shipping state/province.
  • postcode - Shipping zipcode/postcode.
  • country - Shipping country.
  • shipping_method - Shipping method.
Optional Fields
  • address_line2 - Shipping address line 2.
  • instructions - Special instructions.
Shipping Methods
The following are values allowed in the shipping_method field
  • 3DAY/CHG GROUND - 3 Day/Chg Ground
  • BEST WAY - Best/Cheapest Way
  • DHL INTERNATION - DHL (International Shipments)
  • FEDEX COLLECT - FedEx Collect
  • FEDEX GROUND - FedEx Ground
  • FEDEX HOME - FedExHome(Residential Only)
  • FEDEX PRIORITY - FedExPriorityOvernight(by12PM)
  • FEDEX THEIR ACC - FedEx Their Account
  • FEDEX2DAY - FedEx 2 DAY (BY 430PM)
  • FEDEX2DAYAM - FedEx 2 DAY (AM DELIVERY)
  • FEDEX3DAY - FedExExpressSaver(3 DAY)
  • FEDEXAMNEXTDAY - FedEx First Overnight (AM)
  • FEDEXLTLGROUND - FedEx LTL- Ground
  • FEDEXLTLPRIORIT - FedEx LTL - PRIORITY
  • FEDEXOVERNIGHT - FedEx Standard Overnight(3PM)
  • FEDEXSMARTPOST - "FedEx SmartPost (PO Box - APO)"
  • FREIGHT COLLECT - Freight Collect
  • INTELLIQUICK - Intelliquick
  • OTHER - Other
  • OUR FEDEX - Our FedEx Acct. 411811328
  • OUR UPS - Our UPS Acct. 3V73E7
  • UPS 2 DAY AIR - UPS 2 Day Air
  • UPS 2 DAY AIRAM - UPS 2 Day Air A.M.
  • UPS 3 DAY - UPS 3 Day
  • UPS FREIGHT - UPS Freight
  • UPS GROUND - UPS GROUND
  • UPS LA HOT - UPS LA HOT
  • UPS THEIR ACCT - UPS Their Account
  • UPSNEXTDAYAIR - UPS Next Day Air
  • UPSNEXTDAYAM - UPS Next Day A.M.
  • UPSNEXTDAYSAT - UPS Next Day Saturday Delivery
  • UPSNEXTDAYSAVER - UPS Next Day Saver
  • USPS FIRST INTL - USPS First Class International
  • USPS FIRSTCLASS - USPS First Class Mail
  • USPS MEDIA MAIL - USPS Medial Mail
  • USPS PRIORITY - USPS Priority Mail
  • USPSPRIOREXPINT - USPS Priority Express Intnl.
  • USPSPRIORITYEXP - USPS Priority Express Mail
  • USPSPRIORITYINT - USPS Priority International
  • WILLCALL-DEL - Will Call/Deliver
Example Call (JSON)
{
   "email": "user@email.com",
   "apikey": "12345",
   "po_number": "67890",
   "name": "Marcia West",
   "address_line1": "64586 Macy Keys",
   "address_line2": "Suite 062",
   "city": "West Willisbury",
   "state": "Massachusetts",
   "postcode": "58292-7059",
   "country": "United States",
   "shipping_method": "Ground",
   "instructions": "Please email me the invoice",
   "products": [
      {
         "model": "1234",
         "quantity": 1
      },
      {
         "model": "5678",
         "quantity": 2
      }
   ]
}
                
curl -X POST -d $JSON_CONTENT https://api.entrenue.com/orders
Example Response (JSON)
{"status":"Order accepted","entrenue_order_id":1234}                
Example Call (XML)
<?xml version="1.0" encoding="UTF-8"?>
<xml>
   <email>user@email.com</email>
   <apikey>12345</apikey>
   <po_number>67890</po_number>
   <name>Marcia West</name>
   <address_line1>64586 Macy Keys</address_line1>
   <address_line2>Suite 062</address_line2>
   <city>West Willisbury</city>
   <state>Massachusetts</state>
   <postcode>58292-7059</postcode>
   <country>United States</country>
   <shipping_method>Ground</shipping_method>
   <instructions>Please email me the invoice</instructions>
   <products>
      <product>
         <model>1234</sku>
         <quantity>1</quantity>
      </product>
      <product>
         <model>5678</sku>
         <quantity>2</quantity>
      </product>
   </products>
</xml>
                
curl -X POST -H "Content-Type: application/xml" -d $XML_CONTENT https://api.entrenue.com/orders
Example Response (XML)