Receiving payments in Bitcoin for RESTful API calls


I'm familiar with different options to receive payments in Bitcoin (, BitPay, Coinbase, Stripe). But how would one devise a solution to have users pay whenever they call some RESTful API endpoints? First thing that came up my mind is the following:

  1. Have user send some initial amount in Bitcoin when they register for API usage on website via solutions mentioned above integrated on website.
  2. Then just deduct from their state of Bitcoin for each API call they make.

But is maybe there a solution/standard, where someone wouldn't have to make an account to first transfer Bitcoin and could somehow specify in API call how many Bitcoins to transfer? When I think about it logically, this doesn't seem to be possible as you can't couple together a transfer request with API call, I mean how would you even authorize payment from your personal wallet to the specified address and how much to transfer?

Jernej Jerin

Posted 2017-11-18T22:49:01.193

Reputation: 113

Note that since this question was asked, Stripe has discontinued Bitcoin payments.

– Gascoyne – 2019-12-03T02:19:05.527



There is one:

Disclaimer: coded by me.

Igor Korsakov

Posted 2017-11-18T22:49:01.193

Reputation: 113