Change Starting Invoice Number

Hello,

I need to know how to change the starting invoice number for our invoices. I know how, but it won’t let me go back to where I need to. Here is my issue. I wanted to change the starting number to 250501, but accidently changed it to 2500501 and this is not consistent with our numbering process. After creating the invoice 2500501 it won’t let me set a starting number of 250501 now, it says that the smallest number allowed is 2500502.

I have already voided and deleted the invoice that was created as 2500501 but still alas I cannot change it.

Anyone know how to make this change?

Thank you

You can try to see if you can modify that initial invoice number via the API.

The API request to pull the list of existing invoices could look like this:
curl --request GET \
--url ‘https://api.hubapi.com/crm/v3/objects/invoices?limit=10&properties=hs_number&archived=false’ \
--header ‘authorization: Bearer YOUR_ACCESS_TOKEN’

Here is an example response that showcases the property label:

properties

hs_createdate:2024-12-13T14:11:52.451Z

hs_lastmodifieddate:2025-03-13T22:00:01.080Z

hs_number:INV-1001

hs_object_id:390299138707

createdAt:2024-12-13T14:11:52.451Z

updatedAt:2025-03-13T22:00:01.080Z

archived:false

The PATCH (update request) would look something like this:

curl --request PATCH \
--url https://api.hubapi.com/crm/v3/objects/invoices/invoiceId \
--header ‘authorization: Bearer YOUR_ACCESS_TOKEN’ \
--header ‘content-type: application/json’ \
--data ‘{
“properties”: {
“hs_number”: “250501”
}
}’

Does this help?

PS I just tested this with n8n and it works, here’s the result:

hs_lastmodifieddate:2025-05-07T19:14:31.775Z

hs_number:250501

Let me know if you need help.

Thank you

Most welcome!