Getting Started

Swiftz API Reference

Getting Started

Swiftz provides a simple REST API for accepting cryptocurrency payments. Integrate in minutes.

Prerequisites

  • A Swiftz account
  • API keys from the API Keys section
  • Basic knowledge of REST APIs

Quick Start

  1. 1Get your API key from the API Keys page
  2. 2Make your first API call to create a checkout
  3. 3Redirect your customer to the checkout URL
  4. 4Receive webhook notifications when payment is confirmed

Installation

No SDK required. Swiftz uses standard HTTP requests that work with any language.

Create a Checkout

bash
curl -X POST https://api.Swiftz.app/v1/checkout \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount": AMOUNT, "currency": "CURRENCY", "webhook_url": "https://yoursite.com/webhook"}'

Response

json
{
  "id": "chk_7x9k2m",
  "checkout_url": "https://Swiftz.app/pay/chk_7x9k2m",
  "amount": AMOUNT,
  "currency": "CURRENCY",
  "status": "pending",
  "created_at": "2024-01-15T10:30:00Z"}