Skip to content

Instantly share code, notes, and snippets.

@alejandrofloresm
Created September 23, 2020 02:27
Show Gist options
  • Save alejandrofloresm/0a9294b9d0a8ef8950000f5e6a679bde to your computer and use it in GitHub Desktop.
Save alejandrofloresm/0a9294b9d0a8ef8950000f5e6a679bde to your computer and use it in GitHub Desktop.
Payload
{
"order": {
"id": 52,
"order_number": 52,
"order_key": "order_5836d85314887",
"created_at": "2016-11-24T12:08:00Z",
"updated_at": "2016-11-24T12:08:51Z",
"completed_at": "2016-11-24T12:08:51Z",
"status": "pending",
"currency": "EUR",
"total": "0.00",
"subtotal": "6.00",
"total_line_items_quantity": 1,
"total_tax": "0.00",
"total_shipping": "0.00",
"cart_tax": "0.00",
"shipping_tax": "0.00",
"total_discount": "0.00",
"shipping_methods": "",
"payment_details": {
"method_id": "paypal",
"method_title": "PayPal",
"paid": false
},
"billing_address": {
"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_address": {
"first_name": "Test",
"last_name": "Test",
"company": "Test",
"address_1": "asd",
"address_2": "123",
"city": "H",
"state": "H",
"postcode": "12345",
"country": "DE"
},
"note": "",
"customer_ip": "",
"customer_user_agent": "",
"customer_id": 0,
"view_order_url": "http:\/\/138.68.91.142\/my-account\/view-order\/52",
"line_items": [{
"id": 13,
"subtotal": "6.00",
"subtotal_tax": "0.00",
"total": "6.00",
"total_tax": "0.00",
"price": "6.00",
"quantity": 1,
"tax_class": null,
"name": "Yellow Short With Variants",
"product_id": 22,
"sku": "YSWV-L",
"meta": [{
"key": "size",
"label": "Size",
"value": "L"
}]
}],
"shipping_lines": [],
"tax_lines": [],
"fee_lines": [],
"coupon_lines": [],
"is_vat_exempt": false,
"customer": {
"id": 0,
"email": "test@example.com",
"first_name": "Test",
"last_name": "Test",
"billing_address": {
"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_address": {
"first_name": "Test",
"last_name": "Test",
"company": "Test",
"address_1": "asd",
"address_2": "123",
"city": "Test",
"state": "H",
"postcode": "12345",
"country": "DE"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment