cancel
Showing results for 
Search instead for 
Did you mean: 

api update product prices with different currency

api update product prices with different currency

1. any one know how i could setup multiple webstores (like how we do in Magento 1)

 

2. using the API update the price accordingly?

 

situation is say we have

store1 is $USD

store2 is $NZD

store3 is $AUD

 

 

5 REPLIES 5

Re: api update product prices with different currency

How to add a website, store, or store view? https://mage2.pro/t/1006

Re: api update product prices with different currency

what about updating the price for each different store

 

say i have a shirt

 

$10 NZD

$9 AUD

$8 USD

 

how could i go about updating the price?

 

 

Re: api update product prices with different currency

Step 1

Setup different base currencies for the websites with the «Base Currency» option https://mage2.pro/t/topic/1097

 

Step 2

Specify a store's code while updating a product price programmatically.

Re: api update product prices with different currency

step 1 - GOT IT!

step 2 - which module could i use that allows me to update the price and gives me the option of passing in the store id?

http://devdocs.magento.com/guides/v2.0/soap/bk-soap.html

Re: api update product prices with different currency

i am now using service module for updating prices of products

catalogProductRepositoryV1

 

looking at the catalogProductRepositoryV1Save, there isn't any property for a store_id which i could specify

 

has this not been implemented?

 

EDIT

according to the documentation http://devdocs.magento.com/guides/v2.0/soap/bk-soap.html

http://<magento_host>/soap/<store_code>

do i have to specify the <store_code> on the url instead of calling the default URL but have the option of passing in the store_id as a property? 

 

this becomes somewhat strange,

we could use the default URL for querying orders/invoices/creditmemo by using filters property to specify the store_id we get the data accordingly

 

but for products is this a difference case where we have to use the <store_code> in the url instead?