Skip to main content
POST

Authorizations

api-key
string
header
required

Headers

Idempotency-Key
string

Unique key (UUID recommended) that makes a create request safe to retry by replaying the original response; retained 24h per partner.

Maximum string length: 255
Melio-Sonar-Token
string

Signed MelioSonar session token from the initiating device, used for risk evaluation; invalid or expired tokens return 403.

Melio-Entity-Id
string
required

Entity the request operates on — an entity id (ent_<uuid>) or me (the partner's sole entity).

Body

application/json

Create an account. ownershipType selects internal (an internal account the entity pays from) or external (an external account the entity pays to); type selects the instrument. Supported combinations: internal ach, internal card, external ach, external check, external domestic-wire, external virtual-card.

ownershipType
enum<string>
required
Available options:
internal
type
enum<string>
required
Available options:
ach
bankAccount
object
required

The account and routing numbers. Available to selected partners; otherwise add the account through the Plaid link flow. When accepted, the account is created in a verified state.

externalId
string

Your own unique identifier for the resource. Unique per partner per resource type (reusing one returns 409 DUPLICATE_EXTERNAL_ID). Distinct from the Idempotency-Key header, which dedupes the request rather than identifying the resource.

Maximum string length: 255
Pattern: ^[A-Za-z0-9_-]+$
metadata
object

Free-form string key/value pairs stored and returned verbatim, never interpreted by Melio. Up to 50 keys; each key 1 to 40 chars and may not contain square brackets ([ ], reserved for the metadata[key] filter); value ≤100 chars. Filterable via metadata[key].

nickname
string

Response

Account created.

id
string

Opaque account id (acct_)

externalId
string

Your own unique identifier for the resource. Unique per partner per resource type (reusing one returns 409 DUPLICATE_EXTERNAL_ID). Distinct from the Idempotency-Key header, which dedupes the request rather than identifying the resource.

Maximum string length: 255
Pattern: ^[A-Za-z0-9_-]+$
metadata
object

Free-form string key/value pairs stored and returned verbatim, never interpreted by Melio. Up to 50 keys; each key 1 to 40 chars and may not contain square brackets ([ ], reserved for the metadata[key] filter); value ≤100 chars. Filterable via metadata[key].

ownershipType
enum<string>
Available options:
internal,
external
type
enum<string>

Plaid-backed internal accounts are returned as ach.

Available options:
ach,
check,
card,
domestic-wire,
virtual-card
nickname
string

Present for internal accounts.

counterPartyName
string

Present for external accounts.

counterPartyEmail
string

Counterparty (payee) email. Present for external accounts.

isVerified
boolean

Present for internal accounts. For ach, false while micro-deposit verification is outstanding and true once it completes. Absent for external accounts, where verification does not apply.

bankAccount
object

Present when type=ach.

card
object

Present when type=card.

paperCheck
object

Present when type=check.

domesticWire
object

Present when type=domestic-wire.

createdAt
string<date-time>
updatedAt
string<date-time>