Bloqifi RESTful API documentation
  • The Next Generation Web³
  • Quick Start
  • Blog
  • Reference
    • API Reference
      • Authentication
      • Bloq
      • Payment
      • Transaction
      • Rates
    • Retrieval
      • Transaction ID
      • Web
      • Blob
      • Chunk
  • Stripe Metered Billing
    • API Reference
      • Subscribe
      • Check Usage
Powered by GitBook
On this page
  • Get a new blockchain address
  • Create address
  • Generate payment request
  • Get Payment Request
  • Cancel Order
  • Cancel order

Was this helpful?

  1. Reference
  2. API Reference

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

Name
Type
Description

Content-Type*

String

application/json

Authorization*

String

Bearer ${accessToken}

{
    address: address
}
{
    message: `Payment with ${blockchain} unavailable at the moment..`
}
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;
}

Good to know: Note that all old used addresses are discarded by Bloqifi.

Do not send funds to any old address generated by Bloqifi.

Generate payment request

Get Payment Request

POST https://api.bloqifi.com/v0/payment

Get a new payment request

Headers

Name
Type
Description

Content-Type*

String

application/json

Authorization*

String

Bearer ${accessToken}

Request Body

Name
Type
Description

blockchain*

String

Bloqcoin, Dogecoin, Bitcoin, IPFS

ids*

Array

List of ids ['123', '321']

{
	message: `${blockchain} waiting for transfer`,
	amount: 0.01,
	address: 'address'
}
{
	message: `Payment with ${blockchain} unavailable at the moment.`
}

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

Name
Type
Description

Content-Type*

String

application/json

Authorization*

String

Bearer ${accessToken}

Request Body

Name
Type
Description

address*

String

Generated blockchain address

{
	message: 'Payment cancelled.'
}

Good to know: This endpoint only affects bloq's with a status of 402 Payment Required

PreviousBloqNextTransaction

Last updated 2 years ago

Was this helpful?

Get payment request for storage / website using bloq ObjectId from .

previous step