4 changes in body information
source | link

The catalog price rule is working in frontend. But when we get the product from REST API, we are getting the original price only.

Example: Product price is 34, we were created catalog rule with 10% for all products, in frontend we are getting both prices 30.26 and 34. But from api, we are getting only 34.

Please help.

API EndPoint: http://localhost/magento/rest/default/V1/products/24-MB01API EndPoint:

Partial Response: { "id": 1, "sku": "24-MB01", "name": "Joust Duffle Bag", "attribute_set_id": 15, "price": 34, "status": 1, "visibility": 4, "type_id": "simple", "created_at": "2017-01-10 07:50:47", "updated_at": "2017-01-10 07:50:47", "extension_attributes": [], "product_links": [], "options": [], }

http://localhost/magento/rest/default/V1/products/24-MB01

Partial Response:
{
  "id": 1,
  "sku": "24-MB01",
  "name": "Joust Duffle Bag",
  "attribute_set_id": 15,
  "price": 34,
  "status": 1,
  "visibility": 4,
  "type_id": "simple",
  "created_at": "2017-01-10 07:50:47",
  "updated_at": "2017-01-10 07:50:47",
  "extension_attributes": [],
  "product_links": [],
  "options": [],
}

The catalog price rule is working in frontend. But when we get the product from REST API, we are getting the original price only.

Example: Product price is 34, we were created catalog rule with 10% for all products, in frontend we are getting both prices 30.26 and 34. But from api, we are getting only 34.

Please help.

API EndPoint: http://localhost/magento/rest/default/V1/products/24-MB01

Partial Response: { "id": 1, "sku": "24-MB01", "name": "Joust Duffle Bag", "attribute_set_id": 15, "price": 34, "status": 1, "visibility": 4, "type_id": "simple", "created_at": "2017-01-10 07:50:47", "updated_at": "2017-01-10 07:50:47", "extension_attributes": [], "product_links": [], "options": [], }

The catalog price rule is working in frontend. But when we get the product from REST API, we are getting the original price only.

Example: Product price is 34, we were created catalog rule with 10% for all products, in frontend we are getting both prices 30.26 and 34. But from api, we are getting only 34.

Please help.

API EndPoint:

http://localhost/magento/rest/default/V1/products/24-MB01

Partial Response:
{
  "id": 1,
  "sku": "24-MB01",
  "name": "Joust Duffle Bag",
  "attribute_set_id": 15,
  "price": 34,
  "status": 1,
  "visibility": 4,
  "type_id": "simple",
  "created_at": "2017-01-10 07:50:47",
  "updated_at": "2017-01-10 07:50:47",
  "extension_attributes": [],
  "product_links": [],
  "options": [],
}
3 api response
source | link

The catalog price rule is working in frontend. But when we get the product from REST API, we are getting the original price only.

Example: Product price is 34, we were created catalog rule with 10% for all products, in frontend we are getting both prices 30.26 and 34. But from api, we are getting only 34.

Please help.

API EndPoint: http://localhost/magento/rest/default/V1/products/24-MB01

Partial Response: 1 24{ "id": 1, "sku": "24-MB01 JoustMB01", "name": "Joust Duffle Bag 15 34 1 4 simple 2017Bag", "attribute_set_id": 15, "price": 34, "status": 1, "visibility": 4, "type_id": "simple", "created_at": "2017-01-10 07:50:47 201747", "updated_at": "2017-01-10 07:50:47 47", "extension_attributes": [], "product_links": [], "options": [], }

The catalog price rule is working in frontend. But when we get the product from REST API, we are getting the original price only.

Example: Product price is 34, we were created catalog rule with 10% for all products, in frontend we are getting both prices 30.26 and 34. But from api, we are getting only 34.

Please help.

API EndPoint: http://localhost/magento/rest/default/V1/products/24-MB01

Partial Response: 1 24-MB01 Joust Duffle Bag 15 34 1 4 simple 2017-01-10 07:50:47 2017-01-10 07:50:47

The catalog price rule is working in frontend. But when we get the product from REST API, we are getting the original price only.

Example: Product price is 34, we were created catalog rule with 10% for all products, in frontend we are getting both prices 30.26 and 34. But from api, we are getting only 34.

Please help.

API EndPoint: http://localhost/magento/rest/default/V1/products/24-MB01

Partial Response: { "id": 1, "sku": "24-MB01", "name": "Joust Duffle Bag", "attribute_set_id": 15, "price": 34, "status": 1, "visibility": 4, "type_id": "simple", "created_at": "2017-01-10 07:50:47", "updated_at": "2017-01-10 07:50:47", "extension_attributes": [], "product_links": [], "options": [], }

2 added 457 characters in body
source | link

The catalog price rule is working in frontend. But when we get the product from REST API, we are getting the original price only.

Example: Product price is 34, we were created catalog rule with 10% for all products, in frontend we are getting both prices 30.26 and 34. But from api, we are getting only 34.

Please help.

API EndPoint: http://localhost/magento/rest/default/V1/products/24-MB01

Partial Response: 1 24-MB01 Joust Duffle Bag 15 34 1 4 simple 2017-01-10 07:50:47 2017-01-10 07:50:47

The catalog price rule is working in frontend. But when we get the product from REST API, we are getting the original price only.

Example: Product price is 34, we were created catalog rule with 10% for all products, in frontend we are getting both prices 30.26 and 34. But from api, we are getting only 34.

Please help.

The catalog price rule is working in frontend. But when we get the product from REST API, we are getting the original price only.

Example: Product price is 34, we were created catalog rule with 10% for all products, in frontend we are getting both prices 30.26 and 34. But from api, we are getting only 34.

Please help.

API EndPoint: http://localhost/magento/rest/default/V1/products/24-MB01

Partial Response: 1 24-MB01 Joust Duffle Bag 15 34 1 4 simple 2017-01-10 07:50:47 2017-01-10 07:50:47

1
source | link