cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Assistance Required for eBay API Integration to Fetch Orders

I have successfully created a developer account and have added third-party access to my eBay seller account. However, I am experiencing difficulties in retrieving orders using the API.

Current Setup:

Successfully generating the token, I am encountering a 403 Forbidden error when attempting to access the orders endpoint. The error message indicates that there is an "Access denied" issue due to insufficient permissions.

Client error: `GET https://api.ebay.com/sell/fulfillment/v1/order` resulted in a `403 Forbidden` response:

{"errors":[{"errorId":1100,"domain":"ACCESS","category":"REQUEST","message":"Access denied","longMessage":"Insufficient  (truncated...)

Key Points:

  1. Access Permissions: I need clarification on the required scopes for accessing orders through the API. Specifically, I would like to know if additional permissions are needed beyond the current scope.
  2. Token Expiration: I understand that the tokens generated expire after a set period. Is there a way to obtain a token that does not expire, or can you provide guidance on programmatically refreshing the token?
  3. Documentation: If possible, please provide any relevant documentation or examples that outline the steps necessary to properly configure the API to retrieve orders.
Message 1 of 2
latest reply
1 REPLY 1

Re: Assistance Required for eBay API Integration to Fetch Orders

Hi @dunsterhouseltd,

 

Fulfillment API calls like getOrder and getOrders require an User Access Token created with the authorization code grant flow, using the below OAuth scopes:

 

https://api.ebay.com/oauth/api_scope/sell.fulfillment 

https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly

 

You can check the "OAuth scope" section in the API documentation to get the information on required Access token and Scope for the call.

Best Regards,
eBay Developer Support
Message 2 of 2
latest reply