Accounts for marketplaces
Open a Storspay Account for each of your customers.
Platforms and marketplaces open a Storspay Account for each of their customers (an account holder): a buyer, a seller, a business.
POST /v1/virtual-accountswithholder(typeindividual,businessororganisation, name, email, phone, country) and your ownclientRef: one call opens the account holder and its account details, and returns a hosted verification link. (OrPOST /v1/accountsand fill the application through the API.) The holder startspending.- Send them a hosted verification link (
POST /v1/applications/{id}/verification-linkswith areturnUrl), or fill the application through the API. - When verification is approved, the holder becomes
activeand its Storspay Account (balance and account details) is issued automatically (account.activated,virtual_account.created). - Act on a holder by adding the header
Storspay-Account-Id: acct_…to any call. - Move money between accounts with
POST /v1/transfers(optionallyescrow, thenreleaseorcancel). Paying a seller's Storspay Account is always a transfer;POST /v1/payoutspays a beneficiary's bank or mobile money. A seller cashes out with a transfer whosetois{ payout: { beneficiaryId, quoteId } }.
- The parent account always comes from your token, never from the request body.
- An id that is not yours returns
404. - Show "Powered by Storspay" where your customers see their Storspay Account.
- Every account holder is verified by us. Money calls for a holder that is not verified return
403 ACCOUNT_NOT_VERIFIED. - You can freeze your own holder (
POST /v1/accounts/{id}/freeze,…/unfreeze); a frozen holder gets409 ACCOUNT_FROZEN. Close it withDELETE /v1/accounts/{id}once its balance is zero (else409 BALANCE_NOT_ZERO). - Balances are held in USD and EUR today. A transfer moves money in one currency.
curl -X POST https://api.sandbox.storspay.com/v1/virtual-accounts \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"holder": { "type": "individual", "name": "Test Approved", "email": "buyer@example.com", "phone": "+12025550100", "country": "USA" },
"currency": "USD",
"clientRef": "buyer-001"
}'
"What's still needed" endpoints
| Endpoint | Tells you |
|---|---|
GET /v1/payouts/requirements?country=¤cy=&route= | The exact recipient (and sender) fields for individuals and businesses, with formats and examples |
GET /v1/accounts/{id}/requirements | What a verification still needs: steps, documents, disclosures, open information requests |
GET /v1/applications/{id}/requirements | The same, per application |
GET /v1/virtual-accounts/requirements?currency= | What is needed before dedicated account details can be issued |
Statuses
Account holder: pending → active; frozen, closed. Verification: not_started, in_review, needs_information, approved, rejected.