Quickstart
Get up and running with Soledgic in under 5 minutes.
1
Create an Account
Sign up for a Soledgic account. You'll get a test API key immediately—no credit card required.
Create Account2
Get Your API Keys
After creating your account, find your API keys in the Settings → API Keys section. You'll have two keys:
sk_test_*— Test mode key (sandbox data)sk_live_*— Live mode key (real transactions)
Tip: Start with your test key. All test data is isolated and won't affect your live environment.
3
Record Your First Sale
Make your first API call to record a sale. This creates the necessary accounts and entries automatically.
curl -X POST https://api.soledgic.com/v1/record-sale \
-H "x-api-key: sk_test_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reference_id": "order_123",
"creator_id": "creator_456",
"amount": 2999,
"description": "Digital product sale"
}'Response:
{
"success": true,
"transaction_id": "txn_abc123",
"breakdown": {
"total": 29.99,
"creator_amount": 23.99,
"platform_amount": 6.00
}
}4
Check Creator Balance
After recording sales, check a creator's balance to see their earnings:
curl -X GET "https://api.soledgic.com/v1/get-balance?creator_id=creator_456" \ -H "x-api-key: sk_test_YOUR_API_KEY"
Response:
{
"success": true,
"balance": {
"creator_id": "creator_456",
"available": 23.99,
"pending": 0,
"total_earned": 23.99,
"total_paid_out": 0,
"currency": "USD"
}
}5
Process a Payout
When a creator is ready to be paid, initiate a payout:
curl -X POST https://api.soledgic.com/v1/process-payout \
-H "x-api-key: sk_test_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"creator_id": "creator_456",
"payment_method": "stripe"
}'This creates a payout record and, if you've connected Stripe, initiates the actual transfer.