Developer Documentation

Integrate paybee's crypto payment infrastructure into your application. RESTful API with comprehensive SDKs.

๐Ÿš€ Quick Start

// 1. Get your API key from the dashboard
// 2. Set the base URL
const BASE_URL = "https://api.paybee.network/v1";
// 3. Make your first API call
const res = await fetch(BASE_URL + "/status");

๐Ÿ”‘ Authentication

All API requests require your API key in the request header:

x-api-key: pb_your_api_key_here

API Endpoints

MethodEndpointDescriptionAuth
GET/v1/statusCheck API and service health statusPublic
GET/v1/currenciesGet list of all supported cryptocurrencies๐Ÿ”‘ Key
GET/v1/estimateGet estimated price for a currency pair๐Ÿ”‘ Key
GET/v1/min-amountGet minimum payment amount for a currency pair๐Ÿ”‘ Key
POST/v1/paymentCreate a new payment transaction๐Ÿ”‘ Key
GET/v1/payment/{id}Get payment status and details๐Ÿ”‘ Key
POST/v1/invoiceCreate a payment invoice with hosted checkout๐Ÿ”‘ Key
POST/v1/payoutSend a cryptocurrency payout๐Ÿ”‘ Key
GET/v1/balanceGet custody wallet balances๐Ÿ”‘ Key

Create Payment โ€” Example

REQUEST
POST /v1/payment
x-api-key: pb_xxx
Content-Type: application/json

{
ย ย "price_amount": 100.00,
ย ย "price_currency": "usd",
ย ย "pay_currency": "btc",
ย ย "order_id": "ORD-1234"
}
RESPONSE
201 Created

{
ย ย "payment_id": "pay_abc123",
ย ย "payment_status": "waiting",
ย ย "pay_address": "bc1q...",
ย ย "pay_amount": 0.00154,
ย ย "price_amount": 100.00,
ย ย "price_currency": "usd"
}

Webhooks (IPN)

Configure your IPN callback URL in the dashboard to receive real-time payment status updates. All webhook payloads are signed with HMAC-SHA512 using your IPN secret key.

Verify the signature by comparing the x-paybee-sig header against the HMAC-SHA512 hash of the sorted JSON payload using your IPN secret key.

๐Ÿงช Sandbox Environment

Test your integration without real funds using our sandbox environment.

https://api-sandbox.paybee.network/v1