OnyxClearing API

プログラム可能なステーブルコイン資金供給カード発行

API画面:カード発行、チャージ管理、webhook監視、REST APIによる台帳イベント照合。JavaScript、Python、Go向けSDK、フルサンドボックス。

OnyxClearing公開APIとSDKは稼働中。サンドボックスと本番キーはKYC/KYB後に発行。アクセスに登録し、1営業日以内に専門家にご案内します。

APIアクセスを取得 →
クイックスタート

30秒でカード発行

bash クイックスタート
# Install the SDK
npm install @thiskard/sdk

# Authenticate
export THISKARD_API_KEY="sk_live_..."

# Issue your first card
thiskard cards:create --product vault-spend --type virtual --label "Meta campaign"
API参照

コアエンドポイント

REST APIに冪等キー、スコープAPIキー、台帳照合を組み込み。

POST /v1/cards

Issue a card

Create a virtual or physical card funded from a stablecoin balance. Idempotent via Idempotency-Key header.

bash 例
curl -X POST https://api.thiskard.com/v1/cards \
-H "Authorization: Bearer $API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"product":"ads","type":"virtual","label":"Meta campaign A"}'
POST /v1/topups

Top up a card

Fund a card from digital currency. Quote locks for 30s; settlement confirms on-chain.

bash 例
curl -X POST https://api.thiskard.com/v1/topups \
-H "Authorization: Bearer $API_KEY" \
-d '{"card_id":"card_abc","amount":500,"currency":"USDT"}'
GET /v1/cards/:id

Retrieve a card

Get card status, balance, limits, and recent transactions. PAN/CVV are never returned — use the reveal widget.

bash 例
curl https://api.thiskard.com/v1/cards/card_abc \
-H "Authorization: Bearer $API_KEY"
Webhooks

イベントサブスクリプション

全状態変更に署名付きwebhookとリプレイ保護 (timingSafeEqual)。

card.issued Fired when a card is created and ready for funding.
topup.settled Fired when on-chain settlement confirms and the balance credits.
authorization.result Fired on every card authorization attempt (approved/declined) with BIN + decline-reason.
kyc.completed Fired when Sumsub returns a KYC/KYB decision.

サンドボックスアクセスを取得

サンドボックスと本番キーはKYC/KYB後に発行。登録後1営業日以内に専門家が対応。

APIアクセスを取得 →