InvoiceComment

Get

GET

Path parameters

invoiceIdstringRequired
commentIdstringRequired

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