Skip to content

Product price update #649

Answered by denisneuf
judev-jbg asked this question in FAQ
Discussion options

You must be logged in to vote

try this for a single product by sku:

from sp_api.api import ListingsItems

    res = ListingsItems(account=store, marketplace=marketplace).patch_listings_item(
        sellerId=seller_id,
        sku=sku,
        marketplaceIds=marketplace_id,
        issueLocale=issue_locale,
        body=dictionary
    )

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}]}]}]}]}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by judev-jbg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
2 participants