Find the answer to your question
Advanced Search
What is the recommended way to determine payment methods available for a category on a site - GeteBayDetails or GetCategoryFeatures?
Please use GetCategoryFeatures to determine the available payment methods for a site or category. Do not use GeteBayDetails to determine the payment methods for a site. Send in the FeatureID as PaymentMethods to find out about the payment methods that apply for the site. Below is a sample request and response.
<?xml version="1.0" encoding="utf-8"?> -----------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?> <GetCategoryFeaturesResponse xmlns="urn:ebay:apis:eBLBaseComponents"> <Timestamp>2022-09-07T09:35:30.972Z</Timestamp> <Ack>Success</Ack> <Version>1219</Version> <Build>E1219_CORE_APICATALOG_19146446_R1</Build> <CategoryVersion>9800</CategoryVersion> <UpdateTime>2022-09-07T09:30:16.000Z</UpdateTime> <SiteDefaults> <PaymentMethod>PayPal</PaymentMethod> <PaymentMethod>VisaMC</PaymentMethod> <PaymentMethod>Discover</PaymentMethod> <PaymentMethod>AmEx</PaymentMethod> <PaymentMethod>IntegratedMerchantCreditCard</PaymentMethod> <PaymentMethod>CashOnPickup</PaymentMethod> </SiteDefaults> <FeatureDefinitions> <PaymentMethod/> </FeatureDefinitions> </GetCategoryFeaturesResponse> |
The acceptable payment methods are returned under the SiteDefaults container. When you set a CategoryID value, eBay returns the settings for that category. Note that the settings returned are only those settings that override the defaults for the site.
In the example above the settings for the category match the default settings for the FeatureID and therefore the CategoryID container is not returned in the response.
https://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetCategoryFeatures.html
How well did this answer your question?
Answers others found helpful
- How can I determine which Leaf Categories support the BestOffer feature?
- GeteBayDetails does not return information for certain sites
- Error 2191086 - Sorry, you must accept at least one valid safe payment method
- Sending Return Policy for your listing
- What kind of listing is an item of ListingType.AdType?