younifyd
Menu

Get carts/search

Get carts/search

GET/V1/carts/search

Use it in a workflow

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

Request

Query parameters

searchCriteria[filterGroups][0][filters][0][field]string

Field

searchCriteria[filterGroups][0][filters][0][value]string

Value

searchCriteria[filterGroups][0][filters][0][conditionType]string

Condition type

searchCriteria[sortOrders][0][field]string

Sorting field.

searchCriteria[sortOrders][0][direction]string

Sorting direction.

searchCriteria[pageSize]integer

Page size.

searchCriteria[currentPage]integer

Current page.

Response

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

itemsarray<object>

Carts list.

idintegerrequired

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>9 fields

Array of items. Otherwise, null.

items_countinteger

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

items_qtynumber

Total quantity of all cart items. Otherwise, null.

customerobjectrequired23 fields

Customer entity interface for API handling.

billing_addressobject24 fields

Interface AddressInterface

reserved_order_idstring

Reserved order ID. Otherwise, null.

orig_order_idinteger

Original order ID. Otherwise, null.

currencyobject9 fields

Interface 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_idintegerrequired

Store identifier

extension_attributesobject4 fields

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

search_criteriaobject

Search criteria interface.

filter_groupsarray<object>required1 fields

A list of filter groups.

sort_ordersarray<object>2 fields

Sort order.

page_sizeinteger

Page size.

current_pageinteger

Current page.

total_countinteger

Total count.

json
{
  "items": [
    {
      "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": null,
              "bundle_options": null,
              "downloadable_option": null,
              "giftcard_item_option": null,
              "configurable_item_options": null,
              "grouped_options": null
            }
          },
          "extension_attributes": {
            "discounts": [
              null
            ],
            "negotiable_quote_item": {
              "item_id": null,
              "original_price": null,
              "original_tax_amount": null,
              "original_discount_amount": null,
              "extension_attributes": null
            }
          }
        }
      ],
      "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
      }
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "string",
            "value": "string",
            "condition_type": "string"
          }
        ]
      }
    ],
    "sort_orders": [
      {
        "field": "string",
        "direction": "string"
      }
    ],
    "page_size": 0,
    "current_page": 0
  },
  "total_count": 0
}

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