order.post

POST: order

Schema:
{
  "customer_reference": "",
  "debtor": "",
  "delivery_instructions": "",
  "notes": "",
  "header_notes": [
    {
      "type": "",
      "text": ""
    }
  ],
  "delivery_address": {
    "address1": "",
    "address2": "",
    "address3": "",
    "address4": "",
    "address5": "",
    "address6": "",
    "address7": "",
    "postcode": "",
    "phone": ""
  },
  "payment": {
    "method": "",
    "reference": "",
    "amount": "",
    "currency_code": "",
    "bank_code": "",
    "tax_rate_code": ""
  },
  "lines": [
    {
      "quantity": "",
      "type": "",
      "item_code": "",
      "uom": "",
      "price_ex_tax": "",
      "price_inc_tax": "",
      "charge_type": "",
      "description": "",
      "carrier_code": "",
      "uom_qty": "",
      "shipped": "",
      "uom_shipped": "",
      "back_ordered": "",
      "uom_back_ordered": "",
      "discount_rate": "",
      "warehouse": ""
    }
  ]
}
Schema:
<order>
  <customer-reference></customer-reference>
  <debtor></debtor>
  <delivery-instructions></delivery-instructions>
  <notes></notes>
  <header-notes type="array">
    <header-note>
      <type></type>
      <text></text>
    </header-note>
  </header-notes>
  <delivery-address>
    <address1></address1>
    <address2></address2>
    <address3></address3>
    <address4></address4>
    <address5></address5>
    <address6></address6>
    <address7></address7>
    <postcode></postcode>
    <phone></phone>
  </delivery-address>
  <payment>
    <method></method>
    <reference></reference>
    <amount></amount>
    <currency-code></currency-code>
    <bank-code></bank-code>
    <tax-rate-code></tax-rate-code>
  </payment>
  <lines type="array">
    <line>
      <quantity></quantity>
      <type></type>
      <item-code></item-code>
      <uom></uom>
      <price-ex-tax></price-ex-tax>
      <price-inc-tax></price-inc-tax>
      <charge-type></charge-type>
      <description></description>
      <carrier-code></carrier-code>
      <uom-qty></uom-qty>
      <shipped></shipped>
      <uom-shipped></uom-shipped>
      <back-ordered></back-ordered>
      <uom-back-ordered></uom-back-ordered>
      <discount-rate></discount-rate>
      <warehouse></warehouse>
    </line>
  </lines>
</order>