cancel
Showing results for 
Search instead for 
Did you mean: 

rest API - how to post SKU based on store-view

rest API - how to post SKU based on store-view

Hi all,

hope someone can help us as we're pretty new to Magento Rest API.

 

We've configured in backend already a website with multiple store-views for translations.

 

The products and translations are stored in Microsoft Navision and will be transfered to Magento by using the rest API - this will be done by a third party provider.

 

We're looking for a way that third party provider can provide the products data for each SKU (there will be configurable and simple products) with the /V1/products/ ... I was not able to find a parameter like store-view just the website and store.

 

Is there a procedure in the standard API or is some customization necessary?

 

Thx Georg

2 REPLIES 2

Re: rest API - how to post SKU based on store-view

Hello @georgmuths5612 

 

You can get products with below API :

https://<DOMAIN>/rest/<STORE_CODE>/V1/products?searchCriteria=&searchCriteria[filterGroups][0][filters][0][field]=store_id&searchCriteria[filterGroups][0][filters][0][value]=<STORE_ID>

use searchCriteria for filtering data.

 

Hope it helps !!

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: rest API - how to post SKU based on store-view

Hi,

thanks a lot.

Is this as well possible with PUT/POST - so to either update or create products in magento db from Microsoft Navision?

 

Like:

/rest/default/V1/products/ SKU

store-view france: /rest/france/V1/products/ SKU

store-view germany: /rest/germany/V1/products/ SKU

 

Thx Georg