InvoiceComment

Update

POST
https://api.mercoa.com/invoice/:invoiceId/comment/:commentId

Edit a comment on this invoice

Path parameters

invoiceId
string
commentId
string

Request

This endpoint expects an object.
text
string
userId
optional string

Response

This endpoint return an object.
id
string
text
string
createdAt
datetime
updatedAt
datetime
user
optional object
associatedApprovalAction
optional object

If an approval action has triggered the generation of this comment, returns the associated approval action and actor

POST
/invoice/:invoiceId/comment/:commentId
curl -X POST https://api.mercoa.com/invoice/:invoiceId/comment/:commentId \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"text": "string"
}'
Response
{
"id": "string",
"text": "string",
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-01T00:00:00Z",
"user": {
"id": "string",
"roles": [
"string"
],
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-01T00:00:00Z",
"foreignId": "string",
"email": "string",
"name": "string"
},
"associatedApprovalAction": {
"userId": "string",
"action": "NONE"
}
}