Create a wallet

Opens a wallet from a preset. Create one per pool of money you
account for separately, such as a waterfall. The response carries the
wallet's paymentReference and funding instructions, ready to hand to
payers. When the preset gives wallets their own account numbers
(fundingAccount: DEDICATED), the new wallet's number is in those
instructions and is the wallet's for good.

Wallets are created from presets only; a request that carries a
policy is refused.

StatuscodeWhen
400missing_fieldpreset or label is missing.
400unsupported_currencycurrency is not USD.
400invalid_fieldA field is the wrong type or too long, or metadata breaks its limits.
400invalid_bodyThe body is not a JSON object.
400invalid_idempotency_keyThe Idempotency-Key is longer than 255 characters, is not printable ASCII, or was sent twice.
403policy_composition_not_permittedThe request carries a policy.
409external_id_already_existsYou already have a wallet, or another object, with this externalId. Nothing is created.
409idempotency_key_in_useA request with this Idempotency-Key is still running. Send it again after Retry-After seconds.
422preset_not_availableThe preset is not in your catalogue.
422idempotency_key_reusedThis Idempotency-Key was already used for a different request. Use a new key.
503virtual_account_unavailableThe preset gives wallets their own account numbers and none is free right now. Nothing is created; PayKeeper is alerted. Try again later.
503upstream_busyPayKeeper's banking provider asked it to slow down. Send it again after Retry-After seconds, with the same Idempotency-Key.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length ≤ 60

A preset name from GET /wallet-presets.

string
required
length between 1 and 200

The wallet's name, shown wherever the wallet appears.

string
length ≤ 2000

Defaults to the label.

string
length ≤ 200

Your id for the wallet, unique within your organization.

metadata
object

Your own string tags, returned as you sent them. At most 20 keys; keys up to 40 characters; values up to 500.

string
enum

Optional; USD is the only currency in this version.

Allowed:
Headers
string
length between 1 and 255

Optional here, and just as safe to send: a key you generate for this request (a UUID is best) and send again only to retry it, with the same body. Up to 255 printable ASCII characters. See Retries in the introduction.

Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json