InvoiceComment

Get All

GET
Get all comments associated with this invoice

Path parameters

invoiceIdstringRequired

Response

This endpoint returns a list of objects
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
GET
$curl https://api.mercoa.com/invoice/%3AinvoiceId/comments \
> -H "Authorization: Bearer <token>"
Response
1[
2 {
3 "id": "string",
4 "text": "string",
5 "createdAt": "2023-01-01T00:00:00Z",
6 "updatedAt": "2023-01-01T00:00:00Z",
7 "user": {
8 "id": "string",
9 "roles": [
10 "string"
11 ],
12 "createdAt": "2023-01-01T00:00:00Z",
13 "updatedAt": "2023-01-01T00:00:00Z",
14 "foreignId": "string",
15 "email": "string",
16 "name": "string"
17 },
18 "associatedApprovalAction": {
19 "userId": "string",
20 "action": "NONE"
21 }
22 }
23]