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

ItemTypePluralityOptionsRequiredDescriptionValidation
typevarchar(255)1not-picked-upyesStatus type.
timestampDateTime1yesDate/time of this status.ISO date.
coordinateobject1yesCoordinate of this status.
latitudedecimal(8,6)1yesLatitude of the coordinate.Should be greater than or equal to -180.
Should be less than or equal to 180.
longitudedecimal(9,6)1yesLongitude of the coordinate.Should be greater than or equal to -90.
Should be less than or equal to 90.
reasonvarchar(255)1yesReason 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

KeyDatatypeRequiredDescription
Acceptstring
Content-Typestring

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}}}