magento / catalog-storefront

Open Software License 3.0
7 stars 18 forks source link

Backoffice::GetPrice API - Simple products #446

Open magento-engcom-team opened 4 years ago

magento-engcom-team commented 4 years ago

Add new API to in Magento Backoffice to retrieve product prices

There are 2 main reasons to introduce a new API to get raw prices from Backoffice:

AC:

Cover with web-api tests

repo: <https://github.com/magento/commerce-data-export]

Tech details:

 

Get Prices Request

{
    ids:[product_ids,option ids>,
    website: <website|null>, // if null provided AND price_scope != Global return empty result
    customer*group: <customer group> // if null provided "group*price" should not be calculated 
}

Response format:

message ProductPrice {
  // Represent Product ID or Option ID like custom option, downloadable link, etc.
  // E.g. option/<product_id>/<custom_option_id>
  string entity_id = 2;

  // price without any discount
  float regular_price = 3;

  // customer group price
  float group_price = 4;

  // customer group price type (fixed,percent)
  string group_price_type = 66;

  // absolute value of special price
  float special_price = 5;

  // special price affective from date
  string special_price_from = 6;

  // special price affective to date
  string special_price_to = 7;

   // Represent quantity for given price to build tier prices. If not specified assumes it as "1"
  float qty = 55;
}
magento-engcom-team commented 4 years ago

The issue was exported from the internal JIRA. The link to the original JIRA issue: https://jira.corp.magento.com/browse/SFAPP-164

m2-assistant[bot] commented 4 years ago

Hi @magento-engcom-team. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


bricht commented 3 years ago

@magento I am working on this