younifyd
Menu

Create returns/{id}/comments

Create returns/{id}/comments

POST/V1/returns/{id}/comments

Use it in a workflow

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

Request

Path parameters

idstringrequired

Request body

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

dataobjectrequired

Interface CommentInterface

commentstringrequired

Comment

rma_entity_idintegerrequired

Rma Id

created_atstringrequired

Created_at

entity_idintegerrequired

Entity_id

customer_notifiedbooleanrequired

Is_customer_notified

visible_on_frontbooleanrequired

Is_visible_on_front

statusstringrequired

Status

adminbooleanrequired

Is_admin

extension_attributesobject

ExtensionInterface class for @see \Magento\Rma\Api\Data\CommentInterface

custom_attributesarray<object>2 fields

Custom attributes values.

json
{
  "data": {
    "comment": "string",
    "rma_entity_id": 0,
    "created_at": "string",
    "entity_id": 0,
    "customer_notified": false,
    "visible_on_front": false,
    "status": "string",
    "admin": false,
    "extension_attributes": {},
    "custom_attributes": [
      {
        "attribute_code": "string",
        "value": "string"
      }
    ]
  }
}

Response

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

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