Create ride status by ID (not-picked-up)
POST {{AppUrl}}/api/v1/carrier/ride/{{Ride ID}}/status
Introduction
Add a 'not-picked-up' status to a ride, indicating that the customer has not been picked up. No additional statuses can be added to the ride.
Structure
Item | Type | Plurality | Options | Required | Description | Validation | |
---|---|---|---|---|---|---|---|
type | varchar(255) | 1 | not-picked-up | yes | Status type. | ||
timestamp | DateTime | 1 | yes | Date/time of this status. | ISO date. | ||
coordinate | object | 1 | yes | Coordinate of this status. | |||
latitude | decimal(8,6) | 1 | yes | Latitude of the coordinate. | Should be greater than or equal to -180. Should be less than or equal to 180. | ||
longitude | decimal(9,6) | 1 | yes | Longitude of the coordinate. | Should be greater than or equal to -90. Should be less than or equal to 90. | ||
reason | varchar(255) | 1 | yes | Reason why the customer has not been picked up. |
Request Body
{"data"=>{"type"=>"not-picked-up", "timestamp"=>"2018-07-18T06:59:22+02:00", "coordinate"=>{"latitude"=>52.065, "longitude"=>5.10473}, "reason"=>"Laudantium corporis ut nobis sequi quisquam repellendus asperiores fuga."}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
Content-Type | string |
RESPONSES
status: Created
{"data":{"type":"not-picked-up","reason":"Laudantium corporis ut nobis sequi quisquam repellendus asperiores fuga.","timestamp":"2018-07-18T06:59:22+02:00","coordinate":{"latitude":52.065,"longitude":5.10473}}}