younifyd
Menu

Create creditmemo/{id}/comments

Create creditmemo/{id}/comments

POST/V1/creditmemo/{id}/comments

Use it in a workflow

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

Request

Path parameters

idstringrequired

Request body

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

entityobjectrequired

Credit memo comment interface. After a customer places and pays for an order and an invoice has been issued, the merchant can create a credit memo to refund all or part of the amount paid for any returned or undelivered items. The memo restores funds to the customer account so that the customer can make future purchases. A credit memo usually includes comments that detail why the credit memo amount was credited to the customer.

commentstringrequired

Comment.

created_atstring

Created-at timestamp.

entity_idinteger

Credit memo ID.

is_customer_notifiedintegerrequired

Is-customer-notified flag value.

is_visible_on_frontintegerrequired

Is-visible-on-storefront flag value.

parent_idintegerrequired

Parent ID.

extension_attributesobject

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

json
{
  "entity": {
    "comment": "string",
    "is_customer_notified": 0,
    "is_visible_on_front": 0,
    "parent_id": 0,
    "created_at": "string",
    "entity_id": 0,
    "extension_attributes": {}
  }
}

Response

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

commentstring

Comment.

created_atstring

Created-at timestamp.

entity_idinteger

Credit memo ID.

is_customer_notifiedinteger

Is-customer-notified flag value.

is_visible_on_frontinteger

Is-visible-on-storefront flag value.

parent_idinteger

Parent ID.

extension_attributesobject

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

json
{
  "comment": "string",
  "is_customer_notified": 0,
  "is_visible_on_front": 0,
  "parent_id": 0,
  "created_at": "string",
  "entity_id": 0,
  "extension_attributes": {}
}

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

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