---
title: "Create a payable comment"
method: POST
path: "/v1/erp/payouts/payable_comments"
tags: ["Payable Comment"]
---

# Create a payable comment

`POST /v1/erp/payouts/payable_comments`

Posts a comment to a payable's provider chat thread. The payable must have a business
partner, and that partner must already have a portal link. The first comment on a
payable auto-enables its chat.

## Parameters

- `#/paths/~1v1~1erp~1payouts~1rules/get/parameters/0` — unresolved $ref

## Request body

- object — Body used to create a payable comment.
  - `text` string, required — The comment body.
  - `payable_id` string, uuid, required — The payable this comment belongs to. Its business partner must have a portal link.

## Response `201`

The created comment.

- PayableComment — A comment on a payable, used for the provider chat thread.
  - `id` string, uuid, required
  - `text` string, required
  - `payable_id` string, uuid, required
  - `user_id` string, required
  - `read_at` string, date-time, nullable — When the comment was marked as read; null while unread.
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — Unauthorized
- `422` — Unprocessable Entity — the payable has no business partner (`payable_without_business_partner`) or the partner has no portal link (`no_portal_link`).

---

[API](https://skmtc.dev/cardda/apis/banking-api.md) · [All operations](https://skmtc.dev/cardda/apis/banking-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cardda/banking-api/revisions/ff1aeb3fda8b/schema)
