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
618 stars 741 forks source link

[BUG]FEEDS About POST_FLAT_FILE_FROM_EXCEL_FBA_CREATE_CARTON_INFO #2925

Closed AisxLee closed 1 year ago

AisxLee commented 2 years ago

I have some questions about SP API uploading carton information:

  1. Does the box size have to be uploaded? If you don't upload the box size (POST_FLAT_FILE_FROM_EXCEL_FBA_CREATE_CARTON_INFO), but only upload the contents of the box (POST_FBA_INBOUND_CARTON_CONTENTS), will Amazon charge extra because it doesn't have the box size?
  2. POST_FLAT_FILE_FROM_EXCEL_FBA_CREATE_CARTON_INFO is uploading still "workflow for submitting a feed"?
  3. I use "Feeds API v2020-09-04", When calling the "createFeedDocument" interface, the corresponding "contentType" value is "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=UTF-8". When calling the "createFeed" interface, the corresponding "feedType" value is "POST_FLAT_FILE_FROM_EXCEL_FBA_CREATE_CARTON_INFO". However, the information returned by calling the "getFeedDocument" interface is "The file format is invalid. The Excel pack list should be uploaded as a .xlsx file." I tried. Windows creates a new xlsx, generates xlsx with PHP, "contentType" is replaced by "application/vnd.ms-excel; charset=UTF-8", blank excel, etc., but the information returned by "getFeedDocument" remains unchanged...

I'm almost depressed!

johnkw commented 2 years ago

Anything involving Excel sounds like an absolute nightmare. We use POST_FBA_INBOUND_CARTON_CONTENTS which is XML (not good), but better than Excel. There is no box sizing on there. FBA has never asked. The SKU/ASIN has box sizing though, so I assume FBA could make use of that knowledge if they wanted to for some reason.

johnkw commented 2 years ago

See also bug amzn/selling-partner-api-models#391 which would replace the hideous XML with just a normal REST post.

AisxLee commented 2 years ago

@johnkw I have seen this issue, but I have not been helped. I use the request in the SDK, but the SDK is uploaded after encrypting xlsx into a string, and the type is still “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;”. Is it possible that xlsx must be encrypted for uploading? However, if encryption is not required to upload the "payload" returned by "createFeedDocument", is it unnecessary

johnkw commented 2 years ago

Like I said don't use it. Use the one I mention above instead. And don't use the extra encryption layer garbage - use the new feed that removed that pointless cruft.

AisxLee commented 2 years ago

I tried. If it is not encrypted, calling "getFeed" returns "processingStatus=FATAL"

johnkw commented 2 years ago

Well make sure you're using /feeds/2021-06-30/feeds/

AisxLee commented 2 years ago

I have tried both /feeds/2021-06-30/feeds/ and /feeds/2021-06-30/feeds/, but they still return an error original-record-number sku error-code error-type error-message 100001 - 1 Error The file format is invalid. The Excel pack list should be uploaded as a .xlsx file. ()

bjpierre commented 2 years ago

The feed you are talking about isn't even mentioned in the feeds API docs anymore as far as I can tell. Like Johnkw mentioned, it would be better to migrate away from your feed and onto POST_FBA_INBOUND_CARTON_CONTENTS which is an XML based feed not an Excel based feed. This is what my implementation uses. As long as you follow the steps in the docs (create document, upload to that doc with the given url, and then create the feed based on that) then you shouldn't have to mess with an extra encryption layer.

duomi commented 2 years ago

Anything involving Excel sounds like an absolute nightmare. We use POST_FBA_INBOUND_CARTON_CONTENTS which is XML (not good), but better than Excel. There is no box sizing on there. FBA has never asked. The SKU/ASIN has box sizing though, so I assume FBA could make use of that knowledge if they wanted to for some reason.

image Amazon help documentation says box and weight information is required.

johnkw commented 2 years ago

I should clarify that it's possible that weight thing becomes important if you put more than one SKU into a box. We only stack SKUs on the pallets. There is never any extra "box" other than the SKU itself in a box.

github-actions[bot] commented 1 year ago

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.

github-actions[bot] commented 1 year ago

closed for inactivity