amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
611 stars 733 forks source link

Feed().create_feed() not working correctly. Invalid request parameters #2396

Closed Roman1Boba1 closed 2 years ago

Roman1Boba1 commented 2 years ago

I was doing "submit_feed" operation which call - "create_feed_document" and "create_feed" functions. From "create_feed_document" I received "feedDocumentId" in payload but then "create_feed" failed with error 400 and response - "sp_api.base.exceptions.SellingApiBadRequestException: [{'code': 'InvalidInput', 'message': 'Invalid request parameters', 'details': ''}]"

Request looks like this xml_file = open('filename.xml', 'r') image document, feed = api.Feeds(credentials=credentials, marketplace=Marketplaces.US).submit_feed("POST_FBA_INBOUND_CARTON_CONTENTS", xml_file)

submit_feed trigger a createFeedDocument (return 200) and created_feed (return 400 error in this case)

Also I was tried to do "create_feed" separately and received same response. And tried with Feed()._request()

EvilHagrid commented 2 years ago

same problem

rodrifed commented 2 years ago

Hi @Roman1Boba1,

Are you using any specific SDK/library? Also, while submitting the request, are you specifying all mandatory input parameters? Please refer to this link for additional information: https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-use-case-guide#step-4-create-a-feed.

Thanks, Federico Selling Partner API Developer Services

Roman1Boba1 commented 2 years ago

Hi, @rodrifed, thank you for reply. I am using specific library for python. In request i send - feedType, inputFeedDocumentId (from createFeedDocument) and marketplaceids. It was working month ago. https://github.com/saleweaver/python-amazon-sp-api/blob/master/sp_api/api/feeds/feeds.py

Roman1Boba1 commented 2 years ago

image Also here screen from postman

Roman1Boba1 commented 2 years ago

After receiving feedDocumentId from "create_document_feed" I make request to "get_feed_document" with feedDocumentId and received "Invalid tortugaDocumentId"

image
rodrifed commented 2 years ago

Hello @Roman1Boba1,

In order to correctly resolve this issue, please open a support case so we can pursue the investigation, and provide the following details:

Thanks, Federico Selling Partner Developer Services