Moloni ON Logo WhiteGuidesAPI ReferenceExplorer
API Reference

customerNextNumber

query

Next available customer number

Calculates the next sequential customer number, with optional prefix filtering. Useful when creating new customers to auto-suggest a reference number.

query {
  customerNextNumber(companyId: Int!, options: GetNextCustomerNumberOptions): CustomerNextNumber!
}

Returns: CustomerNextNumber!

Arguments

NameTypeDescription
companyIdInt!
optionsGetNextCustomerNumberOptions

© 2026 Moloni ON

Tax Authority Certificate No. 3075