InvoiceComment

Update

POST
Edit a comment on this invoice

Path parameters

invoiceIdstringRequired
commentIdstringRequired

Request

This endpoint expects an object.
text
stringRequired
userId
stringOptional

Response

This endpoint returns an object
id
string
text
string
createdAt
datetime
updatedAt
datetime
user
objectOptional
associatedApprovalAction
objectOptional
If an approval action has triggered the generation of this comment, returns the associated approval action and actor
POST
1curl -X POST https://api.mercoa.com/invoice/:invoiceId/comment/:commentId \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "text": "string"
6}'
200
Successful
1{
2 "id": "string",
3 "text": "string",
4 "createdAt": "2023-01-01T00:00:00Z",
5 "updatedAt": "2023-01-01T00:00:00Z",
6 "user": {
7 "id": "string",
8 "roles": [
9 "string"
10 ],
11 "createdAt": "2023-01-01T00:00:00Z",
12 "updatedAt": "2023-01-01T00:00:00Z",
13 "foreignId": "string",
14 "email": "string",
15 "name": "string"
16 },
17 "associatedApprovalAction": {
18 "userId": "string",
19 "action": "NONE"
20 }
21}