Invoice Number Generator
Options
![brian](https://us.v-cdn.net/6037124/uploads/userpics/11OHPI6GVCSP/nPOPOEI090I2H.png)
brian
Administrator
ADMIN
An invoice number is a unique code assigned to each invoice, which you can accomplish by ensuring every invoice number has the same number of characters.
Generate a number for an invoice with leading zeros, such as:
- 00015
- 00301
- 12022
Here's how to get started:
- Snippet: https://www.xano.com/snippet/t1MmPPr-
- Loom walk-through: https://www.loom.com/share/457b4921448c45cb9670bab5e94a5eda
- Instructions: How to add a Snippet
It features:
- POST /invoice: add a new invoice, after checking if an invoice number is provided. If not, increment from the last invoice number by 1.
You can use this snippet to learn how to:
- Use a Conditional statement on an input
- Find the max value in a column using Query All Records
Feel free to add suggestions, requests, or questions in the comments!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback