Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Invenco Order Dict

{
  "external_id": "SO12999",
  "type": "Sales Order",
  "channel": "WooCommerce",
  "currency": "AUD",
  "reference": "SO#1234",
  "line_items": [
    {
      "line_number": "1",
      "sku": "ABC123",
      "description": "Blue Widget",
      "qty_ordered": 10,
      "unit_price": 14.95,
      "requires_shipping": true
    },
    {
      "line_number": "2",
      "sku": "XYZ987",
      "description": "Red Widget",
      "qty_ordered": 2,
      "unit_price": 24.95,
      "requires_shipping": true
    }
  ],
  "billing_address": {
    "company_name": "Invenco Pty Ltd",
    "contact_email": "helpdesk@invenco.net",
    "contact_name": "Dave Scott",
    "contact_number": "02 9043 6013",
    "billing_reference": "PO4567",
    "address_type": "Business",
    "address1": "Unit 2",
    "address2": "1 Secombe Place",
    "city": "Moorebank",
    "postcode": "2170",
    "state": "NSW",
    "country": "AU"
  },
  "shipping_address": {
    "company_name": "Invenco Pty Ltd",
    "contact_email": "helpdesk@invenco.net",
    "contact_name": "Dave Scott",
    "contact_number": "02 9043 6013",
    "shipping_reference": "",
    "address_type": "Business",
    "address1": "Unit 2",
    "address2": "1 Secombe Place",
    "city": "Moorebank",
    "postcode": "2170",
    "state": "NSW",
    "country": "AU"
  },
  "shipping_rule": {
    "name": "Standard Shipping",
    "recovery": 12.95
  },
  "tax_rule": {
    "name": "GST",
    "inclusive": true,
    "rate": 0.1
  } 
}
Source by developer.invenco.net #
 
PREVIOUS NEXT
Tagged: #Invenco #Order #Dict
ADD COMMENT
Topic
Name
1+5 =