Skip to content

Troubles updateing using ReviseFixedPriceItem from ebay SDK #386

Description

@pmrgraphics

I am Having troubles updateing using ReviseFixedPriceItem from ebay SDK. I have been stuck on this fro several days

Everything authenticated ok but returns

WarningReturn Policy Attribute Not ValidReturn Policy Attribute returnDescription Not Valid On This Site21920200WarningreturnDescription

Im not even updateing the Return policy.

I get the same message when just trying to update title?

Here is the code.

from time import sleep
from ebaysdk.trading import Connection as trading
import pandas as pd

api = trading(
appid="real appid used",
certid="real certid used",
token="real token used"
,escape_xml=True)

if True:
ebay_df = pd.read_csv('output_ebay.csv')
for index, row in ebay_df.iterrows():
ebay_item_no = row['itemid']
ebay_title = row['title']
ebay_description = row['description']

    try:
        api.execute('ReviseFixedPriceItem', {'item': {'itemID': ebay_item_no, 'title': ebay_title,
                                                      'description': "<![CDATA[{0}]]>".format(ebay_description)}})
        sleep(0.2)
        response_r = api.response_content()
        print(response_r)
        print(ebay_item_no)
    except:
        print('Error in Item Number ',ebay_item_no)
    else:
        print('Success')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions