Skip to main content
Version: 7.6.x

Totals

The totals resource calculates the total costs for:

Read Cart Total​

Retrieve the total cost of all cart line items before cart total discounts are applied.

Workflow​

  1. Start with cart
  2. GET the link with rel: total
  3. Render the response

Response Fields​

Type: totals.total​

NameDescriptionType
costThe total costs. This is an array because the total cost have multiple currencies. For example, $20 USD + 20,000 loyalty points.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 Total​

Retrieve the total cost of a single cart line item for a requested quantity, after cart line item discounts are applied.

Workflow​

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

Response Fields​

Type: totals.total​

NameDescriptionType
costThe total costs. This is an array because the total cost have multiple currencies. For example, $20 USD + 20,000 loyalty points.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 Order Total​

Retrieve the total cost of the shopper’s order including taxes and shipping costs.

Workflow​

  1. Start with order
  2. GET the link with rel: total
  3. Render the response

Response Fields​

Type: totals.total​

NameDescriptionType
costThe total costs. This is an array because the total cost have multiple currencies. For example, $20 USD + 20,000 loyalty points.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 Total​

Retrieve the total cost for a shipment.

Workflow​

  1. Start with shipment
  2. GET the link with rel: total
  3. Render the response

Response Fields​

Type: totals.total​

NameDescriptionType
costThe total costs. This is an array because the total cost have multiple currencies. For example, $20 USD + 20,000 loyalty points.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 Total​

Retrieve the total cost for a shipment line item.

Workflow​

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

Response Fields​

Type: totals.total​

NameDescriptionType
costThe total costs. This is an array because the total cost have multiple currencies. For example, $20 USD + 20,000 loyalty points.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