Generate Invoice Number
Get the next invoice number for the given location
GET
Generate Invoice Number
Last modified on March 8, 2026
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get the next invoice number for the given location
curl --request GET \
--url https://services.leadconnectorhq.com/invoices/generate-invoice-number \
--header 'Version: <version>'const options = {method: 'GET', headers: {Version: '<version>'}};
fetch('https://services.leadconnectorhq.com/invoices/generate-invoice-number', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/invoices/generate-invoice-number"
headers = {"Version": "<version>"}
response = requests.get(url, headers=headers)
print(response.text){
"invoiceNumber": "19"
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}Was this page helpful?
curl --request GET \
--url https://services.leadconnectorhq.com/invoices/generate-invoice-number \
--header 'Version: <version>'const options = {method: 'GET', headers: {Version: '<version>'}};
fetch('https://services.leadconnectorhq.com/invoices/generate-invoice-number', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/invoices/generate-invoice-number"
headers = {"Version": "<version>"}
response = requests.get(url, headers=headers)
print(response.text){
"invoiceNumber": "19"
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}