Connect your Stellar wallet and register your business.
curl -X POST http://localhost:3001/merchants/register \
-H "Content-Type: application/json" \
-d '{
"walletAddress": "GABC...1234",
"businessName": "Acme Corp",
"email": "merchant@example.com"
}'Sign a challenge with your wallet to get a JWT token. OrbitStream uses SEP-10 for wallet-based authentication — the login endpoint returns a challenge transaction that you sign with your Stellar wallet.
curl -X POST http://localhost:3001/auth/login \
-H "Content-Type: application/json" \
-d '{"walletAddress": "GABC...1234"}'curl -X POST http://localhost:3001/merchants/me/api-keys \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"environment": "testnet"}'Save the key immediately — it's only shown once.
curl -X PATCH http://localhost:3001/merchants/me/webhook \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"webhookUrl": "https://your-server.com/webhooks"}'Save the webhookSecret — use it to verify webhook signatures.
curl -X POST http://localhost:3001/v1/checkout/sessions \
-H "Authorization: Bearer sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"amount": 25.00,
"asset": "USDC",
"successUrl": "https://example.com/success",
"cancelUrl": "https://example.com/cancel"
}'Response includes a url — redirect your customer there.
| Prefix | Environment | Use |
|---|---|---|
sk_test_ |
Testnet | Development and testing |
sk_live_ |
Mainnet | Production |
Merchants can withdraw their USDC balance to local fiat currency via Stellar anchors.
curl -X PATCH http://localhost:3001/merchants/me/anchor \
-H "Authorization: Bearer <JWT>" \
-H "Content-Type: application/json" \
-d '{
"anchorDomain": "anchor.example.com"
}'OrbitStream fetches the anchor's TOML file, validates SEP compliance, and initiates SEP-24 deposit/withdrawal flows.
Once an anchor is connected, merchants can request fiat withdrawal through the dashboard or API. The anchor handles KYC (SEP-12) and processes the fiat transfer to the merchant's bank account.
Supported settlement currencies depend on the connected anchor. Common anchors support USD, EUR, ARS, BRL, NGN, and others.
See Stellar Features for details on SEP protocol integration.