{
"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
{"status":"Order accepted","entrenue_order_id":1234}
<?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