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

Trying to upload listing by flat file using Feed API - POST_FLAT_FILE_LISTINGS_DATA #217

Open
surbhi-ctas opened this issue Jun 16, 2023 · 0 comments

Comments

@surbhi-ctas
Copy link

I am trying to create an Amazon Seller Central listing for a product using POST_FLAT_FILE_LISTINGS_DATA feed type. Although I got errors and I am unsure about the flat file format and details, I am sharing all the details with screenshots.

Since last two weeks, I haven't been able to upload flat files to Amazon, and I'm not aware of how many products we can upload in the same file at once. Could you please find a solution to this problem?

const feedType = 'POST_FLAT_FILE_LISTINGS_DATA'; // or 'POST_FLAT_FILE_INVLOADER_DATA'
const content = {
content: ${__dirname}/listing.csv,
contentType: 'text/csv; charset=UTF-8'
}

const feedUploadDetails = await sellingPartnerNewInstance.callAPI({
operation: 'feeds.createFeedDocument',
body: {
contentType: content.contentType
}
});
await sellingPartnerNewInstance
.upload(feedUploadDetails, content)
.then((res) => console.log(res))
.catch((err) => console.log(err));

const inputFeedDocumentId = feedUploadDetails.feedDocumentId;

let { feedId } = await sellingPartnerNewInstance
.callAPI({
operation: 'feeds.createFeed',
body: {
feedType,
marketplaceIds: ['A21TJRUUN4KGV'],
inputFeedDocumentId,
},
});

We successfully got feedId and download document reports, it generates error likes:

image

listing.csv file looks like:

image

Please revert back on this issue. Thank you very much!

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