Developer API

API Documentation

A clean documentation page for your payment integration. Replace these demo examples with your production API endpoints.

Create Payment

POST /api/v1/payments
Authorization: Bearer YOUR_API_KEY
Idempotency-Key: ORDER-10001

{
  "amount": 1000,
  "currency": "BDT",
  "order_id": "ORDER-10001",
  "callback_url": "https://merchant.example/callback"
}

Webhook

Use signed webhooks and verify the signature before updating your merchant order. Payment states should be treated as a state machine, not as a simple boolean.