POST
/v1/sos/signal
Users can use SOS signal during a trip if they feel threatened by serious and/or imminent danger and require immediate assistance.
Name | Data Type | Description | Type |
---|---|---|---|
booking_id | string | Booking ID for the ride | Payload |
Authorization | string | Authorization Token identifies the user | Header |
X-APP-TOKEN | string | Key which identifies the partner | Header |
Content-Type | string | "application/json" to be passed | Header |
POST
https://devapi.olacabs.com/v1/sos/signal
"body": { "booking_id":"CRN123456789" }
"headers": { "Authorization": "Bearer baac2cf1122f1ff1f1f12f1ff24bf", "X-APP-TOKEN": "6a53bc12f12f12f12f112f2f12fba9148c", "Content-Type": "application/json" }
{
"status": "SUCCESS",
"message": "SOS_SIGNAL_SENT_SUCCESSFULLY"
}
Failure response in case the ride is not in progress.
{
"message": "SOS_SIGNAL_FAILED",
"code": "RIDE_NOT_IN_PROGRESS"
}
Failure response in case some failure occurs at Ola SOS system's end due to some reason.
{
"message": "SOS_SIGNAL_FAILED",
"code": "RETRY_SENDING_SOS_SIGNAL"
}