Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubles updateing using ReviseFixedPriceItem from ebay SDK #386

Open
pmrgraphics opened this issue Jan 5, 2025 · 0 comments
Open

Troubles updateing using ReviseFixedPriceItem from ebay SDK #386

pmrgraphics opened this issue Jan 5, 2025 · 0 comments

Comments

@pmrgraphics
Copy link

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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant