The PayPerQ API allows users to programmatically create deposit invoices and top up their account balances using various payment methods including Bitcoin (Lightning), Bitcoin (on-chain), Monero, Litecoin, and Liquid Bitcoin.
https://api.ppq.ai
Create a topup invoice for the specified payment method.
Methods: btc-lightning, btc, ltc, lbtc, xmr
curl -X POST https://api.ppq.ai/topup/create/btc-lightning \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 1000, "currency": "SATS"}' # Also supports "BTC" and "USD" as currency
Check the status of a topup invoice.
curl -X GET https://api.ppq.ai/topup/status/BTCPayInvoiceId123 \
-H "Authorization: Bearer YOUR_API_KEY"
Get a list of all supported payment methods with their limits and supported currencies.
curl -X GET https://api.ppq.ai/topup/payment-methods
Create a new account, which returns a new credit_id and an api_key.
curl -X POST https://api.ppq.ai/accounts/create
Get the current credit balance for your account.
curl -X POST "https://api.ppq.ai/credits/balance" \
-H "Content-Type: application/json" \
-d '{"credit_id":"4af59b9d-f6ec-4531-82f7-ce776d49e207"}'
curl -X POST https://api.ppq.ai/topup/create/btc \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 0.001, "currency": "BTC"}'
curl -X POST https://api.ppq.ai/topup/create/xmr \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 50.00, "currency": "USD"}'
For API questions, please use the chat widget in the bottom right of the page.