Query
query GetCustomerInvoices($input: GetCustomerInvoicesInput!) {
getCustomerInvoices(input: $input) {
invoices {
contractExternalId
currency
customerExternalId
discount
dueDate
invoiceExternalId
}
totalCount
}
}Variables
{
"input": {
"customerId": "string"
}
}Response
{
"data": {
"getCustomerInvoices": {
"invoices": [
{
"contractExternalId": "string",
"currency": "string",
"customerExternalId": "string",
"discount": 1.5,
"dueDate": "value",
"invoiceExternalId": "string"
}
],
"totalCount": 1
}
}
}Queries
getCustomerInvoices
Get a customer’s invoices, fetched live from the connected billing provider (Received), with offset pagination and optional narrowing by contract, issue-date range, and/or invoice states. Ordered by issue date ascending by default; override with orderBy/orderDir. Returns an empty page when no billing provider is connected or the customer is not synced.
QUERY
getCustomerInvoices(input: GetCustomerInvoicesInput!): InvoicesPageDTO!Arguments
input
required
Returns
invoices
[InvoiceDTO!]!
The invoices in this page
totalCount
Int!
Total number of matching invoices across all pages
Query
query GetCustomerInvoices($input: GetCustomerInvoicesInput!) {
getCustomerInvoices(input: $input) {
invoices {
contractExternalId
currency
customerExternalId
discount
dueDate
invoiceExternalId
}
totalCount
}
}Variables
{
"input": {
"customerId": "string"
}
}Response
{
"data": {
"getCustomerInvoices": {
"invoices": [
{
"contractExternalId": "string",
"currency": "string",
"customerExternalId": "string",
"discount": 1.5,
"dueDate": "value",
"invoiceExternalId": "string"
}
],
"totalCount": 1
}
}
}