Storspay Docs
Support

Authentication

API keys, access tokens and scopes.

API keys work for the new routes and for the September v1 API. Sandbox keys come with the Enterprise plan.

New routes: OAuth 2.0 client credentials

  1. Create an API key in Developers → API keys. You get a client ID and a client secret. The secret is shown once; download or copy it then. We store only a hash and the last 4 characters.
  2. Exchange it for an access token:
curl -X POST https://api.sandbox.storspay.com/v1/oauth/token \
  -u "$STORSPAY_CLIENT_ID:$STORSPAY_CLIENT_SECRET" \
  -d grant_type=client_credentials
{ "accessToken": "eyJ…", "tokenType": "Bearer", "expiresIn": 86400, "scope": "create:payouts read:payouts" }
  1. Send Authorization: Bearer <accessToken> on every call. Tokens last 24 hours; get a new one before it expires.
EnvironmentClient IDClient secret
Sandboxspc_test_…sp_test_…
Livespc_live_…sp_live_…

Never put a secret in a browser, a mobile app or a repository. Call the API from your server only.

Scopes

A key carries only the scopes it was created with; a call outside them returns 403 INSUFFICIENT_SCOPE.

ScopeAllows
read:accounts / update:accountsworkspace, account holders, Storspay Accounts (account details)
manage:applicationsverification applications, persons, documents, verification links, information requests
read:ledgerbalances, closing balances, transactions, statements
create:quotesquotes (moves no money)
create:payouts / read:payoutspayouts, batches, cancel
create:transfers / read:transferstransfers between Storspay accounts, escrow release and cancel, cash-outs
create:conversionsconversions
read:collections / create:collectionsdeposits, collections (get paid)
manage:beneficiaries / read:beneficiariesrecipients, bank lists, requirements
manage:platform_feesplatform fee rules and earnings
manage:webhookswebhook endpoints, deliveries, events

September v1 API: sk_ keys (deprecated)

The September v1 API at https://app.storspay.com/api/v1/ uses bearer keys:

curl https://app.storspay.com/api/v1/balance \
  -H "Authorization: Bearer $STORSPAY_SK_KEY"

See September v1 API.