Last active
July 19, 2019 20:43
-
-
Save ashokrane/1142d8ec35b32e6804fc8c4cf3419884 to your computer and use it in GitHub Desktop.
WooCommerce Order data sent via order.created webhook action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id":1194, | |
"parent_id":0, | |
"number":"1194", | |
"order_key":"wc_order_YzXqv7u79WjZS", | |
"created_via":"checkout", | |
"version":"3.6.4", | |
"status":"on-hold", | |
"currency":"USD", | |
"date_created":"2019-07-20T02:08:30", | |
"date_created_gmt":"2019-07-19T20:38:30", | |
"date_modified":"2019-07-20T02:08:31", | |
"date_modified_gmt":"2019-07-19T20:38:31", | |
"discount_total":"0.00", | |
"discount_tax":"0.00", | |
"shipping_total":"200.00", | |
"shipping_tax":"0.00", | |
"cart_tax":"0.00", | |
"total":"4252.00", | |
"total_tax":"0.00", | |
"prices_include_tax":true, | |
"customer_id":1, | |
"customer_ip_address":"::1", | |
"customer_user_agent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/75.0.3770.142 Safari\/537.36", | |
"customer_note":"", | |
"billing":{ | |
"first_name":"Vishal", | |
"last_name":"Kothari", | |
"company":"Tyche Softwares", | |
"address_1":"B 201, Apsara Building, Rd. 7,", | |
"address_2":"Daulat Nagar, Borivali East", | |
"city":"Mumbai", | |
"state":"MH", | |
"postcode":"400066", | |
"country":"IN", | |
"email":"[email protected]", | |
"phone":"+919819888007" | |
}, | |
"shipping":{ | |
"first_name":"Vishal", | |
"last_name":"Kothari", | |
"company":"Tyche Softwares", | |
"address_1":"B 201, Apsara Building, Rd. 7,", | |
"address_2":"Daulat Nagar, Borivali East", | |
"city":"Mumbai", | |
"state":"MH", | |
"postcode":"400066", | |
"country":"IN" | |
}, | |
"payment_method":"bacs", | |
"payment_method_title":"Direct bank transfer", | |
"transaction_id":"", | |
"date_paid":null, | |
"date_paid_gmt":null, | |
"date_completed":null, | |
"date_completed_gmt":null, | |
"cart_hash":"2774074f472114fd92b2aebe8cb33022", | |
"meta_data":[ | |
{ | |
"id":16021, | |
"key":"is_vat_exempt", | |
"value":"no" | |
}, | |
{ | |
"id":16023, | |
"key":"_total_delivery_charges", | |
"value":"40" | |
}, | |
{ | |
"id":16024, | |
"key":"Delivery Date", | |
"value":"Wednesday, 24 July, 2019" | |
}, | |
{ | |
"id":16025, | |
"key":"_orddd_timestamp", | |
"value":"1563926400" | |
}, | |
{ | |
"id":16026, | |
"key":"Time Slot", | |
"value":"10:30 PM - 10:45 PM" | |
}, | |
{ | |
"id":16027, | |
"key":"_orddd_time_slot", | |
"value":"22:30 - 22:45" | |
}, | |
{ | |
"id":16028, | |
"key":"_orddd_timeslot_timestamp", | |
"value":"1564007400" | |
} | |
], | |
"line_items":[ | |
{ | |
"id":463, | |
"name":"500 GB Hard disk drive", | |
"product_id":375, | |
"variation_id":0, | |
"quantity":1, | |
"tax_class":"", | |
"subtotal":"4000.00", | |
"subtotal_tax":"0.00", | |
"total":"4000.00", | |
"total_tax":"0.00", | |
"taxes":[ | |
], | |
"meta_data":[ | |
], | |
"sku":"", | |
"price":4000 | |
}, | |
{ | |
"id":464, | |
"name":"Panera Sandwich - Mozzarella", | |
"product_id":445, | |
"variation_id":447, | |
"quantity":1, | |
"tax_class":"", | |
"subtotal":"12.00", | |
"subtotal_tax":"0.00", | |
"total":"12.00", | |
"total_tax":"0.00", | |
"taxes":[ | |
], | |
"meta_data":[ | |
{ | |
"id":3678, | |
"key":"select-your-cheese", | |
"value":"Mozzarella" | |
} | |
], | |
"sku":"", | |
"price":12 | |
} | |
], | |
"tax_lines":[ | |
], | |
"shipping_lines":[ | |
{ | |
"id":466, | |
"method_title":"Flat rate", | |
"method_id":"flat_rate", | |
"instance_id":"3", | |
"total":"200.00", | |
"total_tax":"0.00", | |
"taxes":[ | |
], | |
"meta_data":[ | |
{ | |
"id":3690, | |
"key":"Items", | |
"value":"500 GB Hard disk drive × 1, Panera Sandwich - Mozzarella × 1" | |
} | |
] | |
} | |
], | |
"fee_lines":[ | |
{ | |
"id":465, | |
"name":"Delivery Charges", | |
"tax_class":"0", | |
"tax_status":"taxable", | |
"amount":"40", | |
"total":"40.00", | |
"total_tax":"0.00", | |
"taxes":[ | |
], | |
"meta_data":[ | |
] | |
} | |
], | |
"coupon_lines":[ | |
], | |
"refunds":[ | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment