InvoiceComment

Get

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

Path parameters

invoiceId
string
commentId
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

GET
/invoice/:invoiceId/comment/:commentId
curl https://api.mercoa.com/invoice/:invoiceId/comment/:commentId \
-H "Authorization: Bearer <token>"
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"
}
}