Created
September 7, 2021 14:24
-
-
Save teer823/b0670117038250379e2d860368e90f7d to your computer and use it in GitHub Desktop.
Webhook data from Woocommerce Order
This file contains 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: 1, | |
parent_id: 0, | |
status: 'completed', | |
currency: 'USD', | |
version: '5.6.0', | |
prices_include_tax: false, | |
date_created: '2021-08-25T14:58:07', | |
date_modified: '2021-08-25T15:00:13', | |
discount_total: '0.00', | |
discount_tax: '0.00', | |
shipping_total: '0.00', | |
shipping_tax: '0.00', | |
cart_tax: '0.00', | |
total: '200.00', | |
total_tax: '0.00', | |
customer_id: 6, | |
order_key: 'wc_order_abcd', | |
billing: { | |
first_name: 'Someone', | |
last_name: '', | |
company: '', | |
address_1: '', | |
address_2: '', | |
city: '', | |
state: '', | |
postcode: '', | |
country: '', | |
email: '', | |
phone: '' | |
}, | |
shipping: { | |
first_name: '', | |
last_name: '', | |
company: '', | |
address_1: '', | |
address_2: '', | |
city: '', | |
state: '', | |
postcode: '', | |
country: '', | |
phone: '' | |
}, | |
payment_method: 'bacs', | |
payment_method_title: 'Advance payment', | |
transaction_id: '', | |
customer_ip_address: '127.0.0.1', | |
customer_user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Safari Line/11.12.1 LIFF', | |
created_via: 'checkout', | |
customer_note: '', | |
date_completed: '2021-08-25T15:00:13', | |
date_paid: '2021-08-25T15:00:13', | |
cart_hash: 'abcdedf', | |
number: '1', | |
meta_data: [ | |
{ id: 1, key: 'is_tax_exempt', value: 'no' }, | |
{ id: 2, key: 'ce4wp_checkout_consent', value: '0' }, | |
{ id: 3, key: '_new_order_email_sent', value: 'true' }, | |
{ id: 4, key: '_wcp_order_payment_id', value: '1' } | |
], | |
line_items: [ | |
{ | |
id: 1, | |
name: 'ProductA', | |
product_id: 1, | |
variation_id: 0, | |
quantity: 1, | |
tax_class: '', | |
subtotal: '200.00', | |
subtotal_tax: '0.00', | |
total: '200.00', | |
total_tax: '0.00', | |
taxes: [], | |
meta_data: [], | |
sku: '', | |
price: 200, | |
parent_name: null | |
} | |
], | |
tax_lines: [], | |
shipping_lines: [], | |
fee_lines: [], | |
coupon_lines: [], | |
refunds: [], | |
date_created_gmt: '2021-08-25T07:58:07', | |
date_modified_gmt: '2021-08-25T08:00:13', | |
date_completed_gmt: '2021-08-25T08:00:13', | |
date_paid_gmt: '2021-08-25T08:00:13', | |
currency_symbol: '$', | |
_links: { | |
self: [ [Object] ], | |
collection: [ [Object] ], | |
customer: [ [Object] ] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment