igmarin
4/4/2017 - 7:00 PM

order_example

order_example

{
   "state": "confirm",
    "order":{
   "item_total": "6.95",
   "total": "7.65",
   "ship_total": "0.7",
   
   "payment_total": "0.0",
   "email": "bb@bb.bb",
   "special_instructions": "Do not drop the box",
   "replace_product": true,
   "payment_methods": [{
       "name": "Cash on delivery",
       "method_type": "check"
   }],
   "bill_address_attributes": {
       "firstname": "Ish",
       "lastname": "Ma",
       "full_name": "Ish Ma",
       "address1": "Hah haha 12",
       "address2": "",
       "city": "Khan",
       "zipcode": "90210",
       "phone": "4777929000",
       "company": "",
       "alternative_phone": null,
       "country_id": 1,
       "state_id": 14,
       "district_id": 20

   },
   "ship_address_attributes": {
       "firstname": "Ish",
       "lastname": "Ma",
       "full_name": "Ish Ma",
       "address1": "Hah haha 12",
       "address2": "",
       "city": "Khan",
       "zipcode": "90210",
       "phone": "4777929000",
       "company": "",
       "alternative_phone": null,
       "country_id": 1,
       "state_id": 14,
        "district_id": 20
   },
   "payments": [{
       "payment_method_id": 2,
       "state": "checkout"
   }],
   "shipments_attributes": {
     "0": {
       "selected_shipping_rate_id": 1,
       "id": 1
     }
   }
}}