---
title: "Accounts for marketplaces"
description: "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.

1. `POST /v1/virtual-accounts` with `holder` (`type` `individual`, `business` or `organisation`, name, email, phone, country) and your own `clientRef`: one call opens the account holder and its account details, and returns a hosted verification link. (Or `POST /v1/accounts` and fill the application through the API.) The holder starts `pending`.
2. Send them a hosted verification link (`POST /v1/applications/{id}/verification-links` with a `returnUrl`), or fill the application through the API.
3. When verification is approved, the holder becomes `active` and its Storspay Account (balance and account details) is issued automatically (`account.activated`, `virtual_account.created`).
4. Act on a holder by adding the header `Storspay-Account-Id: acct_…` to any call.
5. Move money between accounts with `POST /v1/transfers` (optionally `escrow`, then `release` or `cancel`). Paying a seller's Storspay Account is always a transfer; `POST /v1/payouts` pays a beneficiary's bank or mobile money. A seller cashes out with a transfer whose `to` is `{ 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 gets `409 ACCOUNT_FROZEN`. Close it with `DELETE /v1/accounts/{id}` once its balance is zero (else `409 BALANCE_NOT_ZERO`).
- Balances are held in USD and EUR today. A transfer moves money in one currency.

```bash
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=&currency=&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`.
