> 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` (object, required) — The comment that was created or deleted.
  - `id` (string, required)
  - `text` (string, required)
  - `createdAt` (datetime, required)
  - `updatedAt` (datetime, required)
  - `user` (object, optional)
    - `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` (object, optional) — If an approval action has triggered the generation of this comment, returns the associated approval action and actor
    - `userId` (string, required)
    - `action` (enum, required)
      - Allowed values: `NONE`, `APPROVE`, `REJECT`
- `user` (object, optional) — User who created or deleted the comment.
  - `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)