{
"type": "order.completed",
"webhook_id": "wh_6f9a8b7c5d4e3f2a1b",
"data": {
"order": {
"id": "ord_20230915082347",
"status": "COMPLETED",
"amount": "179.99",
"currency": "USD",
"delivery_time": "instant",
"cart": {
"id": "crt_3e2d1c0b9a8f7e6d",
"line_items": [
{
"id": "prd_6d4c3b25d4c3b2",
"price": "199.99",
"quantity": 1
}
]
},
"customer": {
"email": "emily.johnson@example.com",
"billing_address": {
"line1": "742 Evergreen Terrace",
"line2": "",
"city": "Springfield",
"region": "OR",
"postal_code": "97477",
"country": "US"
},
"geocoding": {
"ip": "203.0.113.42",
"distance_between_ip_and_billing": "12.7",
"address": {
"city": "Eugene",
"region": "OR",
"postal_code": "97401",
"country": "US"
}
}
},
"payment_details": {
"id": "py_9h8g7f6e5d4c3b2a1",
"status": "PAID",
"method": "applepay",
"dynamic": false,
"currency": "USD",
"breakdown": {
"subtotal": "199.99",
"discount": "-20.00",
"total_amount": "179.99",
"payment_processor_fees": "5.22",
"application_fee": "8.99",
"taxes": "14.40",
"settled_amount": "151.38"
},
"receipt_url": "https://receipts.pandabase.io/r_5k4j3h2g1f0e9d8c7"
},
"discount": {
"applied": true,
"code": "NEWYEAR2024"
}
}
}
}