ORDER FAILED WEBHOOK EVENT

ORDER FAILED WEBHOOK EVENT

  1.  Go to  Integration > Webhooks > Custom > Webhook Integration
  2.  Select EVENT as ORDER_FAILURE
  3.  Add your “webhook URL” and auth token

There can be 3 types of failure events as

1) “payment window expires”

2) “invalid job request”

3) “task creation error”

For this event, the API specified in the webhook URL will be hit with the following request data.

{

   “transaction_id”: “7079098392796138004004”,

   “task_request”: {

      “AppIP”: “49.249.114.206”,

      “amount”: 389,

      “user_id”: 1556986,

      “latitude”: “28.614820”,

      “products”: “[{\”product_id\”:108174148,\”unit_price\”:180,\”quantity\”:1,\”total_price\”:180,\”customizations\”:[],\”return_enabled\”:0}]”,

      “timezone”: -330,

      “vertical”: 0,

      “longitude”: “77.219989”,

      “task_type”: 1,

      “vendor_id”: 6790272,

      “has_pickup”: “1”,

      “address_obj”: {

         “house”: “”,

         “landmark”: “”,

         “postal_code”: “”

      },

      “currency_id”: 66,

      “layout_type”: 0,

      “access_token”: “05bb8999d8cfdcdfca524e9460bd1e5b0cbef6d13cc0c29475c83be48d9ed8c690734e15169aec2394e37d8115f3aee3adf1dd1b07a1626d1ede857fee42f860”,

      “has_delivery”: “0”,

      “is_scheduled”: 0,

      “home_delivery”: 1,

      “customer_email”: “brody555@yopmail.com”,

      “customer_phone”: “+9178979879879”,

      “payment_method”: 263,

      “return_enabled”: 0,

      “delivery_charge”: 0,

      “job_description”: “”,

      “job_pickup_name”: “Brody”,

      “subtotal_amount”: 180,

      “job_pickup_email”: “brody555@yopmail.com”,

      “job_pickup_phone”: “+9178979879879”,

      “checkout_template”: “[]”,

      “customer_username”: “Brody”,

      “job_pickup_address”: “New Delhi, India”,

      “job_pickup_datetime”: “2024-02-14T16:53:06.836Z”,

      “job_pickup_latitude”: “28.614820”,

      “marketplace_user_id”: 1556621,

      “job_pickup_longitude”: “77.219989”,

      “marketplace_reference_id”: “baa36b01792300a19436b6cc7d36aaf0”,

      “is_app_product_tax_enabled”: 1,

      “failure_reason”: “invalid job request”

   },

   “webhook_event”: {

      “entity”: “ORDER”,

      “type”: “STATUS_CHANGE”,

      “event”: “ORDER_FAILURE”,

      “event_id”: 6790272

   }

}

 

 

 

Was this article helpful?

Leave A Comment?