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

createFeed with POST_PRODUCT_DATA #269

Open
surbhi-ctas opened this issue Feb 12, 2024 · 0 comments
Open

createFeed with POST_PRODUCT_DATA #269

surbhi-ctas opened this issue Feb 12, 2024 · 0 comments

Comments

@surbhi-ctas
Copy link

surbhi-ctas commented Feb 12, 2024

Hello,

I am trying to upload an XML feed using Feed API. But getting "Invalid request parameters".

let feed_upload_details = await sellingPartnerNewInstance.callAPI({
operation: 'createFeedDocument',
endpoint: 'feeds',
body: {
contentType: feed.contentType,
},
}); // Create Feed Document

      await sellingPartnerNewInstance.upload(feed_upload_details, feed); // Upload Feed

      let { feedId } = await sellingPartnerNewInstance.callAPI({
        operation: 'createFeed',
        endpoint: 'feeds',
        body: {
          marketplaceIds: ['A1PA6795UKMFR9', 'A1805IZSGTT6HS'],
          feedType: 'POST_PRODUCT_DATA',
          inputFeedDocumentId: feed_upload_details.feedDocumentId, // retrieve the feedDocumentId from the "createFeedDocument" operation
        },
      });

Can you please let me know what is the exact problem? Because when I use marketplaces: ['A1PA6795UKMFR9'], it works fine and passes more than one marketplace it returns an error. As per Amazon document: https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-reference#createfeedspecification, we can pass multiple marketplace IDs. Any help would be greatly appreciated.

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