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
547 stars 722 forks source link

[BUG] [SP-API] [Issue] No 404s for price updates #2797

Closed Faithfinder closed 2 months ago

Faithfinder commented 2 months ago

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

SP-API Name and Version or Report/Feed Type

Patch Listing Item and POST_PRODUCT_PRICING_DATA Feed,

Expected Behavior

When I send an incorrect SKU to either, if there's an error in SKU, I get an error in the issues array

Current Behavior

Instead everything is reported as good - price change is accepted, feed result returns successful processing

chapmanjw commented 2 months ago

@Faithfinder This is expected behavior. A "listing" represents three things: (1) what are you selling (the item), (2) how are you offering it (the pricing, etc.), and (3) how are you fulfilling it (FBA, MFN quantity, etc.). In this scenario, you are successfully sending us # 2, but that doesn't mean you have a complete buyable listing. If you were to then add "item" details and "fulfillment" details, your listing would be complete.

Using the Listings Items API getListingItem operation as part of your workflow will help paint the complete picture as to the status of your listings. The feed processing reports typically only include issues related to whether or not we could accept or process the data you submitted. See https://developer-docs.amazon.com/sp-api/docs/building-listings-management-workflows-guide.

Last note, this feed type (POST_PRODUCT_PRICING_DATA) is being deprecated. See https://developer-docs.amazon.com/sp-api/changelog/deprecation-of-feeds-api-support-for-xml-and-flat-file-listings-feeds. I would recommend reviewing the migration guide on how to migrate your pricing update workflows: https://developer-docs.amazon.com/sp-api/docs/migrating-listings-management-workflows

Faithfinder commented 2 months ago

Thank you for explaining the model, however, please consider returning an issue of INFO severity. We've had bugs with incorrect SKU encoding in the past, and debugging was all guesswork.

chapmanjw commented 1 month ago

@Faithfinder I've sent this over to our product team to evaluate. Doesn't necessarily mean that it will change, but providing your feedback for their consideration. Thanks!