InvoiceDocument

Get Source Email

GET
Get the email subject and body that was used to create this invoice.

Path parameters

invoiceIdstringRequired

Response

This endpoint returns an object
count
integer
Total number of logs for the given filters. This value is not limited by the limit parameter. It is provided so that you can determine how many pages of results are available.
hasMore
boolean
True if there are more logs available for the given filters.
data
list of objects
GET
1curl https://api.mercoa.com/invoice/:invoiceId/source-email \
2 -H "Authorization: Bearer <token>"
200
Retrieved
1{
2 "count": 0,
3 "hasMore": true,
4 "data": [
5 {
6 "id": "string",
7 "subject": "string",
8 "from": "string",
9 "to": "string",
10 "htmlBody": "string",
11 "textBody": "string",
12 "createdAt": "2023-01-01T00:00:00Z",
13 "invoiceId": "string"
14 }
15 ]
16}