Skip to content

Instantly share code, notes, and snippets.

@jphungcode
Created October 21, 2020 02:54
Show Gist options
  • Save jphungcode/47f6f25bdf33d5fd694cc867566070b8 to your computer and use it in GitHub Desktop.
Save jphungcode/47f6f25bdf33d5fd694cc867566070b8 to your computer and use it in GitHub Desktop.
Woocommerce webhook payload data
"id": 52,
"parent_id": 0,
"status": "pending",
"order_key": "order_5836d85314887",
"number": 52,
"currency": "EUR",
"version": "2.6.8",
"prices_include_tax": false,
"date_created": "2016–11–24T12:08:00",
"date_modified": "2016–11–24T12:08:51",
"customer_id": 0,
"discount_total": "0.00",
"discount_tax": "0.00",
"shipping_total": "0.00",
"shipping_tax": "0.00",
"cart_tax": "0.00",
"total": "0.00",
"total_tax": "0.00",
"billing": {
"first_name": "Test",
"last_name": "Test",
"company": "Test",
"address_1": "asd",
"address_2": "123",
"city": "Test",
"state": "H",
"postcode": "12345",
"country": "DE",
"email": "test@example.com",
"phone": "123"
},
"shipping": {
"first_name": "Test",
"last_name": "Test",
"company": "Test",
"address_1": "asd",
"address_2": "123",
"city": "Test",
"state": "H",
"postcode": "12345",
"country": "DE"
},
"payment_method": "paypal",
"payment_method_title": "PayPal",
"transaction_id": "",
"customer_ip_address": "",
"customer_user_agent": "",
"created_via": "",
"customer_note": "",
"date_completed": "2016–11–24T12:08:51",
"date_paid": "",
"cart_hash": "",
"line_items": [
{
"id": 13,
"name": "Yellow Short With Variants",
"sku": "YSWV-L",
"product_id": 12,
"variation_id": 22,
"quantity": 1,
"tax_class": "",
"price": "6.00",
"subtotal": "6.00",
"subtotal_tax": "0.00",
"total": "6.00",
"total_tax": "0.00",
"taxes": [],
"meta": [
{
"key": "size",
"label": "Size",
"value": "L"
}
]
}
],
"tax_lines": [],
"shipping_lines": [],
"fee_lines": [],
"coupon_lines": [],
"refunds": [],
"_links": {
"self": [
{
"href": "http://138.68.91.142/wp-json/wc/v1/orders/52"
}
],
"collection": [
{
"href": "http://138.68.91.142/wp-json/wc/v1/orders"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment