OnyxClearing API

Programmable stablecoin-funded card issuing

Surface API: issue บัตร, manage top-up, listen webhook และ reconcile event ledger ผ่าน REST API SDK สำหรับ JavaScript, Python และ Go พร้อม sandbox full

API public OnyxClearing และ SDK live Sandbox และ key production issued หลัง KYC/KYB Sign up สำหรับ access และเราจะ route คุณไปยัง specialist ภายในหนึ่ง business day

Get API access →
Quickstart

Issue บัตรใน 30 วินาที

bash Quickstart
# 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 reference

Core endpoints

REST API พร้อม idempotency keys, scoped API keys และ ledger reconciliation built in

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

Event subscriptions

Signed webhooks พร้อม replay protection (timingSafeEqual) สำหรับทุก state change

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.

Get sandbox access

Sandbox และ production keys issued หลัง KYC/KYB Sign up และ specialist respond ภายในหนึ่ง business day

Get API access →