Skip to main content

I want to get & set special price for a product in Magento 2.0 using APi. Following is the http url for getting the price of an item  .

http://192.168.222.45:8081/MagentoDev/index.php/rest/V1/products/special-price-information

Body:

{ "skus": [ "SKU505050" ] }

The result of the request is :

{ "message": "Request does not match any route." }

Similarly i, I can not set the special price of the product. forFor Setting the price i, I use the following link:   

http://192.168.222.45:8081/MagentoDev/index.php/rest/V1/products/special-price

Body:

[ { "price": 160, "store_id": 0, "sku": "SKU505050", "price_from": "10/01/2017", "price_to": "10/01/2017", "extension_attributes": {} } ]

result:

{ "message": "Request does not match any route." }

Has any one elseanyone faced this issue? A quick help will be highly appreciated !

I want to get & set special price for a product in Magento 2.0 using APi. Following is the http url for getting the price of an item  http://192.168.222.45:8081/MagentoDev/index.php/rest/V1/products/special-price-information

Body:

{ "skus": [ "SKU505050" ] }

The result of the request is :

{ "message": "Request does not match any route." }

Similarly i can not set the special price of the product. for Setting the price i use following link:  http://192.168.222.45:8081/MagentoDev/index.php/rest/V1/products/special-price

Body:

[ { "price": 160, "store_id": 0, "sku": "SKU505050", "price_from": "10/01/2017", "price_to": "10/01/2017", "extension_attributes": {} } ]

result:

{ "message": "Request does not match any route." }

Has any one else faced this issue? A quick help will be highly appreciated !

I want to get & set special price for a product in Magento 2.0 using APi. Following is the http url for getting the price of an item.

http://192.168.222.45:8081/MagentoDev/index.php/rest/V1/products/special-price-information

Body:

{ "skus": [ "SKU505050" ] }

The result of the request is :

{ "message": "Request does not match any route." }

Similarly, I can not set the special price of the product. For Setting the price, I use the following link: 

http://192.168.222.45:8081/MagentoDev/index.php/rest/V1/products/special-price

Body:

[ { "price": 160, "store_id": 0, "sku": "SKU505050", "price_from": "10/01/2017", "price_to": "10/01/2017", "extension_attributes": {} } ]

result:

{ "message": "Request does not match any route." }

Has anyone faced this issue? A quick help will be highly appreciated !

Source Link

GET or SET Product special price using REST API

I want to get & set special price for a product in Magento 2.0 using APi. Following is the http url for getting the price of an item http://192.168.222.45:8081/MagentoDev/index.php/rest/V1/products/special-price-information

Body:

{ "skus": [ "SKU505050" ] }

The result of the request is :

{ "message": "Request does not match any route." }

Similarly i can not set the special price of the product. for Setting the price i use following link: http://192.168.222.45:8081/MagentoDev/index.php/rest/V1/products/special-price

Body:

[ { "price": 160, "store_id": 0, "sku": "SKU505050", "price_from": "10/01/2017", "price_to": "10/01/2017", "extension_attributes": {} } ]

result:

{ "message": "Request does not match any route." }

Has any one else faced this issue? A quick help will be highly appreciated !