POST v1/store/login/user/orders/unsubmitted/items/{orderItemID}/price/calculate

Gets the price of the order item that has not been submitted.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderItemID

The unique ID of the order item.

globally unique identifier

Required

Body Parameters

The order item model.

OrderItemModel
NameDescriptionTypeAdditional information
ID

The unique ID of the order item.

globally unique identifier

None.

FriendlyID

The friendly ID of the order item.

integer

None.

ProductID

The unique ID of the order item's product.

globally unique identifier

None.

Quantity

The number of units of the product to be purchased in the order item.

integer

None.

Items

The component order items of the order item.

Collection of SubOrderItemModel

None.

DeliveryMethod

The selected delivery method of the order item.

DeliveryMethod

None.

DeliveryServiceID

The selected delivery service id of the order item.

globally unique identifier

None.

Properties

The order item's property values.

Collection of OrderItemPropertyModel

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns the price of the provided order item model.

OrderItemPriceModel
NameDescriptionTypeAdditional information
Price

The price of the order item. Includes delivery price.
The value is undefined (equals null) if the user does not have permission to view the product price.

ProductPriceModel

None.

IsMinimumPrice

Indicates whether the price is the product's minimum price and not the actual price.
The minimum price is returned when the actual price cannot be calculated. For an example, when a property does not have a valid value.

boolean

None.

MailingFee

The price of mailing delivery of the order item.

decimal number

None.

ProductPrice

The price of the product. Does not include the delivery price.

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "Price": {
    "Price": 1.0,
    "Tax": 2.0
  },
  "IsMinimumPrice": true,
  "MailingFee": 2.0,
  "ProductPrice": 3.0
}