Create a payment instrument.
When creating a payment instrument using the Plaid Account option, two flows are supported:
Pass only
accessTokenandaccountIds. This will create a payment instrument withstatus=inactive. You can then use Update payment instrument endpoint to set theaccountHolderType, andaccountHolderNamefields, and set thestatustoactive.Pass the required fields as well as
accountHolderType, andaccountHolderName. This will create a payment instrument withstatus=active. The payment instrument will then be ready to use.
Note: This endpoint returns an array containing a single payment instrument to allow future support for Plaid multi-account select.
A payment instrument marked isExternal=true is not verified and creates transactions for record purposes only. The payment.instrument:external permission is required to set this flag.
A lender's identifier for the instrument.
After the object is successfully created, a lender can use ID or externalId identifiers to fetch the object.
To fetch the object using externalId you need to add ext- to the URL.
Note: Don't add ext- to the identifier value. For example: if the external identifier is ABCDE, then pass externalId=ACBCE and NOT ext-ABCDE when creating the object.
The reason the instrument is inactive. Required when setting status=inactive.
Status of the instrument. Can only be set if isExternal=true.
Statuses:
active- the instrument can be charged.pending- the instrument is pending to be verified.inactive- the instrument is not active and cannot be charged.
When updating this field, only the following state transitions are allowed.
active --> inactive
pending --> active (only for payment instrument with isExternal=true)
pending --> inactive (only for payment instrument with isExternal=true)
inactive --> active (only for payment instrument with isExternal=true)
inactive --> pending (only for payment instrument with isExternal=true)Note: if you update the status from inactive to active or pending, the system will clear the following attributes: inactiveReason, deletedAt, failureReason, failureDescriptionShort, failureDescriptionLong.
Indicates whether the instrument has been verified.
User must have the payment.instrument:skip.verification permission to set this value to true, or the payment instrument must be marked isExternal=true.
For personal accounts, the full name of the account holder. For business accounts, the business name.
This is not an account nickname. It should match the name on file for the account with the bank.
An object representing a link with a third party vendor (e.g. Plaid) that allows fetching additional account details.
The name of the financial institution where this account resides. If empty, will default to the name associated with the routing number.
The account number. If isExternal=true then the last two, three, or four digits of the account number can be provided. Provide four digits if available, otherwise provide two or three digits.
- oauth2
- bearerAuth
- apiKeyHeader
- bankAccount
- card
- check
- moneyOrder
- paymentNetwork
- payroll
- plaid
- wire
curl -i -X POST \
'https://sandboxapi.peach.finance/api/people/{personId}/payment-instruments?force=false&sync=false&allowDuplicates=false' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"isExternal": true,
"pendingAt": "2019-08-24T14:15:22Z",
"externalId": "string",
"inactiveReason": "fraudAlert",
"nickname": "string",
"status": "active",
"verified": false,
"instrumentType": "bankAccount",
"routingNumber": "string",
"accountHolderName": "string",
"accountHolderType": "business",
"accountLink": {
"accessToken": "string",
"accountId": "string",
"dataServices": [
"accountInfo"
],
"itemId": "string",
"recentError": {
"errorCodeByVendor": "string",
"errorDescriptionBorrower": "string",
"errorDescriptionInternal": "string",
"errorType": "retry",
"errorTypeByVendor": "string"
},
"status": "active",
"vendor": "plaid"
},
"accountType": "checking",
"institutionName": "string",
"accountNumber": "string",
"sendNotice": true
}'- Bank Account
- Card
- Check
- Payroll
- Payment Network
- Money Order
- Wire
{ "count": 0, "status": 0, "data": [ { … } ] }