September v1 API (deprecated)
The first payouts API: still supported, never broken, marked deprecated.
Deprecated, still supported. Responses carry the header Deprecation: true. There is no end date. For new work use the new routes.
- Base URL:
https://app.storspay.com/api/v1/ - Auth:
Authorization: Bearer sk_test_…orsk_live_…. The key is shown once; on rotation the old key keeps working for 24 hours. - Amounts are numbers (
amountUsd); idempotency byreference(unique per platform); errors as{ "error": "…", "message": "…" }. - 100 requests per minute; over the limit
429withRetry-Afterand{ "error": "rate_limited" }. - Only additive changes. It reads and writes the same payouts, recipients and balances as the new routes.
Routes
| # | Route | Request / response | New routes equivalent |
|---|---|---|---|
| 1 | POST /recipients | { name, email, country (ISO-2), currency, bankAccount { bankCode, accountNumber } | mobileMoney { provider, phone } } → 201 { recipientId, status: verified | pending } | POST /v1/beneficiaries |
| 2 | GET /recipients | ?limit=50&cursor → { data, hasMore, nextCursor } | GET /v1/beneficiaries |
| 3 | GET /recipients/:id | 404 recipient_not_found | GET /v1/beneficiaries/{id} |
| 4 | POST /payouts | { recipientId, amountUsd, reference, callbackUrl?, escrow? } → 201 { payoutId, status, amountUsd, fee, exchangeRate, localAmount, currency, estimatedDelivery, holdExpiresAt? } | POST /v1/payouts with quoteId and clientRef; escrow for sellers with POST /v1/transfers |
| 5 | GET /payouts/:id | the payout | GET /v1/payouts/{id} |
| 6 | GET /payouts | filters status, from, to, recipientId → { data, hasMore, nextCursor, totals { amountUsd, fees } } | GET /v1/payouts |
| 7 | POST /payouts/:id/release | only when held, else 409 not_held + currentStatus | POST /v1/transfers/{id}/release |
| 8 | POST /payouts/:id/cancel | only when held; refunds amount and fee; status refunded | POST /v1/transfers/{id}/cancel; POST /v1/payouts/{id}/cancel before sending |
| 9 | GET /balance | { available, pending, currency } | GET /v1/balances |
| 10 | GET /earnings | { totalEarnings, pendingPayout, lastPayoutAt } | GET /v1/platform-fees/earnings |
| 11 | GET /corridors | code, country, currency, rate, fee % after discount, limits { min, max }, channels | GET /v1/payouts/requirements and GET /v1/accounts/me |
| 12 | GET /rates/:corridor | { corridor, currency, rate, asOf } (indicative) | POST /v1/quotes |
A 13th route is still to be confirmed and is not listed here.
Statuses
Normal: created (funds reserved) → processing → completed, or failed (amount and fee returned). Escrow: held (holdExpiresAt = 14 days) → released → processing → completed, or held → refunded (cancelled_by_platform or escrow_timeout_14d). Escrow without escrow enabled for your account → 403 escrow_not_enabled.
How these map to the new names: Payout statuses.
Webhooks
Sent to the endpoint we set for you, or to a per-payout callbackUrl. Events: payout.created, payout.processing, payout.completed, payout.failed, payout.refunded, payout.held, payout.released. Payload: event, payoutId, reference, status, amountUsd, localAmount, currency, recipient { recipientId, name }, timestamp. Header Storspay-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, t + "." + rawBody)>, the same as the new routes. Retries at 30 s, 2 min and 10 min after a non-2xx answer or a 10 s timeout. See Webhooks.