Skip to main content
Version: 8.1.x

Prices

Prices describe the amount of money required to purchase an item or items. The prices resource links prices to: items, cart line items and item definitions

Read Item Price​

Read the unit price of an item. The unit price of an item is the price for one unit (quantity = 1)

Workflow​

  1. Start with item
  2. GET the link with rel: price
  3. Render the response

Response Fields​

Type: prices.item-price​

NameDescriptionType
list-priceThe unit price of an item before catalog discounts are applied.array
  currencyThe currency the cost is in.string
  amountThe decimal value of the cost.decimal
  displayFormatted currency string that can be displayed on the client application.string
purchase-priceThe unit price of an item after catalog discounts are applied.array
  currencyThe currency the cost is in.string
  amountThe decimal value of the cost.decimal
  displayFormatted currency string that can be displayed on the client application.string

Read Cart Line Item Price​

Read the unit price of a cart line item. The unit price of a cart line item is the price for one unit when a given quantity is purchased (the line item quantity).

Workflow​

  1. Start with line-item
  2. GET the link with rel: price
  3. Render the response

Response Fields​

Type: prices.cart-line-item-price​

NameDescriptionType
list-priceThe unit price of an item in the shopper’s cart before shopping cart discounts are applied.array
  currencyThe currency the cost is in.string
  amountThe decimal value of the cost.decimal
  displayFormatted currency string that can be displayed on the client application.string
purchase-priceThe unit price of an item in the shopper’s cart after shopping cart discounts are applied. This represents the price the shopper will actually pay for each unit. If no discounts have been applied, the list and purchase price will be the same.array
  currencyThe currency the cost is in.string
  amountThe decimal value of the cost.decimal
  displayFormatted currency string that can be displayed on the client application.string

Read Lowest Price Of Item Options​

Read the price of the item option with the lowest price. This link will only appear if the item has options.

Workflow​

  1. Start with item-definition
  2. GET the link with rel: fromprice
  3. Render the response

Response Fields​

Type: prices.price-range​

NameDescriptionType
from-priceThe starting or the minimum price.array
  currencyThe currency the cost is in.string
  amountThe decimal value of the cost.decimal
  displayFormatted currency string that can be displayed on the client application.string
to-priceThe maximum price.array
  currencyThe currency the cost is in.string
  amountThe decimal value of the cost.decimal
  displayFormatted currency string that can be displayed on the client application.string

Read Shipment Line Item Price​

Retrieves the price of a shipment line item.

Workflow​

  1. Start with shipment-line-item
  2. GET the link with rel: price
  3. Render the response

Response Fields​

Type: prices.shipment-line-item-price​

NameDescriptionType
list-priceThe price of a shipment line item before discounts are applied.array
  currencyThe currency the cost is in.string
  amountThe decimal value of the cost.decimal
  displayFormatted currency string that can be displayed on the client application.string
purchase-priceThe price of a shipment line item after discounts are applied. If no discounts have been applied, the list and purchase price will be the same.array
  currencyThe currency the cost is in.string
  amountThe decimal value of the cost.decimal
  displayFormatted currency string that can be displayed on the client application.string