Quickstart

DollarPe provides a comprehensive suite of APIs that enables businesses to offer fiat-to-crypto (onramp) and crypto-to-fiat (offramp) services to their customers. By managing the intricacies of cryptocurrency transactions, KYC compliance, and banking processes, our solution enables you to deliver smooth onramp and offramp experiences while staying focused on your core operations.

Partner Integration Benefits

  • Enable fiat-to-crypto and crypto-to-fiat conversions without the complexity of building blockchain infrastructure
  • Leverage our pre-built KYC verification and banking relationships to meet global compliance requirements
  • Access industry-leading exchange rates and minimal transaction fees to maximize your profitability
  • Deliver fast, reliable conversion options that enhance customer satisfaction and retention

Integration Journey

As a DollarPe partner, your integration journey involves these key steps:

Getting Started

Learn the basics of DollarPe integration, including authentication, environment setup, and initial configuration.

Bitcoin

Stablecoins & Blockchains

Understand our supported cryptocurrencies and blockchain asset, networks for optimal implementation.

Fiat Payment Methods

Explore the available fiat options you can offer to your customers.

KYC Integration

Implement our KYC verification flow to ensure regulatory compliance for your users.

PayIn Integration

Connect to our payin system to enable crypto-to-fiat transfers to wallet addresses.

PayOut Integration

Connect to our payout system to enable crypto-to-fiat transfers to bank accounts.

Webhooks & Notifications

Set up webhooks to receive real-time updates on transaction statuses and important events.

Testing & Sandbox

Learn how to test your integration in our sandbox environment before going live.

Partner Integration Flow

The typical partner integration flow follows these steps:

Key Integration Components

1. API Authentication

Secure your API requests to our platform using our authentication system:

// Example authentication header setup
const crypto = require("crypto");

/**
 * Generates authentication headers for DollarPe API requests.
 * @param {string} apiKey - Your partner API key.
 * @param {string} apiSecret - Your partner API secret.
 * @param {Object} [body={}] - The request body.
 * @returns {Object} - The headers object containing authentication details.
 */
const generateHeaders = (apiKey, apiSecret, body = {}) => {
  // Get current timestamp
  const timestamp = Math.floor(Date.now() / 1000);

  // Sort and stringify the body
  const sortedBody = JSON.stringify(body, Object.keys(body).sort());

  // Create message string
  const message = `${apiKey}|${timestamp}|${sortedBody}`;

  // Generate signature
  const signature = crypto
    .createHmac("sha256", apiSecret)
    .update(message)
    .digest("base64");

  return {
    "Content-Type": "application/json",
    "X-API-KEY": apiKey,
    "X-TIMESTAMP": timestamp.toString(),
    "X-SIGNATURE": signature,
  };
};

2. Customer KYC Integration

Implement our KYC flow to verify your customers' identities:

KYC Implementation Steps (Sharing based)
  1. Initiate a customer profile through the /customer/create endpoint
  2. Submit KYC documents and information using /kyc/add-kyc-data
  3. Monitor verification status via /customer/{customer_id} or webhooks
  4. Handle verification issues if needed using /kyc/update-tax-info or /kyc/update-document-info
  5. Add bank account details once verified using /bank/create

See our KYC Integration Guide for detailed implementation steps.

3. PayIn Service Integration

Connect to our payin system to enable fiat-to-crypto transfers:

PayIn Implementation Steps
  1. Fetch payin configurations using /payin/configuration
  2. Fetch current exchange rates using /payin/fetch-rate
  3. Create a quotation using /payin/quotation
  4. Send fiat amount to the provided bank details
  5. Initiate the payin with transaction details using /payin/initiate
  6. Monitor the payin status using /payin/payin_id or webhooks

See our PayIn Integration Guide for detailed implementation steps.

4. Payout Service Integration

Connect to our payout system to enable crypto-to-fiat transfers:

Payout Implementation Steps
  1. Fetch payout configurations using /payout/configuration
  2. Fetch current exchange rates using /payout/fetch-rate
  3. Create a quotation using /payout/quotation
  4. Initiate the payout with transaction details using /payout/initiate
  5. Monitor the payout status using /payout/payout_id or webhooks

See our Payout Integration Guide for detailed implementation steps.