Webhook
JSON
|
{ "event": "order.created", "payload": { "_id": "6410a184d806b3b2b9010078", "tenant_id": 1005, "merchant_id": "633ec9d2f2580c845c0fa515", "user_id": 3477, "user": { "id": 3477, "tenant_id": 1005, "first_name": "Jamie", "last_name": "Stephens", "mobile": "+447841582147", "mobile_verified_at": null, "email": "jamie@crispandfry.co.uk", "email_verified_at": null, "country_code": "GB", "is_new_user": true, "status": 1, "created_at": "2023-03-14T16:30:54.000000Z", "updated_at": "2023-03-14T16:30:54.000000Z", "deleted_at": null, "tenants_limit": 3, "full_name": "Jamie Stephens", "status_name": "active", "is_email_verified": false, "is_mobile_verified": false, "roles": [ "T1004" ], "permissions": [ "ManageUser" ], "admin_tenants": [], "merchant_users": [], "social_accounts": [], "redirect_panel": "tenant" }, "cart": { "_id": "6410a105d0c440632b0590e5", "tenant_id": 1005, "cart_items": [ { "merchant_id": "633ec9d2f2580c845c0fa515", "product_id": "63437e37d41d765a630b506c", "item_image_url": "https://cdn-upload.hyperzod.app/public/1005/images/9559e455-1436-4460-8b06-b24294f49cbd.png", "product_name": "Bigmuscles Nutrition Premium Gold Whey 1Kg Whey Protein Isolate Blend | USA FDA REGD. BRAND", "quantity": 1, "product_price": 55, "product_options": [], "discount_rate": 0, "tax_percent": 0, "sub_total_amount": 55, "product_price_formatted": "β¬55.00", "sub_total_amount_formatted": "β¬55.00", "sub_total_amount_with_tax": 55, "tax": 0, "sub_total_amount_with_tax_formatted": "β¬55.00", "tax_formatted": "β¬0.00" } ], "total_items": 1, "total_amount": 59.16, "is_updated": false, "updated_at": "2023-03-14T16:32:04.891000Z", "created_at": "2023-03-14T16:29:57.511000Z", "raw_calculation": { "delivery_fee": 4, "delivery_tax": 0.16, "sub_total_amount": 55, "tax": 0, "total_amount": 59.16 }, "sub_total_amount": 55, "message": [ "Cart does not have options" ], "custom_charges": [], "delivery_fee": 4, "delivery_tax": 0.16, "is_delivery_tax_applied": true, "tax": 0, "user_id": 3477, "cart_id": "6410a105d0c440632b0590e5", "total_amount_formatted": "β¬59.16", "sub_total_amount_formatted": "β¬55.00", "discount_amount_formatted": "β¬0.00", "tax_formatted": "β¬0.00", "delivery_fee_formatted": "β¬4.00", "delivery_tax_formatted": "β¬0.16", "currency_setting": { "code": "EUR", "symbol_direction": "left", "symbol_type": "symbol_native", "symbol": "β¬", "symbol_native": "β¬" } }, "merchant": { "_id": "633ec9d2f2580c845c0fa515", "tenant_id": 1005, "phone": null, "language_translation": [ { "locale": "en", "key": "name", "value": "Alex Medicine" } ], "email": "A@GMAIL.COM", "address": "13505 Geneva Street", "delivery_by": "tenant", "accepted_order_types": [ "delivery" ], "merchant_package_id": null, "commission": { "type": "percentage", "value": 10, "calculate_on_status": 1 }, "group_ids": [], "merchant_category_ids": [], "status": true, "delivery_amount": 4, "min_order_amount": 0, "average_rating": 0, "is_accepting_orders": true, "is_open": true, "merchant_id": "633ec9d2f2580c845c0fa515", "slug": "alex-medicine", "images": { "cover": { "image_url": "https://cdn-upload.hyperzod.app/public/1005/images/f2737e83-5be3-4c85-bcd4-84a1d0b3b5aa.png", "image_thumb_url": "https://cdn-upload.hyperzod.app/public/1005/images/thumb-f2737e83-5be3-4c85-bcd4-84a1d0b3b5aa.png" }, "logo": { "image_url": "https://cdn-upload.hyperzod.app/public/1005/images/ed7ef982-f8cb-44b6-a251-c1ff1310ac18.png", "image_thumb_url": "https://cdn-upload.hyperzod.app/public/1005/images/thumb-ed7ef982-f8cb-44b6-a251-c1ff1310ac18.png" } }, "delivery_location_type": "radius", "delivery_radius": 20000, "delivery_radius_meters": 20000000, "delivery_radius_unit": "km", "merchant_location": { "type": "Point", "coordinates": [ 81.0072193, 26.8496217 ] }, "comment": "Opening next on Tuesday at 00:00", "merchant_address_location": [ 26.8496217, 81.0072193 ], "is_featured": null, "featured_rank": 0, "is_sponsored": true, "sponsored_expiration": "2023-02-01 00:00:00", "sponsored_text": null, "sponsored_rank": 0, "delivery_setting": { "default_type": "fixed", "delivery_tax_enabled": true, "delivery_tax_percent": 4, "types": { "slabs": { "unit": "mi", "slabs": [ { "distance_from": 0, "distance_to": 1, "fee": 0, "time": 0 } ] }, "fixed": { "amount": 4, "time": "30 mins" } } }, "scheduling_setting": { "enable": true, "is_forced_enabled": false, "days_from": 0, "days_to": 4, "hours_from_current_time": 2, "hours_from_merchant_opening_time": 0, "hours_from_merchant_closing_time": 0 }, "merchant_categories": [], "name": "Alex Medicine", "language_translate_columns": [ "name" ] }, "payment_mode_id": 3, "payment_mode": { "id": 2, "tenant_id": 1005, "payment_mode_id": 3, "language_translation": [ { "key": "alias", "value": "Cash on delivery", "locale": "en" } ], "settings_value": null, "active": true, "alias": "Cash on delivery", "payment_mode": { "id": 3, "name": "cod", "logo_url": "https://cdn-store.hyperzod.app/assets/images/pg/cash.svg", "alias": "cod", "is_offline_mode": true, "description": null, "active": true, "is_default": true, "created_at": "2023-02-23T14:52:37.000000Z", "updated_at": "2023-02-23T14:52:37.000000Z", "deleted_at": null, "supported_currencies": [] } }, "order_type": "delivery", "review": null, "order_status": 1, "order_amount": 59.16, "order_amount_formatted": "β¬59.16", "currency": { "code": "EUR", "symbol_direction": "left", "symbol_type": "symbol_native", "symbol": "β¬", "symbol_native": "β¬" }, "delivery_timestamp_human": { "date": "2023-03-14", "time": "16:32 - 17:32", "local_date": "2023-03-14", "local_time": "22:02 - 23:02" }, "delivery_timestamp_unix": 1678811524, "is_scheduled": false, "is_user_first_order": true, "push_auth_token": null, "meta": { "custom_form": [] }, "ip": "80.41.199.102", "device": "web", "delivery_address": { "_id": "6410a18143b2b8f42e078fd4", "tenant_id": 1005, "user_id": 3477, "address_type": "home", "location_lat_lon": [ 51.8600262, -4.2998538 ], "address": "120-121 Priory St, Carmarthen SA31 1NB, UK", "building": "121", "area": null, "landmark": null, "city": null, "region": "Wales", "zip_code": null, "country": "United Kingdom", "country_code": "GB", "updated_at": "2023-03-14T16:32:01.546000Z", "created_at": "2023-03-14T16:32:01.546000Z" }, "order_id": 2317, "created_timestamp_unix": 1678811524, "updated_at": "2023-03-14T16:32:04.972000Z", "created_at": "2023-03-14T16:32:04.972000Z", "order_status_history": [ { "order_status": 1, "timestamp": "2023-03-14 16:32:04", "local_timestamp": "2023-03-14 22:02:04" } ], "order_uuid": "6410a184d806b3b2b9010078", "local_created_at": "2023-03-14 22:02:04", "order_type_label": "Delivery", "allowed_update_order_status": { "merchant": [ 1, 2, 3, 6 ] }, "mq_queue": "webhook.order.created", "binding_key": "order.created" } }
ο»Ώ
ο»Ώ