I'm trying to publish offer on UK eBay Sandbox. The item would be in "ALL_EXCLUDING_MOTORS_VEHICLES" category type, and as far as I read eBay will automatically handle electronic payment options for me:
"paymentMethods: This array shows the available payment methods that the seller has set for the payment business policy.
Sellers do not have to specify any electronic payment methods for listings, so this array will often be returned empty unless the payment business policy is intended for motor vehicle listings or other items in categories where offline payments are required or supported."
In that case I'm trying to publish an offer with no paymentMethods set explicitly as I don't intend to offer any offline payments. That's impossible however, with the following error in return:
{ "errors": [ { "errorId": 20401, "domain": "API_ACCOUNT", "category": "REQUEST", "message": "Missing field .", "longMessage": "Provide a payment method", "inputRefIds": [ "payment method" ], "parameters": [ { "name": "Field", "value": "PaymentMethodFieldGroup" } ] } ] }
These are all the offline payments available, but again I would need to offer electronic payments only:
https://developer.ebay.com/api-docs/sell/account/types/api:PaymentMethodTypeEnum
How can this be solved?