younifyd
Menu

Get carts/{cartId}

Get carts/{cartId}

GET/V1/carts/{cartId}

Use it in a workflow

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

Request

Path parameters

cartIdintegerrequired

Response

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

idinteger

Cart/quote ID.

created_atstring

Cart creation date and time. Otherwise, null.

updated_atstring

Cart last update date and time. Otherwise, null.

converted_atstring

Cart conversion date and time. Otherwise, null.

is_activeboolean

Active status flag value. Otherwise, null.

is_virtualboolean

Virtual flag value. Otherwise, null.

itemsarray<object>

Array of items. Otherwise, null.

item_idinteger

Item ID. Otherwise, null.

skustring

Product SKU. Otherwise, null.

qtynumberrequired

Product quantity.

namestring

Product name. Otherwise, null.

pricenumber

Product price. Otherwise, null.

product_typestring

Product type. Otherwise, null.

quote_idstringrequired

Quote id.

product_optionobject1 fields

Product option interface

extension_attributesobject2 fields

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

items_countinteger

Number of different items or products in the cart. Otherwise, null.

items_qtynumber

Total quantity of all cart items. Otherwise, null.

customerobject

Customer entity interface for API handling.

idinteger

Customer id

group_idinteger

Group id

default_billingstring

Default billing address id

default_shippingstring

Default shipping address id

confirmationstring

Confirmation

created_atstring

Created at time

updated_atstring

Updated at time

created_instring

Created in area

dobstring

In keeping with current security and privacy best practices, be sure you are aware of any potential legal and security risks associated with the storage of customers’ full date of birth (month, day, year) along with other personal identifiers (e.g., full name) before collecting or processing such data.

emailstringrequired

Email address

firstnamestringrequired

First name

lastnamestringrequired

Last name

middlenamestring

Middle name

prefixstring

Prefix

suffixstring

Suffix

genderinteger

Gender

store_idinteger

Store id

taxvatstring

Tax Vat

website_idinteger

Website id

addressesarray<object>21 fields

Customer addresses.

disable_auto_group_changeinteger

Disable auto group change flag.

extension_attributesobject4 fields

ExtensionInterface class for @see \Magento\Customer\Api\Data\CustomerInterface

custom_attributesarray<object>2 fields

Custom attributes values.

billing_addressobject

Interface AddressInterface

idinteger

Id

regionstringrequired

Region name

region_idintegerrequired

Region id

region_codestringrequired

Region code

country_idstringrequired

Country id

streetarray<string>required

Street

companystring

Company

telephonestringrequired

Telephone number

faxstring

Fax number

postcodestringrequired

Postcode

citystringrequired

City name

firstnamestringrequired

First name

lastnamestringrequired

Last name

middlenamestring

Middle name

prefixstring

Prefix

suffixstring

Suffix

vat_idstring

Vat id

customer_idinteger

Customer id

emailstringrequired

Billing/shipping email

same_as_billinginteger

Same as billing flag

customer_address_idinteger

Customer address id

save_in_address_bookinteger

Save in address book flag

extension_attributesobject3 fields

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

custom_attributesarray<object>2 fields

Custom attributes values.

reserved_order_idstring

Reserved order ID. Otherwise, null.

orig_order_idinteger

Original order ID. Otherwise, null.

currencyobject

Interface CurrencyInterface

global_currency_codestring

Global currency code

base_currency_codestring

Base currency code

store_currency_codestring

Store currency code

quote_currency_codestring

Quote currency code

store_to_base_ratenumber

Store currency to base currency rate

store_to_quote_ratenumber

Store currency to quote currency rate

base_to_global_ratenumber

Base currency to global currency rate

base_to_quote_ratenumber

Base currency to quote currency rate

extension_attributesobject

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

customer_is_guestboolean

For guest customers, false for logged in customers

customer_notestring

Notice text

customer_note_notifyboolean

Customer notification flag

customer_tax_class_idinteger

Customer tax class ID.

store_idinteger

Store identifier

extension_attributesobject

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

shipping_assignmentsarray<object>3 fields
negotiable_quoteobject23 fields

Interface NegotiableQuoteInterface

company_idinteger
coupon_codesarray<string>
json
{
  "id": 0,
  "customer": {
    "email": "string",
    "firstname": "string",
    "lastname": "string",
    "id": 0,
    "group_id": 0,
    "default_billing": "string",
    "default_shipping": "string",
    "confirmation": "string",
    "created_at": "string",
    "updated_at": "string",
    "created_in": "string",
    "dob": "string"
  },
  "store_id": 0,
  "created_at": "string",
  "updated_at": "string",
  "converted_at": "string",
  "is_active": false,
  "is_virtual": false,
  "items": [
    {
      "qty": 0,
      "quote_id": "string",
      "item_id": 0,
      "sku": "string",
      "name": "string",
      "price": 0,
      "product_type": "string",
      "product_option": {
        "extension_attributes": {
          "custom_options": [
            {
              "option_id": null,
              "option_value": null,
              "extension_attributes": null
            }
          ],
          "bundle_options": [
            {
              "option_id": null,
              "option_qty": null,
              "option_selections": null,
              "extension_attributes": null
            }
          ],
          "downloadable_option": {
            "downloadable_links": [
              null
            ]
          },
          "giftcard_item_option": {
            "giftcard_amount": "string",
            "giftcard_sender_name": "string",
            "giftcard_recipient_name": "string",
            "giftcard_sender_email": "string",
            "giftcard_recipient_email": "string",
            "custom_giftcard_amount": 0,
            "giftcard_message": "string",
            "extension_attributes": {}
          },
          "configurable_item_options": [
            {
              "option_id": null,
              "option_value": null,
              "extension_attributes": null
            }
          ],
          "grouped_options": [
            {
              "id": null,
              "qty": null,
              "extension_attributes": null
            }
          ]
        }
      },
      "extension_attributes": {
        "discounts": [
          {
            "discount_data": {
              "amount": null,
              "base_amount": null,
              "original_amount": null,
              "base_original_amount": null
            },
            "rule_label": "string",
            "rule_i_d": 0
          }
        ],
        "negotiable_quote_item": {
          "item_id": 0,
          "original_price": 0,
          "original_tax_amount": 0,
          "original_discount_amount": 0,
          "extension_attributes": {
            "negotiated_price_type": 0,
            "negotiated_price_value": 0,
            "last_item_notes": [
              null
            ],
            "is_discounting_locked": false,
            "min_qty": 0,
            "max_qty": 0
          }
        }
      }
    }
  ],
  "items_count": 0,
  "items_qty": 0,
  "billing_address": {
    "region": "string",
    "region_id": 0,
    "region_code": "string",
    "country_id": "string",
    "street": [
      "string"
    ],
    "telephone": "string",
    "postcode": "string",
    "city": "string",
    "firstname": "string",
    "lastname": "string",
    "email": "string",
    "id": 0
  }
}

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