Skip to main content

Peliqan

Xero

Total credit notes by customer

SQL query for Xero

Get the total credit notes issued to each customer.

SELECT Customer, COUNT(*) AS TotalCreditNotes FROM CreditNotes GROUP BY Customer

Xero data model

Xero
Accounts

Xero
Contacts

Xero
Credit Notes

Xero
Invoices

Xero
Items

Xero
Journals

Xero
Manual Journals

Xero
Payments

Xero
Payment Services

Xero
Purchase Orders

Ready to get instant access to all your company data ?​

Connect 300+ sources, serve any BI tool, and give every AI agent one governed endpoint to read, and write back where the app supports it.