Payment
Making an authenticated call to the payment endpoint
Get a new blockchain address
Bloqifi allows privacy minded users the ability to generate a new address using the API.
If users prefer to pay with balance, Bloqifi protect your privacy by generating a new address every time funds is received.
Create address
GET
https://api.bloqifi.com/v0/payment/:BLOCKCHAIN
Create a new receiving address
Headers
Content-Type*
String
application/json
Authorization*
String
Bearer ${accessToken}
{
address: address
}
curl -X POST https://api.bloqifi.com/v0/payment/${blockchain} \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${TOKEN}"
Generate payment request
Get payment request for storage / website using bloq ObjectId
from previous step.
Get Payment Request
POST
https://api.bloqifi.com/v0/payment
Get a new payment request
Headers
Content-Type*
String
application/json
Authorization*
String
Bearer ${accessToken}
Request Body
blockchain*
String
Bloqcoin
, Dogecoin
, Bitcoin
, IPFS
ids*
Array
List of ids ['123', '321']
{
message: `${blockchain} waiting for transfer`,
amount: 0.01,
address: 'address'
}
Cancel Order
Cancel the payment, and remove any added bloqs, folders, chunk entries etc.
Cancel order
DELETE
https://api.bloqifi.com/v0/payment
Cancel generated payment request
Headers
Content-Type*
String
application/json
Authorization*
String
Bearer ${accessToken}
Request Body
address*
String
Generated blockchain address
{
message: 'Payment cancelled.'
}
Last updated
Was this helpful?