Create a sub-wallet
Creates a sub-wallet under one of your main wallets, usually one for each of your own customers. Main wallets are created in the dashboard.
wallets:writeHeaders#
Idempotency-Keystringheader8–80 letters, digits, - or _. Lets you retry safely: the same key and body return the first answer and never move money twice. See Idempotency.
Body#
JSON, with Content-Type: application/json.
parent_wallet_idstringrequiredThe main wallet this one sits under.
namestringrequired2–120 characters, such as your customer’s name.
external_refstringYour own id for this customer. Unique in your business, so you can find the wallet later with List wallets.
deposit_fee_bearerstringWho pays the collection fee on payments into this wallet: wallet or customer. Defaults to the main wallet’s setting.
Returns#
The new wallet, with a balance of 0.00.
Errors#
| Status | Code | When |
|---|---|---|
| 409 | DUPLICATE_EXTERNAL_REF | Another wallet already uses this external_ref. |
| 422 | INVALID_PARENT | The parent isn’t a main wallet. |
| 404 | WALLET_NOT_FOUND | The parent doesn’t exist, or the key can’t see it. |
The common codes, such as UNAUTHENTICATED and RATE_LIMITED, can come from any endpoint. See Errors.