Coinos is free and open source software. You can run it on your own server and connect it to your own Bitcoin and Lightning nodes. The code is available for download at https://github.com/coinos
Coinos has a simple REST API that can be used to register accounts and make payments and queries. The following examples show how you can call the API with curl from your command line.
{#if user && token} This token authorizes you to use the API as {user.username}. {:else} Sign in to view your auth token here, or get one from the /login endpoint. {/if} Save it in a variable called $token to run the examples.
Register a new user account with a username and password
Login to an account to get its auth token
Create an invoice.
Get a lightning invoice to receive funds
Get a bitcoin address to receive funds
Sample response
You can check the received field to see how much has been paid
Specify a webhook to be called when an invoice is paid
Fetch an invoice by passing a bitcoin address or lightning payment hash
Send a lightning payment
Send an internal payment to another user
Send a bitcoin payment
Get all payments sent or received by the current user