Repository navigation
|
Hi, I want to update the price of the products I have in my inventory but I am not clear which endpoint I should use, can you help me please? |
Answered by
denisneuf
Jul 27, 2022
Replies: 2 comments
|
try this for a single product by sku: from sp_api.api import ListingsItems While your dictionary should look like this: {'productType': 'PRODUCT', 'patches': [{'op': 'replace', 'path': '/attributes/purchasable_offer', 'value': [{'marketplace_id': 'A1RKKUPIHCS9HS', 'currency': 'EUR', 'our_price': [{'schedule': [{'value_with_tax': 2359.0}]}]}]}]} |
0 replies
Answer selected by
jubalgo
|
Thanks for your help @denisneuf is what I was looking for. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try this for a single product by sku:
from sp_api.api import ListingsItems
While your dictionary should look like this:
{'productType': 'PRODUCT', 'patches': [{'op': 'replace', 'path': '/attributes/purchasable_offer', 'value': [{'marketplace_id': 'A1RKKUPIHCS9HS', 'currency': 'EUR', 'our_price': [{'schedule': [{'value_with_tax': 2359.0}]}]}]}]}