younifyd
Menu

Create orders/{id}/comments

Create orders/{id}/comments

POST/V1/orders/{id}/comments

Use it in a workflow

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

Request

Path parameters

idintegerrequired

The order ID.

Request body

Enter the body as JSON in the step's Body field.

statusHistoryobjectrequired

Order status history interface. An order is a document that a web store issues to a customer. Magento generates a sales order that lists the product items, billing and shipping addresses, and shipping and payment methods. A corresponding external document, known as a purchase order, is emailed to the customer.

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

json
{
  "statusHistory": {
    "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": {}
  }
}

Response

Returns 200 with a boolean. Read it in later steps with {{createOrdersIdComments.response.data.<field>}}.

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

Create orders/{id}/comments — Adobe Commerce — Documentation