You can generate addresses for one-time payments or for periodic payments as a linked address to a user account. For example, if a customer re-uses it to buy the same product again or to top up the account balance with bitcoins.
Use POST string request containing the object in JSON format.
Bitcoin address type.
"p2pkh" - It’s the most common script used for locking an output to someone’s public key.
"p2wpkh" - Segwit address has prefix bc1. "p2sh-p2wpkh" - Segwit comparable address has prefix 3. Apirone generates "p2sh-p2wpkh" addresses by default.
Callback is an array of callback URL and user's Data parameters.
=< 1024 chars
Your server's callback URL to receive data about the payment. This must be a valid URL.
The associative array is based on key-value pairs. You can use as additional identification or secure a generated bitcoin address.
For example 'secret' = '7j0ap91o99cxj8k9' or 'invoice_id'='1234'
Success Response Reference:
HTTP Status Code: 200
Content Type: JSON
Success response returns next parameters in JSON format:
The generated bitcoin address to receive a payment from a customer.
string, 32 chars
Your server callback URL to receive data about the payment.