Merchant API

HMAC-SHA256 signatures, webhook callbacks and sandbox authorisations for your own systems.

Quick start

  1. Create API credentials in the member console. The secret is shown once — store it immediately.
  2. Sign the timestamp, method, path and raw body with HMAC-SHA256 using that secret.
  3. Send X-Api-Key, X-Timestamp and X-Signature on every request.
  4. Set an HTTPS webhook URL in the console to receive issuing, top-up, spend and cancellation events.

Request signing

Sign every request with HMAC-SHA256 over timestamp, method, path and raw body, sent as X-Api-Key, X-Timestamp and X-Signature headers.

curl -s "https://www.bigcoinpay.com/open/v1/cards" \
  -X POST \
  -H "X-Api-Key: nvk_xxx" \
  -H "X-Timestamp: 1761696000" \
  -H "X-Signature: 9f2c..." \
  -H "Content-Type: application/json" \
  -d '{"bin_id": 1, "quantity": 2, "nickname": "Ads card"}'

Endpoints

MethodPath說明
GET/open/v1/me查詢帳戶資料與餘額
GET/open/v1/bins列出可用卡段
GET/open/v1/cards列出卡片(page、page_size)
POST/open/v1/cards開卡(bin_id、quantity、holder_email)
GET/open/v1/cards/{id}卡片詳情;完整卡號需額外權限
POST/open/v1/cards/{id}/recharge以帳戶餘額為卡片充值
DELETE/open/v1/cards/{id}註銷卡片
PUT/open/v1/cards/{id}/suspend凍結卡片
PUT/open/v1/cards/{id}/resume解凍卡片
POST/open/v1/cards/{id}/cash-out減少卡內餘額並退回帳戶(免手續費)
POST/open/v1/cards/{id}/authorize沙盒授權測試
GET/open/v1/consumptions消費記錄
GET/open/v1/orders/{order_no}訂單狀態查詢

Webhooks

Callbacks include X-Webhook-Timestamp, X-Webhook-Id and X-Webhook-Signature. Verify HMAC-SHA256 with your API secret over timestamp + "." + event ID + "." + the raw request body, then deduplicate by event ID.

Open account