Skip to main content
POST

Authorizations

Authorization
string
header
required

API key sent in the Authorization header, with no Bearer prefix.

Headers

Idempotency-Key
string

A key you generate once per account you register, such as a UUID. A retry with the same key and the same body returns the first account with 200. 1 to 255 printable ASCII characters, with no spaces. See Idempotency.

Required string length: 1 - 255
Pattern: ^[\x21-\x7E]+$

Path Parameters

organizationId
string<uuid>
required

The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns 404 not-found.

Body

application/json
accountDetails
object
required

The identifier that names the account: a kind, plus the fields that kind takes. Send exactly those fields. A missing field, or one the kind doesn't take, returns 400 validation-error with a pointer for each field. Read a kind's fields from Get registration requirements. Payment accounts shows the kinds we support today.

Example:
kind
enum<string>
required

The kind of account. embeddedWallet is a wallet we create on a chain; see Embedded wallets. debitCard and cash return 422 unsupported.

Available options:
bank,
wallet,
debitCard,
cash,
embeddedWallet
label
string
required

Your organization's name for the account. Must not be blank. We trim it. A label that contains <, >, ;, {, }, a backtick, |, \, $(, ../ or a control character returns 400.

Example:

"Operating account"

country
string

Two-letter country code of the account's market. Send with currency for a bank account. Omit for a wallet.

Example:

"MX"

currency
string

Three-letter currency code of the account's market. Send with country for a bank account. Omit for a wallet.

Example:

"MXN"

registrationInfo
object

Information about the account holder, as field names and string values. The fields a route needs depend on the route and on the organization's account type. Read them from Get registration requirements: send the fields its registrationInfo.missing lists. Payment accounts shows the fields we use today. Wallets need none.

Response

The organization already holds this account, or you sent an Idempotency-Key with the same body as an earlier request. Returns the account. A rejected direction is registered again and returns as pending.

createdAt
string<date-time>
required
id
string<uuid>
required
kind
enum<string>
required

We set this to the kind you sent when you created the account.

Available options:
bank,
wallet,
debitCard,
cash,
embeddedWallet
label
string
required

Your organization's name for the account.

rails
object
required

The rails this account can move money on, keyed by rail name (a PaymentRail value such as spei or stellar). A rail the account cannot move money on is absent. The account identifier you registered is not returned.

status
enum<string>
required

The account as a whole. ready when any rail direction is ready. rejected when every rail direction is rejected; register the account again with corrected registrationInfo to retry. disabled when we turned the account off; it cannot be registered or quoted. Otherwise pending. Readiness per rail and direction is in rails.

Available options:
pending,
ready,
disabled,
rejected