younifyd
Menu

Get orders/{id}/comments

Get orders/{id}/comments

GET/V1/orders/{id}/comments

Use it in a workflow

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

Request

Path parameters

idintegerrequired

The order ID.

Response

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

itemsarray<object>

Array of collection items.

commentstringrequired

Comment.

created_atstring

Created-at timestamp.

entity_idinteger

Order status history ID.

entity_namestring

Entity name.

is_customer_notifiedintegerrequired

Is-customer-notified flag value.

is_visible_on_frontintegerrequired

Is-visible-on-storefront flag value.

parent_idintegerrequired

Parent ID.

statusstring

Status.

extension_attributesobject

ExtensionInterface class for @see \Magento\Sales\Api\Data\OrderStatusHistoryInterface

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": [
    {
      "comment": "string",
      "is_customer_notified": 0,
      "is_visible_on_front": 0,
      "parent_id": 0,
      "created_at": "string",
      "entity_id": 0,
      "entity_name": "string",
      "status": "string",
      "extension_attributes": {}
    }
  ],
  "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.