Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token giving access to ebay store question #66

Closed
sunrunner4kr-simon opened this issue Apr 30, 2021 · 5 comments
Closed

Token giving access to ebay store question #66

sunrunner4kr-simon opened this issue Apr 30, 2021 · 5 comments

Comments

@sunrunner4kr-simon
Copy link

Hey...I'm sorry to come back with another question.

With my GetNotificationPreferences, and SetNotificationPreferences and getOrders working in sandbox. I've added some production keys.
I've then got the owner of the ebay store account to log in and authorize a token and stored the token locally. And I can use that token to get notification preferences and orders, getting success API responses.

However, it's not bringing back ANY orders, and I'm not getting any notifications even though they have been set by the API. I can even use the API Explorer in eBay to check with the token: -

image

image

What am I missing? Why can't I get orders from the ebay store.
I'm using the sandbox = false; and the production cert, app ids etc...

@dantio
Copy link
Collaborator

dantio commented Apr 30, 2021

The response is from eBay without any errors...

The Fulfillment API covers only the transactions that have completed the checkout process. This API does not cover pending payment purchases that require upfront payment before shipment.

Maybe you are looking for a different API?
What do you see in https://developer.ebay.com/my/api_test_tool?index=0&api=fulfillment&call=order__GET&variation=json&env=production ?

You can also try:

eBay.trading.GetMyeBaySelling({
      SoldList: {
        Include: true
      }
    })

@sunrunner4kr-simon
Copy link
Author

sunrunner4kr-simon commented Apr 30, 2021

The store has 100s of orders, some pending, some already checked out.
I'm only interested in orders which have been completed.

image

It's as if the token isn't giving me access to the ebay store data.

@sunrunner4kr-simon
Copy link
Author

sunrunner4kr-simon commented May 1, 2021

eBay.trading.GetMyeBaySelling({
      SoldList: {
        Include: true
      }
    })

also returns nothing

it must be to do with linking my ebay developer account with my production keys to the ebay store. I thought getting the ebay store account user to authorize the token would be enough. But maybe there's something else that needs doing?

@dantio
Copy link
Collaborator

dantio commented May 1, 2021

Hm double check if you really use production keys and use sandbox: false everywhere. It must work since we also use the getorders call heavily

@sunrunner4kr-simon
Copy link
Author

I had the seller log in and authorize in front of me and it's working!

I think it must have been a problem with the log in, maybe when logging in they were also logged in already to another eBay account, so it didn't authorize with the correct account...who knows

Thanks again!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants