cURL examples
Create checkout
curl -X POST https://api.inzilink.com/api/v1/checkouts \
-H "Authorization: Bearer sk_live_xxxxx" \
-H "Content-Type: application/json" \
-d '{
"amount": "25.00",
"currency": "USD",
"description": "Order #12345",
"metadata": { "order_id": "ORD-123" },
"redirect_url": "https://yoursite.com/success",
"webhook_url": "https://yoursite.com/webhooks/inzi",
"expires_in": 1800
}'Get checkout
curl https://api.inzilink.com/api/v1/checkouts/chk_live_abc123def456 \
-H "Authorization: Bearer sk_live_xxxxx"List checkouts
curl "https://api.inzilink.com/api/v1/checkouts?status=completed&limit=20&offset=0" \
-H "Authorization: Bearer sk_live_xxxxx"List checkouts with date filter
curl "https://api.inzilink.com/api/v1/checkouts?created_after=2026-04-01T00:00:00Z&limit=50" \
-H "Authorization: Bearer sk_live_xxxxx"Create payment link
curl -X POST https://api.inzilink.com/api/v1/links \
-H "Authorization: Bearer sk_live_xxxxx" \
-H "Content-Type: application/json" \
-d '{
"title": "Pro Plan — Monthly",
"amount": "29.00",
"currency": "USD",
"type": "subscription",
"metadata": { "plan": "pro" }
}'Verify webhook signature (bash)
#!/bin/bash
WEBHOOK_SECRET="your_secret"
TIMESTAMP="1712145901"
BODY='{"event":"checkout.completed","checkout_id":"chk_live_abc123"}'
SIGNED_PAYLOAD="${TIMESTAMP}.${BODY}"
EXPECTED=$(echo -n "$SIGNED_PAYLOAD" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" | awk '{print $2}')
echo "Expected signature: sha256=$EXPECTED"