If you send the invoice number when creating the invoice then it’s used rather than prefix and counter. The web app uses the API, we suggest using the network tab in the browser console to view sample requests.
If the number is already taken the API will fail to create the invoice.