Replies: 3 comments 13 replies
-
Beta Was this translation helpful? Give feedback.
-
No, it's been doing it for quite a while now. I think it may coincide with when certain user information was suppressed recently, as in this breaking change: https://github.com/etsy/open-api/issues/405#issuecomment-1275082729 It's really useful for us to know if we have sold to a shop (digital items) for copyright infringement checks etc, which are currently rampant on Etsy at the moment. |
Beta Was this translation helpful? Give feedback.
-
But currently the API does require something to be passed in place of {user_id} in the Url - /v3/application/users/{user_id}/shops. It just doesn't have to be the same user as the one in the passed in OAuth access token. Don't know if it even has to be a valid user anywhere in Etsy, or just a positive integer. In my recent testing both /v3/application/users//shops and /v3/application/users/shops failed with an error "Expected int value for 'user_id'". This is a very confusing design. We've wasted time on this, and I'm sure others have and will. Not sure what a logical solution is, in light of Etsy choosing an unconventional path of getting the user_id from the access_token, not from the url. Based on the REST API Uri naming best practices, "/v3/application/users/{user_id}/shops" does make sense for this type of endpoint. If they remove {user_id}, then "/v3/application/users/shops" looks like it would return all shops for all users, which it does not. "/v3/application/user/shops" looks weird as well (which user?!?). And I think it should be plural "users", per convention even if one is returned by id. But it might be less confusing to slightly break the convention, than the mess they have now. Or at the very lease update their docs. For at least 6 months, the doc has been incorrectly saying that this endpoint only requires api_key, not access token (a different issue) |
Beta Was this translation helpful? Give feedback.
-
getShopByOwnerUserId is returning the same data over and over, even though different user_id are being correctly passed.
The API is returning data for self, rather than the data for the user_id being passed.
Beta Was this translation helpful? Give feedback.
All reactions