How to figure out if an Uber ride is actually an UberEats delivery - uber-api

I am trying to figure out if an Uber ride is actually an UberEats delivery.
I thought the way to do that is with the products API, but when I tried to use the product API resource, all I got back is "Unauthorized access to product".
I can usually use the product API resource for other product ids. But this I cannot.

This was a bug which is now resolved. UberEATS should not be surfaced in the products endpoint.

Related

Uber API for Real time tracking

I want to know whether I can use uber api to track the ride real-time basis. I have found uber help suggest the following:
"Can I see the path a rider took during a trip?"
This feature is only available for ongoing UberPOOL rides. The request details return a set of waypoints (incl. pickup and dropoff locations) for each UberPOOL ride. This information is not accessible in the history but just during the ride.
So does it mean it is not applicable to other types of ride? Please let me know. It will be great if someone can suggest exact API endpoint for tracking the ride on a real-time basis.
Thanks.
It can be checked for any type of ride that you've requested
The Ride Request endpoint allows retrieving the status of an ongoing or completed trip that was created by your app
You have a few different options
Ride Request - Map API
Ride Request - Current API
Ride Request - Details API

Will the Ride Request Widget deprecation affect the REST API Uber exposes?

I've recently seen this message:
This product is deprecated and will no longer be supported on May 31st, 2018. If you are starting a new project you should use deep links to m.uber.com. See the migration guide on how to link to the latest Uber rider experience.
Here's a screenshot of this message
Keeping in mind that this widget offers these functionalities(as does the REST API):
Selecting a service (e.g., uberX, UberBlack, etc.)
Specifying pickup and dropoff locations
Viewing time and price estimates
Requesting a ride
Will the Rest API be somehow affected by this change?
Will I be able to further make requests like these ones?
GET /v1.2/estimates/price
GET /v1.2/history
GET /v1.2/places/{place_id}
I'm not an Uber representative, and I really kind of feel that asking support from a vendor is the way to go for a vendor specific thing. However, when I read that message and screenshot they are clearly talking about a widget, not a REST api.

Do we have an API for getting invoice details of completed rides in uber?

Any API for getting invoice for completed rides in uber? I have checked the uber API docs couldn't find any.
For rider history, you could call the /history endpoint (https://developer.uber.com/docs/riders/references/api/v1.2/history-get) but this does not include fare details.
If your app is the origin of the trips, you can call /receipt endpoint for each trip via https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-receipt-get
If you are looking to get all trips including fare details and they are not coming from your app ID, unfortunately that is not available. "The receipt endpoint will only provide receipts for ride requests originating from your application. It is not currently possibly to receive receipt data for all trips."
For a non-api solution you can look at past trips including fare details in your app or on the web at https://riders.uber.com/trips. Hope this helps!

Uber API to detect rides

Is it possible to use the Uber API to detect rides that originated from the Uber app?
I'm trying to get a machine learning system to learn when you are using uber.
No, whether a ride originated from the Uber app or from a separate integration is not a field/endpoint in the current Uber API.
Not sure if this is exactly what you are looking for but something that might be helpful is the /history endpoint. "The User Activity endpoint returns a limited amount of data about a user’s lifetime activity with Uber. The response will include pickup and dropoff times, the city the trips took place in, the distance of past requests, and information about which products were requested."
Documentation: https://developer.uber.com/docs/riders/references/api/v1.2/history-get

Is there functionality to request an Uber on another person's behalf?

My business opportunity would benefit from being able to request an Uber to pick up a client and arrive at my place of business, and not just the client requesting the Uber themselves. Is this something that I can do today with Uber?
edit: the origin of my request would be different than the requested pick-up location.
The Uber API gives you the ability to Request an Uber Product on behalf of users within your application. Given you know where a user currently is, where they want to go, and which Uber product they want to use to get there, you have all of the tools to make that happen with a few simple API endpoints.
Looks like I answered my own question :)