Haven't you heard?
Get basic payment processing features with no long sign up and no fees.
http POST https://your.domain/businesses name='Max Energy' strike_user_handle='maxdignan' --json
You'll get back your business_secret
. Keep this secret.
http POST https://your.domain/customers business_secret='YOUR_BUSINESS_SECRET_HERE' name='Max Energy Buyer' --json
- You'll get back your customer's secret. This isn't as secret, but keep it between just you and your customer.
- You'll also get back the customer's id. Keep this around so you can send them an invoice. These simply auto-increment, but invoice creation only works when it's YOUR customer.
http POST https://your.domain/invoices business_secret='YOUR_BUSINESS_SECRET_HERE' description='Pay your first invoice pls' amount=9.10 currency='USD' customer_id=THE_ID_RETURNED_FOR_THAT_CUSTOMER --json
- You'll get back a uuid. This is the invoiceId from Strike. Keep this handy.
http POST https://your.domain/invoice-quote business_secret='YOUR_BUSINESS_SECRET_HERE' uuid='UUID_OR_INVOICE_ID_OF_INVOICE_OF_INTEREST' --json
- You'll get back the lnInvoice and onchain address info, if applicable. You'll also get the expiration info for the quote.
(as a business)
http GET https://your.domain/invoices business_secret='YOUR_BUSINESS_SECRET_HERE'
(as a customer)
http GET https://your.domain/invoices customer_secret='YOUR_CUSTOMER_SECRET_HERE'
Use the uuid of an invoice to get more info about it. Works the same as above. Send the business or the customer secret.
http GET https://your.domain/invoices/i uuid='dc186f4e-0958-431e-aea0-e3b3cf2b714e' business_secret='c920ed94-014b-406e-a498-d67ca80d5e34'
Checkout the source code to find more goodies!