question

ahmasaa3 avatar image
0 Likes"
ahmasaa3 asked ·

fulfillment getorders as a cronjob,GetOrders as a Cronjob

hallo every one. I am new in Ebay Api and I didn’t understand the oAuth2 logic by ebay. in my case I just want to create a cronjob to read all the orders in my ebay account und import them to my local database, in order to process them and send the products to the customers. as I understand to read the orders list I must grant access to the api_scope/sell.fulfillment or at lest to api_scope/sell.fulfillment.readonly so I can call the [getOrders][1] Request but this scope is not available by [Client credentials grant][2] as I see (the available scopes are very, very limited for this type of authentication.) but as I see using [the Authorization code grant][3] is not a solution, by this way I must call an html page with login form and then agree to give the grant. and this can not be done as a Cronjob. so as I see there are no way to use the Rest Api to read the orders list as a cronjob and I must use the old XML Trading API. can anyone give me an Advice hier. are there any way to do this with the Rest Api. thanks. [1]: https://developer.ebay.com/api-docs/sell/fulfillment/resources/order/methods/getOrders [2]: https://developer.ebay.com/api-docs/static/oauth-client-credentials-grant.html [3]: https://developer.ebay.com/api-docs/static/oauth-authorization-code-grant.html
oauth2fulfillment apifulfillment orders
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
sanjiv_developersupport avatar image
0 Likes"
sanjiv_developersupport answered ·
Hi @ahmasaa3, This request requires an access token created with the [authorization code grant][1] flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application): https://api.ebay.com/oauth/api_scope/sell.fulfillment https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly I believe you should have access of this scope. PFA ![alt text][2] [1]: https://developer.ebay.com/api-docs/static/oauth-authorization-code-grant.html [2]: /storage/temp/2890-scope.png

scope.png (91.8 KiB)
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.