Skip to content

Quick Start

Sign in to the FinStack dashboard and generate an API key from Settings → API Keys.

Your key looks like: sk_live_<tenant>_<random32>

Terminal window
curl -X POST https://api.finstack.dev/v1/customers \
-H "Authorization: Bearer sk_live_<your-key>" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane Smith",
"email": "[email protected]",
"idempotency_key": "cust_jane_001"
}'

Response:

{
"id": "01927b3e-...",
"tenant_id": "...",
"name": "Jane Smith",
"email": "[email protected]",
"created_at": "2026-06-01T00:00:00Z"
}
Terminal window
curl -X POST https://api.finstack.dev/v1/payments \
-H "Authorization: Bearer sk_live_<your-key>" \
-H "Content-Type: application/json" \
-d '{
"amount_minor": 1000,
"currency": "USD",
"method": "card",
"customer_id": "01927b3e-...",
"description": "Order #1234",
"idempotency_key": "pay_order_1234"
}'

amount_minor is in the currency’s smallest unit — 1000 = $10.00 USD.

Terminal window
curl -X POST https://api.finstack.dev/v1/payments/{id}/capture \
-H "Authorization: Bearer sk_live_<your-key>"