API Documentation

SyncPay BD API

Add bKash, Nagad, Rocket, and Upay payment verification to any platform via a single REST API. JSON-based, simple authentication, and real-time response.

BASE URL https://api.syncpaybd.site/v1

Overview

The SyncPay BD API is a RESTful HTTP API. All requests and responses are in JSON format. HTTPS is required.

Test in the Sandbox environment first. Get your live API key from the dashboard.

Authentication

Send a Bearer token in the Authorization header with every request.

# Add this header to all requests
Authorization: Bearer pf_live_xxxxxxxxxxxxxxxx
Content-Type: application/json

Create Invoice

Create a new payment invoice. Ask the customer to pay against this invoice.

POST/invoice/create

Request Body

ParameterTypeDescription
amountnumberAmount in BDTrequired
providerstringbKash | Nagad | Rocket | Upayrequired
order_idstringInternal order ID from your systemoptional
expires_innumberExpiry time (seconds), default: 1800optional
POST /v1/invoice/create

{
  "amount":   500,
  "provider": "bKash",
  "order_id": "ORD-2024-001"
}
200 OK
{
  "success":    true,
  "invoice_id": "inv_9xKj2mPq",
  "amount":     500,
  "status":     "pending"
}

Payment Verify

Verify customer payment transaction.

POST/verify

Request Body

ParameterTypeDescription
trx_idstringMFS transaction IDrequired
amountnumberExpected amount in BDTrequired
providerstringbKash | Nagad | Rocket | Upayrequired
POST /v1/verify

{
  "trx_id":   "8J1B2C3K4L",
  "amount":   500,
  "provider": "bKash"
}
200 Verified
{
  "success":  true,
  "verified": true,
  "trx_id":   "8J1B2C3K4L",
  "amount":   500
}