const options = {
method: 'GET',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'x-connector-id': '<api-key>',
'x-owner-id': '<api-key>',
'x-session-token': '<api-key>'
}
};
fetch('https://api.runmorph.dev/v1/resources/accountingInvoice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"object": "resource",
"model": "<string>",
"id": "<string>",
"fields": {
"invoiceCode": "<string>",
"status": "draft",
"currency": "<string>",
"preTaxAmount": 1,
"taxAmount": 1,
"totalAmount": 1,
"inclusiveOfTax": true,
"balance": 1,
"customerContact": {
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<unknown>",
"rawResource": "<unknown>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"customerCompany": {
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<unknown>",
"rawResource": "<unknown>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"issuedAt": "<string>",
"dueAt": "<string>",
"paidAt": "<string>",
"lineItems": [
{
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<unknown>",
"rawResource": "<unknown>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"note": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"remote": {
"id": "<string>"
},
"rawResource": "<unknown>",
"warnings": [
{
"code": "<string>",
"message": "<string>"
}
]
}
],
"next": "<string>",
"object": "list"
}const options = {
method: 'GET',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'x-connector-id': '<api-key>',
'x-owner-id': '<api-key>',
'x-session-token': '<api-key>'
}
};
fetch('https://api.runmorph.dev/v1/resources/accountingInvoice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"object": "resource",
"model": "<string>",
"id": "<string>",
"fields": {
"invoiceCode": "<string>",
"status": "draft",
"currency": "<string>",
"preTaxAmount": 1,
"taxAmount": 1,
"totalAmount": 1,
"inclusiveOfTax": true,
"balance": 1,
"customerContact": {
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<unknown>",
"rawResource": "<unknown>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"customerCompany": {
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<unknown>",
"rawResource": "<unknown>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"issuedAt": "<string>",
"dueAt": "<string>",
"paidAt": "<string>",
"lineItems": [
{
"id": "<string>",
"object": "resourceRef",
"model": "<string>",
"fields": "<unknown>",
"rawResource": "<unknown>",
"remote": {
"id": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"note": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"remote": {
"id": "<string>"
},
"rawResource": "<unknown>",
"warnings": [
{
"code": "<string>",
"message": "<string>"
}
]
}
],
"next": "<string>",
"object": "list"
}Query parameter that accepts a raw query string and auto-detects and parses emails, phone numbers (E.164), URLs, domains, and ISO dates
Show child attributes
Unique invoice identifier (human-readable)
1 - 250Date when the invoice was issued
Payment due date
Date the invoice was paid (if applicable)
Invoice state
draft, paid, void, overdue, pending ISO currency code (e.g., USD)
3Amount before taxes
x >= 0Total tax applied
x >= 0Final total (with tax)
x >= 0Whether prices are tax-inclusive
Outstanding balance
x >= 0invoiceCode, customerContact, customerCompany, issuedAt, dueAt, paidAt, status, lineItems, currency, preTaxAmount, taxAmount, totalAmount, inclusiveOfTax, balance, note OK
Show child attributes
resource Show child attributes
Unique invoice identifier (human-readable)
1 - 250Invoice state
draft, paid, void, overdue, pending ISO currency code (e.g., USD)
3Amount before taxes
x >= 0Total tax applied
x >= 0Final total (with tax)
x >= 0Whether prices are tax-inclusive
Outstanding balance
x >= 0The customer's contact associated with the invoice
Show child attributes
resourceRef, resource The customer's company associated with the invoice
Show child attributes
resourceRef, resource Date when the invoice was issued
Payment due date
Date the invoice was paid (if applicable)
The line items associated with the invoice
Show child attributes
resourceRef, resource Internal or external memo / comments