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}"const rawResponse = await fetch(`https://api.bloqifi.com/v0/payment/${blockchain}`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${token}`
}
});
const json = await rawResponse.json();
if (rawResponse.status === 200) {
return json.address;
}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']
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
Last updated
Was this helpful?