InvoiceComment

Get All

GET
https://api.mercoa.com/invoice/:invoiceId/comments

Get all comments associated with this invoice

Path parameters

invoiceId
string

Response

This endpoint return a list of objects.
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/comments
curl https://api.mercoa.com/invoice/:invoiceId/comments \
-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"
}
}
]