Merchant API
HMAC-SHA256 signatures, webhook callbacks and sandbox authorisations for your own systems.
Quick start
- Create API credentials in the member console. The secret is shown once — store it immediately.
- Sign the timestamp, method, path and raw body with HMAC-SHA256 using that secret.
- Send X-Api-Key, X-Timestamp and X-Signature on every request.
- 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
| Method | Path | 說明 |
|---|---|---|
| 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.