POST api/orders/orderitems?customer_id={customer_id}&store_id={store_id}&bonus_payment={bonus_payment}&promo_code={promo_code}
Calculate discount
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
customer_id |
if there aren't marketshares, payment sum will be calculate by customer discount |
integer |
Required |
store_id | integer |
Required |
|
bonus_payment | decimal number |
Default value is 0 |
|
promo_code | string |
Default value is |
Body Parameters
collection of order_item_calc
DeltaOfOrderItemsCalcRootObjectName | Description | Type | Additional information |
---|---|---|---|
Dto | OrderItemsCalcRootObject |
None. |
|
ObjectPropertyNameValuePairs | Dictionary of Object [key] and Object [value] |
None. |
Response Information
Resource Description
OrderItemsRootObjectName | Description | Type | Additional information |
---|---|---|---|
order_items | Collection of OrderItemDto |
None. |
Response Formats
application/json, text/json
Sample:
{ "order_items": [ { "id": 1, "client_production_id": 1, "production_id": 2, "article": "sample string 3", "color": "sample string 4", "size": "sample string 5", "quantity": 6, "pay_amount": 7.0, "pay_amount_total": 8.0, "discount_percent": 9.0, "discount_amount": 10.0, "discount_amount_total": 11.0, "retail_price": 12.0, "current_price": 13.0, "discount_type": "sample string 14", "market_share_id": 1, "current_discount_percent": 15.0, "current_discount_amount": 16.0, "current_discount_type": "sample string 17", "brand_name": "sample string 18" }, { "id": 1, "client_production_id": 1, "production_id": 2, "article": "sample string 3", "color": "sample string 4", "size": "sample string 5", "quantity": 6, "pay_amount": 7.0, "pay_amount_total": 8.0, "discount_percent": 9.0, "discount_amount": 10.0, "discount_amount_total": 11.0, "retail_price": 12.0, "current_price": 13.0, "discount_type": "sample string 14", "market_share_id": 1, "current_discount_percent": 15.0, "current_discount_amount": 16.0, "current_discount_type": "sample string 17", "brand_name": "sample string 18" } ] }
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.