SP-API Feeds().submit_feed #951
Nileshca
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to update shipping info for order. When i use the following function 👍
def submit_feed(api, xml_io):
try:
response = api.submit_feed(feed_type='POST_ORDER_FULFILLMENT_DATA', file=xml_io, marketplace_ids=["ATVPDKIKX0DER"], content_type='text/xml')
print(response)
err = response.errors
print(err)
feed_id = response.feed_submission_info.feed_submission_id
feed_id = response.create_feed_response.feed_submission_info.feed_submission_id # extract the feed ID from the CreateFeedResponse object
except Exception as e:
error_message = str(e)
print(f"Feed submission failed. Error message: {error_message}")
return feed_id
I get the response:
(<sp_api.base.ApiResponse.ApiResponse object at 0x00000227B991ABF0>, <sp_api.base.ApiResponse.ApiResponse object at 0x00000227B99CAE30>)
I was expecting to get Feed_Id
can anyone help identify what I am doing wrong? thank you.
Beta Was this translation helpful? Give feedback.
All reactions