# Simple Forwarding
This function generates a unique address to which the customer may send payments. This address is infinite without transactions limits.
You can generate crypto addresses for one-time payments or for periodic payments to an address (addresses) associated with certain user(s). For example, if a customer re-uses it to buy the same product again or to charge up the account balance with cryptocurrency.
Generated addresses never expire. They will be permanently monitored.
Please note that micropayments are not efficient in the network because of a possible high network fee.
HTTP and HTTPS protocol schemas in URL are required.
# Request
- HTTP Method:
GET
- URL:
https://apirone.com/api/v1/receive?method=create&address={address}&callback={callback}¤cy={currency}
Parameter | Type | Description | Required |
---|---|---|---|
address | string | Destination cryptocurrency address where confirmed payments will be forwarded to | ✓ |
currency | string | Currency type | |
method | string | Method create generates a new deposit address | |
callback | object | Callback is an object of a callback URL, more information here. Important Always should be the last query parameter | ✓ |
# Request example
curl 'https://apirone.com/api/v1/receive?method=create&address=bc1qggg2ys8duv4qvnfgzng2p75m6ehklcmfygr9m4¤cy=btc&callback=https://example.com/callback'
# Success Response Reference
- HTTP Status Code:
200
- Content Type:
application/json
Parameter | Type | Description |
---|---|---|
destination | string | Merchant's destination (crypto address) where confirmed payments will be forwarded to |
input_address | string | The generated crypto address to receive a payment from a customer |
callback_url | string | Server callback URL to receive data about the payment |
# Response example
{
"destination": "bc1qggg2ys8duv4qvnfgzng2p75m6ehklcmfygr9m4",
"input_address": "1FEGJSLDJJ6oSuJwur3fCD7TtQbYUjBV4z",
"callback_url": "http://example.com/callback?"
}
# Error response
- HTTP Status Code:
400
500
- Content Type:
application/json