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

Accessing orders from sellers account via API

I need to get a list of all orders for a specific day via the API.  The intention is to do this on a schedule that runs in the background.  However, it seems like (based on this https://developer.ebay.com/api-docs/sell/fulfillment/resources/order/methods/getOrders) that I have to have a specific users consent to get the orders - that seems odd to me so I'm hoping someone can provide some clarification.

 

Is it not possible to use the client_credentials flow with the API client/secret to do this?  Is there another endpoint that I can use to accomplish this, one that doesn't require a user to be logged in?  This application is only for administration records so a nightly sync of orders is all I need.

 

Thanks

Message 1 of 3
latest reply
2 REPLIES 2

Accessing orders from sellers account via API

It is definitely possible, I have provided details here

https://github.com/CMS365-PTY-LTD/EbaySharp

I have explained how to get the token and use it in your application.

I run my application in a background which retrieves a list of orders and upload tracking.

 

C# wrapper for eBay REST API
https://github.com/CMS365-PTY-LTD/EbaySharp
Message 2 of 3
latest reply

Accessing orders from sellers account via API

Hi @chr_cr_0hpxlreg5t 

 

getOrders request requires an access token created with the authorization code grant flow, using the below scopes: 

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

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

You can not execute the getOrders call with the token created with client credentials grant flow. 

 

 

When your eBay application acts on the behalf of an eBay user, that application must obtain the user's consent before it can make requests that access and update/get that user's confidential resources. After gaining the eBay user's consent, you can mint a new User access token, a token that carries a user's authorization to let your application access the user's eBay account data.

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