> This page is for Embedded AP/AR.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mercoa.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mercoa.com/_mcp/server.

# Invoice Comment Created

POST 

A comment was added to an invoice

Reference: https://docs.mercoa.com/embedded-ap-ar/api-reference/webhooks/invoice-comment-created

## Request

### Payload

- `eventType` (string, required) — The type of the event.
- `invoiceId` (string, required) — The ID of the invoice the comment belongs to.
- `comment` (CommentResponse, required) — The comment that was created or deleted.
- `user` (EntityUserResponse, optional) — User who created or deleted the comment.

## Types

### CommentResponse

- `id` (string, required)
- `text` (string, required)
- `createdAt` (datetime, required)
- `updatedAt` (datetime, required)
- `user` (EntityUserResponse, optional)
- `associatedApprovalAction` (AssociatedApprovalAction, optional) — If an approval action has triggered the generation of this comment, returns the associated approval action and actor

### EntityUserResponse

- `id` (string, required)
- `roles` (list of string, required)
- `createdAt` (datetime, required)
- `updatedAt` (datetime, required)
- `foreignId` (string, optional) — The ID used to identify this user in your system.
- `email` (string, optional)
- `name` (string, optional)

### AssociatedApprovalAction

- `userId` (string, required)
- `action` (enum, required)
  - Allowed values: `NONE`, `APPROVE`, `REJECT`