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] POST_PRODUCT_PRICING_DATA and JSON_LISTINGS_FEED, update price not work correctly #648

Closed JSPonera closed 1 month ago

JSPonera 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
[x] Documentation issue or request
[ ] Other... Please describe:

SP-API Name and Version or Report/Feed Type

Using API Feed: POST_PRODUCT_PRICING_DATA and JSON_LISTINGS_FEED API Version: 2021-06-30

Expected Behavior

For POST_PRODUCT_PRICING_DATA: I expected all SKUs included in the feed to be updated correctly without the need to reduce the number of SKUs sent in one batch. If there is an error, the response should indicate the SKUs that failed to update or documentation should specify the maximum number of products that can be sent in a single request.

For JSON_LISTINGS_FEED: I need to know how to update the business price for products, as the current documentation does not provide clear guidance on this.

Current Behavior

For POST_PRODUCT_PRICING_DATA: Although the API indicates that everything is OK, not all SKUs in my list are updated. I often have to reduce the number of SKUs sent to ensure they are updated, which is not efficient and does not always work.

For JSON_LISTINGS_FEED: The process to update the business price is unclear, and I have not been able to find the necessary information in the documentation.

Context/Screenshots

Steps to Reproduce

Create a valid JSON feed for product pricing and listings as shown below. Submit the feed using the JSON_LISTINGS_FEED endpoint. Observe the response from the API. Note any errors or inconsistencies in the response.

Example JSON feed:

{
    "header": {
        "sellerId": "Seller ID",
        "version": "2.0",
        "issueLocale": "us_US"
    },
    "messages": [
        {
            "messageId": 1,
            "sku": "SKU",
            "operationType": "PATCH",
            "productType": "PRODUCT",
            "patches": [
                {
                    "op": "replace",
                    "path": "\/attributes\/purchasable_offer",
                    "value": [
                        {
                            "currency": "EUR",
                            "marketplace_id": "A13V1IB3VIYZZH",
                            "our_price": [
                                {
                                    "schedule": [
                                        {
                                            "value_with_tax": 19.35
                                        }
                                    ]
                                }
                            ],
                            "minimum_seller_allowed_price": [
                                {
                                    "schedule": [
                                        {
                                            "value_with_tax": 19
                                        }
                                    ]
                                }
                            ],
                            "maximum_seller_allowed_price": [
                                {
                                    "schedule": [
                                        {
                                            "value_with_tax": 25.9
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}

Example response for JSON_LISTINGS_FEED:

{
  "header": {
    "sellerId": "SellerID",
    "version": "2.0",
    "feedId": "Feed ID"
  },
  "issues": [],
  "summary": {
    "errors": 0,
    "warnings": 0,
    "messagesProcessed": 1,
    "messagesAccepted": 1,
    "messagesInvalid": 0
  }
}

Your Environment

SP-API SDK Version: N/A (custom client) Programming Language: PHP Operating System: Linux Ubuntu 20 Any relevant dependencies: Custom client for SP API which works fine for all other API calls and feeds.

Additional Information

For POST_PRODUCT_PRICING_DATA: The issue started after migrating from MWS to SP API. Previously, all SKUs were updated correctly. Now, several products are not updated, causing issues with inactive offers that cannot be reactivated through patches due to incomplete updates.

For JSON_LISTINGS_FEED: Documentation used: Feeds API Reference


As XML feeds will be deprecated, I would like to switch my pricing submission system to JSON. If I understand correctly, the feed to use will be JSON_LISTINGS_FEED. Since I am unable to update the business price along with the rest, I have not been able to conduct large-scale tests. However, will switching to the JSON feed resolve the initial issue of all my offers not being properly updated? My problem is actually the same as the one described in issue #2681.

shreeharsh-a commented 1 month ago

Hi @JSPonera, Please reach out to developer support so that we can better help you with issues related to SP API.

Note: SP API related issues / troubleshooting support is managed by a different team. We can help if the issue is related to the content published on this repo.