question

masakik0 avatar image
0 Likes"
masakik0 asked ·

Couldn't get PaymentMethods correctly via GetSingleItem in some items.

I've been using the ShoppingAPI GetSingleItem for years.

Recently, there are some items that I couldn't get PaymentMethods correctly.


for example:


got correctly:

https://www.ebay.com/itm/184652316112

https://www.ebay.com/itm/363284007536


couldn't get (empty):

https://www.ebay.com/itm/254857776168

https://www.ebay.com/itm/293996428163



What's the difference? How can I get PaymentMethods correctly on those items?

I'd appreciate any hints...

shopping api
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.

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered ·

Hi @masakik0 ,

We have checked the itemID 293996428163 and 254857776168 and noticed that both items were listed by a seller who is opted in to eBay managed payments.

If a seller is opted in to eBay managed payments, Item.PaymentMethods will not return in the response of GetSingleItem call.REF:

https://developer.ebay.com/devzone/shopping/docs/callref/GetSingleItem.html#Response.Item.PaymentMethods

Best Regards ,
eBay Developer Support

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

Oh... I missed that note. now I understood the situation. thank you for your reply.

Can I by any means get those payment methods (eBay managed payments)?
How about Browse API getItem method ?
https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItem

0 Likes 0 ·
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered ·

Hi @masakik0,

You will get the all of the payment options offered for a listing, in the response of GetItem call of Browse API.

If you notice "paymentMethodBrandType" as "GOOGLE_PAY" in the response of call.

This indicated by seller who has listed the item, is is opted in to eBay managed payments program.

https://developer.ebay.com/api-docs/buy/browse/resources/item/methods/getItem#response.paymentMethods.paymentMethodBrands.paymentMethodBrandType

Best Regards ,
eBay Developer Support

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