Production user token missing sell.inventory scope - errorId 2004 ACCESS on createInventoryLocation
Hello,
I'm trying to use the Sell Inventory API in Production but consistently
get an ACCESS error, and I believe my user token isn't being granted
the sell.inventory scope.
What works:
- My Production keyset is active (I completed the Marketplace Account
Deletion exemption).
- My OAuth Scopes page confirms my app is granted both sell.inventory
and sell.inventory.readonly.
- I am a registered seller.
- The Account API works fine with my token - I successfully created
payment, return, and fulfillment business policies using the same token.
What fails:
When I call:
PUT https://api.ebay.com/sell/inventory/v1/location/warehouse_test_001
with headers:
Authorization: Bearer <token>
Content-Type: application/json
Content-Language: de-DE
and a valid location body, I get:
HTTP 400
{"errors":[{"errorId":2004,"domain":"ACCESS","category":"REQUEST",
"message":"Invalid request","longMessage":"The request has errors."}]}
My question:
I am generating the user token using the "Sign in to Production for OAuth"
button in the developer portal. Does that button grant all of my app's
scopes (including sell.inventory), or do I need to use the authorization
code grant flow with the scope explicitly specified? If so, can you
confirm the correct authorization URL and scope format for my keyset?
My App ID (Client ID) is: keineAhn-listingn-PRD-2a93a6a15-11f280b4
Thank you.