JSPay API Docs

API Docs

Base URL: https://api.jsnet.biz

Create Payment

POST /api/payments/create
X-API-KEY: jsnet_test_xxx
Idempotency-Key: wc_order_1001
Content-Type: application/json

{
  "gateway": "test",
  "amount": 25.50,
  "currency": "AZN",
  "invoice_id": "1001",
  "success_url": "https://shop.example/checkout/order-received/1001",
  "cancel_url": "https://shop.example/cart",
  "callback_url": "https://shop.example/?wc-api=jspay_callback",
  "customer_email": "client@example.com"
}

Status

GET /api/payments/status/{transaction_uuid}
X-API-KEY: jsnet_test_xxx

Merchant Callback

JSPay sends a signed POST request to your callback_url.

X-JSPAY-Signature: hash_hmac('sha256', raw_json_body, merchant_secret_key)
X-JSPAY-Event: payment.paid

{
  "transaction_uuid": "...",
  "invoice_id": "1001",
  "amount": "25.50",
  "currency": "AZN",
  "gateway": "test",
  "status": "paid",
  "paid_at": "2026-05-11T00:00:00Z"
}