POST api/Dunzo/Dunzo_callbackresponse

Request Information

URI Parameters

None.

Body Parameters

Uk_Dunzoresponse
NameDescriptionTypeAdditional information
event_type

string

None.

event_id

string

None.

task_id

string

None.

state

string

None.

reference_id

string

None.

event_timestamp

integer

None.

eta

Eta

None.

runner

Runner

None.

request_timestamp

integer

None.

locations_order

Collection of Locations_Order

None.

current_drop_id

string

None.

added_locations

Collection of Added_Locations

None.

cancelled_locations

Collection of Cancelled_Locations

None.

is_return_task

boolean

None.

price

decimal number

None.

total_time

integer

None.

cancelled_by

string

None.

cancellation_reason

string

None.

cod_amount_collected

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "event_type": "sample string 1",
  "event_id": "sample string 2",
  "task_id": "sample string 3",
  "state": "sample string 4",
  "reference_id": "sample string 5",
  "event_timestamp": 6,
  "eta": {
    "pickup": 1,
    "dropoff": 2
  },
  "runner": {
    "name": "sample string 1",
    "phone_number": "sample string 2",
    "location": {
      "lat": 1.1,
      "lng": 2.1
    }
  },
  "request_timestamp": 7,
  "locations_order": [
    {
      "cancelled_by": "sample string 1",
      "event_timestamp": "sample string 2",
      "state": "sample string 3",
      "reference_id": "sample string 4",
      "cancellation_reason": "sample string 5",
      "type": "sample string 6",
      "is_added": true,
      "is_return": true
    },
    {
      "cancelled_by": "sample string 1",
      "event_timestamp": "sample string 2",
      "state": "sample string 3",
      "reference_id": "sample string 4",
      "cancellation_reason": "sample string 5",
      "type": "sample string 6",
      "is_added": true,
      "is_return": true
    }
  ],
  "current_drop_id": "sample string 8",
  "added_locations": [
    {
      "reference_id": "sample string 1",
      "type": "sample string 2"
    },
    {
      "reference_id": "sample string 1",
      "type": "sample string 2"
    }
  ],
  "cancelled_locations": [
    {
      "cancelled_by": "sample string 1",
      "event_timestamp": 2,
      "reference_id": "sample string 3",
      "cancellation_reason": "sample string 4",
      "type": "sample string 5"
    },
    {
      "cancelled_by": "sample string 1",
      "event_timestamp": 2,
      "reference_id": "sample string 3",
      "cancellation_reason": "sample string 4",
      "type": "sample string 5"
    }
  ],
  "is_return_task": true,
  "price": 10.1,
  "total_time": 11,
  "cancelled_by": "sample string 12",
  "cancellation_reason": "sample string 13",
  "cod_amount_collected": 14.1
}

application/xml, text/xml

Sample:
<DunzoController.Uk_Dunzoresponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1.Controllers">
  <added_locations>
    <DunzoController.Added_Locations>
      <reference_id>sample string 1</reference_id>
      <type>sample string 2</type>
    </DunzoController.Added_Locations>
    <DunzoController.Added_Locations>
      <reference_id>sample string 1</reference_id>
      <type>sample string 2</type>
    </DunzoController.Added_Locations>
  </added_locations>
  <cancellation_reason>sample string 13</cancellation_reason>
  <cancelled_by>sample string 12</cancelled_by>
  <cancelled_locations>
    <DunzoController.Cancelled_Locations>
      <cancellation_reason>sample string 4</cancellation_reason>
      <cancelled_by>sample string 1</cancelled_by>
      <event_timestamp>2</event_timestamp>
      <reference_id>sample string 3</reference_id>
      <type>sample string 5</type>
    </DunzoController.Cancelled_Locations>
    <DunzoController.Cancelled_Locations>
      <cancellation_reason>sample string 4</cancellation_reason>
      <cancelled_by>sample string 1</cancelled_by>
      <event_timestamp>2</event_timestamp>
      <reference_id>sample string 3</reference_id>
      <type>sample string 5</type>
    </DunzoController.Cancelled_Locations>
  </cancelled_locations>
  <cod_amount_collected>14.1</cod_amount_collected>
  <current_drop_id>sample string 8</current_drop_id>
  <eta>
    <dropoff>2</dropoff>
    <pickup>1</pickup>
  </eta>
  <event_id>sample string 2</event_id>
  <event_timestamp>6</event_timestamp>
  <event_type>sample string 1</event_type>
  <is_return_task>true</is_return_task>
  <locations_order>
    <DunzoController.Locations_Order>
      <cancellation_reason>sample string 5</cancellation_reason>
      <cancelled_by>sample string 1</cancelled_by>
      <event_timestamp>sample string 2</event_timestamp>
      <is_added>true</is_added>
      <is_return>true</is_return>
      <reference_id>sample string 4</reference_id>
      <state>sample string 3</state>
      <type>sample string 6</type>
    </DunzoController.Locations_Order>
    <DunzoController.Locations_Order>
      <cancellation_reason>sample string 5</cancellation_reason>
      <cancelled_by>sample string 1</cancelled_by>
      <event_timestamp>sample string 2</event_timestamp>
      <is_added>true</is_added>
      <is_return>true</is_return>
      <reference_id>sample string 4</reference_id>
      <state>sample string 3</state>
      <type>sample string 6</type>
    </DunzoController.Locations_Order>
  </locations_order>
  <price>10.1</price>
  <reference_id>sample string 5</reference_id>
  <request_timestamp>7</request_timestamp>
  <runner>
    <location>
      <lat>1.1</lat>
      <lng>2.1</lng>
    </location>
    <name>sample string 1</name>
    <phone_number>sample string 2</phone_number>
  </runner>
  <state>sample string 4</state>
  <task_id>sample string 3</task_id>
  <total_time>11</total_time>
</DunzoController.Uk_Dunzoresponse>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Uk_Dunzoresponse'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.