Payezydevelopers
Sandbox

API reference / Withdrawals

Add one of your own bank accounts

POST/v1/orgs/{orgId}/own-accounts

Registers one of the organization's own accounts at another bank. Requires two-factor authentication.

When to use it

Before a withdrawal. These accounts never appear among recipients.

Before you call it

  • Permissionwithdrawals:create
  • Second factorRequired for browser sessions. An API key with the scope replaces it.

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.

Request body

FieldWhat it does
bankBankAccountInputNo description in the spec yet.
bank.labelstringNickname, e.g. Operating account (default: bank name and last four)
bank.owner_namestringNo description in the spec yet.
bank.bank_namestringNo description in the spec yet.
bank.routing_numberstringrequiredNo description in the spec yet.
bank.account_numberstringrequiredNo description in the spec yet.
bank.account_typeenumNo description in the spec yet.

One of checking savings

Default "checking"

bank.railsenum[]No description in the spec yet.

One of ach_credit same_day_ach_credit wire fednow_credit

bank.bank_addressAddressNo description in the spec yet.
bank.bank_address.street_line_1stringrequiredNo description in the spec yet.
bank.bank_address.street_line_2stringNo description in the spec yet.
bank.bank_address.citystringrequiredNo description in the spec yet.
bank.bank_address.statestringrequiredNo description in the spec yet.
bank.bank_address.zipstringrequiredNo description in the spec yet.
bank.beneficiary_addressAddressNo description in the spec yet.
bank.beneficiary_address.street_line_1stringrequiredNo description in the spec yet.
bank.beneficiary_address.street_line_2stringNo description in the spec yet.
bank.beneficiary_address.citystringrequiredNo description in the spec yet.
bank.beneficiary_address.statestringrequiredNo description in the spec yet.
bank.beneficiary_address.zipstringrequiredNo description in the spec yet.
walletWalletInputNo description in the spec yet.
wallet.labelstringNo description in the spec yet.
wallet.networkstringrequiredNo description in the spec yet.
wallet.addressstringrequiredNo description in the spec yet.
make_defaultbooleanNo description in the spec yet.

Default false

Response 201

Added

FieldWhat it does
idstring (uuid)requiredNo description in the spec yet.
typeenumrequiredNo description in the spec yet.

One of bank wallet

is_defaultbooleanrequiredThe account preselected when paying this recipient
labelstringrequiredNo description in the spec yet.
bank_namestringNo description in the spec yet.
routing_numberstringNo description in the spec yet.
account_last4stringNo description in the spec yet.
account_typestringNo description in the spec yet.
railsstring[]requiredNo description in the spec yet.
networkstringNo description in the spec yet.
addressstringNo description in the spec yet.

Errors to handle

CodeWhat it means and what to do
duplicate_account409this wallet is already saved for this recipient
invalid_routing_number422enter a valid 9-digit ABA routing number

Every error is a Problem document. Branch on code; quote request_id to support.