Automatic ISBN/Barcode allocation

We publish books and produce other physical products for retail and are required to provide barcodes and ISBN book codes for them. I have a list of purchased, available, codes in another board and would love an automation/integration where an item on our product database (depending on its type) is automatically assigned one of those codes, and recognises it can’t use that code again!

They’re all unique, and can’t be duplicated else we run into trouble when the product gets scanned at warehouses and stores. Plus, you have to purchase barcodes and ISBNS - you can’t just make them up, which means we have to be super careful about which ones we use.