Is there any error precedence when requesting ride? If so, is it defined somewhere in the API documentation?
For example, what error would be returned in this particular situation, if user tries to request ride:
I would expect error with code current_trip_exists
to take precedence over surge
error in this particular situation. That is the case when testing in sandbox.
There is not currently documentation on error precedence for the Uber API on developer.uber.com. Thank you for this feedback. At this time this is not a priority for the API but these edge cases are interesting and may be something to define in the future.