-
Notifications
You must be signed in to change notification settings - Fork 743
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
Listings API patchListingsItem operation possible fulfillment_channel_code replace issue #2061
Comments
@NetrushAbhijit you might indicate the outcome on SellerCentral that you see with both of these nodes: Are there two listings (FBA + MFN) or a single FBA or MFN? |
The Product Types Definitions API defines which fields of an attribute are its selectors (i.e. what uniquely defines the instance of an attribute in the list). In the case of fulfillment_availability, the selector is fulfillment_channel_code. When it comes to updating the listing, such as with the PATCH operation, only the attribute instances with the same selector value will be updated. So, sending this:
Would add or replace the fulfillment_availability instance for the "DEFAULT" fulfillment_channel_code selector. If you want to remove an instance, you can use the PATCH API to delete the instance by its selectors:
This ^^^ would remove the AMAZON_NA (FBA) fulfillment channel code from the listing. |
@NetrushAbhijit @NetRushJacob, expanding on @hinavinayak's answer, the Seller Central Add/Edit Product and Excel templates experiences only allow for a listing to be DEFAULT MFN or FBA, not both. These experiences will remove one when you provide the other. The APIs do not do this for you, allowing you to be more explicit about what you actually want the API to do. This is similar to the Given that the the |
@chapmanjw |
It is very inconvenient to have to make two requests to update "fulfillment_availability"; it would be useful to be able to change it with a single request. |
Have you made progress? |
@NetrushAbhijit, @NetRushJacob, @shirushi-dev: We have implemented support for providing multiple patches on the same attribute (assuming they do not conflict with each other). So, for example, this is now supported:
|
receive:
|
@happy-bear-x Hi, I have the same problem, do you know now how to do that ? |
Patch again. Invalidate ’end_at‘.
Then we can assume that the discounted_price has been removed. |
omg i think this is what i've been looking for... testing. |
Is there a way to decrement listing? Like what if a listing was sold within the 15min time window to update? I can see there is room for race conditions |
Hello,
With reference to:
API: Listings
Operation: patchListingsItem
We noticed that - when we tried updating the fulfillment_channel_code on a listing using the 'patchListingsItem' operation, it created an additional fulfillment_channel_code on the listing instead of replacing an existing one.
Here's what we tried - On one of our SKUs, we tried flipping the fulfillment_channel_code from 'DEFAULT' (MFN) to 'AMAZON_NA' (FBA) by firing the below mentioned request.
We then fired the Listings API 'getListingsItem' to see how it looks like on the listing and found below json under the fulfillment_availability node of the response:
So, instead of replacing existing "fulfillment_channel_code": "DEFAULT", it created a new fulfillment_channel_code. So, just wondering if this is by design or we are missing something?
Thanks,
Abhijit
The text was updated successfully, but these errors were encountered: