koosa
koosa

Reputation: 3040

Uber API returns 404 no_partner_for_user with valid token

I have a valid oauth token retrieved from the Uber API for a driver account. When I hit this endpoint:

curl -i -H "Authorization: Bearer XXXXX" https://api.uber.com/v1/partners/me

I'm returned with:

{"meta":{},"errors":[{"status":404,"code":"no_partner_for_user","title":"The user does not have a partner account."}]}

My colleague can hit the same endpoint with another valid token for the same driver and successfully receives account data.

edit

Just confirming that the account we've authed is absolutely definitely definitively a driver account.

Upvotes: 1

Views: 150

Answers (1)

Dustin Whittle
Dustin Whittle

Reputation: 1252

The user does not have a partner account, so it looks like a rider authed and that is the token you are using.

Upvotes: 1

Related Questions