You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to upload shipping information for an order. I am using the following fuction:
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
for the response I am getting:
(<sp_api.base.ApiResponse.ApiResponse object at 0x00000227B991ABF0>, <sp_api.base.ApiResponse.ApiResponse object at 0x00000227B99CAE30>)
Iwas expecting a feed-Id
Can anyone help tell me what i am getting wrong? thank you.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to upload shipping information for an order. I am using the following fuction:
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
for the response I am getting:
(<sp_api.base.ApiResponse.ApiResponse object at 0x00000227B991ABF0>, <sp_api.base.ApiResponse.ApiResponse object at 0x00000227B99CAE30>)
Iwas expecting a feed-Id
Can anyone help tell me what i am getting wrong? thank you.
Beta Was this translation helpful? Give feedback.
All reactions