younifyd
Menu

Get carts/{cartId}/totals

Get carts/{cartId}/totals

GET/V1/carts/{cartId}/totals

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get carts/{cartId}/totals action (under Carts).
  3. Fill in the fields below, then reference the result from later steps as {{getCartsCartidTotals.response.data}}.

Request

Path parameters

cartIdintegerrequired

The cart ID.

Response

Returns 200 with an object. Read it in later steps with {{getCartsCartidTotals.response.data.<field>}}.

grand_totalnumber

Grand total in quote currency

base_grand_totalnumber

Grand total in base currency

subtotalnumber

Subtotal in quote currency

base_subtotalnumber

Subtotal in base currency

discount_amountnumber

Discount amount in quote currency

base_discount_amountnumber

Discount amount in base currency

subtotal_with_discountnumber

Subtotal in quote currency with applied discount

base_subtotal_with_discountnumber

Subtotal in base currency with applied discount

shipping_amountnumber

Shipping amount in quote currency

base_shipping_amountnumber

Shipping amount in base currency

shipping_discount_amountnumber

Shipping discount amount in quote currency

base_shipping_discount_amountnumber

Shipping discount amount in base currency

tax_amountnumber

Tax amount in quote currency

base_tax_amountnumber

Tax amount in base currency

weee_tax_applied_amountnumber

Item weee tax applied amount in quote currency.

shipping_tax_amountnumber

Shipping tax amount in quote currency

base_shipping_tax_amountnumber

Shipping tax amount in base currency

subtotal_incl_taxnumber

Subtotal including tax in quote currency

base_subtotal_incl_taxnumber

Subtotal including tax in base currency

shipping_incl_taxnumber

Shipping including tax in quote currency

base_shipping_incl_taxnumber

Shipping including tax in base currency

base_currency_codestring

Base currency code

quote_currency_codestring

Quote currency code

coupon_codestring

Applied coupon code

items_qtyinteger

Items qty

itemsarray<object>

Totals by items

item_idintegerrequired

Item id

pricenumberrequired

Item price in quote currency.

base_pricenumberrequired

Item price in base currency.

qtynumberrequired

Item quantity.

row_totalnumberrequired

Row total in quote currency.

base_row_totalnumberrequired

Row total in base currency.

row_total_with_discountnumber

Row total with discount in quote currency. Otherwise, null.

tax_amountnumber

Tax amount in quote currency. Otherwise, null.

base_tax_amountnumber

Tax amount in base currency. Otherwise, null.

tax_percentnumber

Tax percent. Otherwise, null.

discount_amountnumber

Discount amount in quote currency. Otherwise, null.

base_discount_amountnumber

Discount amount in base currency. Otherwise, null.

discount_percentnumber

Discount percent. Otherwise, null.

price_incl_taxnumber

Price including tax in quote currency. Otherwise, null.

base_price_incl_taxnumber

Price including tax in base currency. Otherwise, null.

row_total_incl_taxnumber

Row total including tax in quote currency. Otherwise, null.

base_row_total_incl_taxnumber

Row total including tax in base currency. Otherwise, null.

optionsstringrequired

Item price in quote currency.

weee_tax_applied_amountnumberrequired

Item weee tax applied amount in quote currency.

weee_tax_appliedstringrequired

Item weee tax applied in quote currency.

extension_attributesobject1 fields

ExtensionInterface class for @see \Magento\Quote\Api\Data\TotalsItemInterface

namestring

Product name. Otherwise, null.

total_segmentsarray<object>

Dynamically calculated totals

codestringrequired

Code

titlestring

Total title

valuenumberrequired

Total value

areastring

Display area code.

extension_attributesobject24 fields

ExtensionInterface class for @see \Magento\Quote\Api\Data\TotalSegmentInterface

extension_attributesobject

ExtensionInterface class for @see \Magento\Quote\Api\Data\TotalsInterface

coupon_labelstring
negotiable_quote_totalsobject16 fields

Extension attribute for quote totals model.

base_customer_balance_amountnumber
customer_balance_amountnumber
coupon_codesarray<string>
coupons_labelsarray<string>
reward_points_balancenumber
reward_currency_amountnumber
base_reward_currency_amountnumber
json
{
  "weee_tax_applied_amount": 0,
  "total_segments": [
    {
      "code": "string",
      "value": 0,
      "title": "string",
      "area": "string",
      "extension_attributes": {
        "tax_grandtotal_details": [
          {
            "amount": 0,
            "rates": [
              null
            ],
            "group_id": 0
          }
        ],
        "gift_cards": "string",
        "gw_order_id": "string",
        "gw_item_ids": [
          "string"
        ],
        "gw_allow_gift_receipt": "string",
        "gw_add_card": "string",
        "gw_price": "string",
        "gw_base_price": "string",
        "gw_items_price": "string",
        "gw_items_base_price": "string",
        "gw_card_price": "string",
        "gw_card_base_price": "string"
      }
    }
  ],
  "grand_total": 0,
  "base_grand_total": 0,
  "subtotal": 0,
  "base_subtotal": 0,
  "discount_amount": 0,
  "base_discount_amount": 0,
  "subtotal_with_discount": 0,
  "base_subtotal_with_discount": 0,
  "shipping_amount": 0,
  "base_shipping_amount": 0
}

Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.