question

reddi720 avatar image
0 Likes"
reddi720 asked ·

Currency conversion in api

Hi. I'm building an app that lets me browse ebay but I dont need any user details (as im not submitting any transactions or anything) so I'm currently using a generated application token.

When I call the getItemByLegacyId endpoint, I can get info - but if the listing is in USD, I want to have the API give me the approximate value in GBP

I think I'm missing some localization options in my request but i cant find any docs on how to specify that I want a converted currency in the result

Can anyone help?

currencyconversiongetitembylegacyid
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
reddi720 avatar image
0 Likes"
reddi720 answered ·

Figured this out

Its detailed on https://developer.ebay.com/api-docs/static/rest-request-components.html#marketpl

Specifically the X-EBAY-C-MARKETPLACE-ID header with (in my case) EBAY_GB

·
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.