Also routstr is open source and uses cashu in the API request
Discussion
Maybe Cashu is the way to go then, like routstr does. But I was sure there was some kind of protocol called 402 something, like Coinbases new x402 protocol for stablecoin payments over HTTP (only I want for BTC, not the shitcoins).