> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.outpave.com/v1/llms.txt
> - v2: https://developers.outpave.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.outpave.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.outpave.com/_mcp/server.

# Create an external account

POST https://api.outpave.com/api/v2/externalAccounts
Content-Type: application/json

Registers the holder's own bank with the financial account's issuer, from
the result of a bank connection your integration ran: a processor token
created for the issuer by your bank connection flow, or a setup from
`startExternalAccountSetup` that has succeeded. The connection type must be
the one the financial account's issuer takes. Never send the bank
connection's link, public or access token.

A processor token registers one bank once. A setup is read on the
holder's own account at the issuer and must have succeeded with a bank
payment method and a debit mandate.

Creating an external account never moves money. Pulling funds from it also
needs `achDebitAuthorization`: the holder's acceptance of your ACH debit
authorization. Without it the account is registered with
`achDebitAuthorization.status` `NOT_ACCEPTED` and cannot fund.

Reference: https://developers.outpave.com/v2/api-reference/treasury-api/external-accounts/create-external-account

## Authentication

- `Authorization` header (bearer token, required) — Access token from `POST /access-token`. Valid for at most 30 minutes.

## Request

### Headers

- `Idempotency-Key` (string, required) — Your unique key for this operation: 1 to 255 visible ASCII characters, ideally a new UUID v4 for each operation. A value in double quotes is accepted and the quotes are removed. Retrying with the same key and the same request returns the first response with `Idempotent-Replayed: true`; the same key with a different request is refused with `IDEMPOTENCY_KEY_REUSED`. A key can be used again 30 days after its operation completes.
- `Account-Holder` (string, optional) — The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.
- `X-Request-Id` (string, optional) — Your own correlation ID for this request. It is recorded with the request. The `X-Request-Id` response header is always generated by the server.

### Body (application/json)

This endpoint expects a CreateExternalAccount.

- `financialAccountId` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `connection` (CreateExternalAccountConnection, required) — The result of the bank connection your integration ran.
- `achDebitAuthorization` (DebitAuthorizationAcceptance, optional) — The holder's acceptance of your ACH debit authorization for this bank.

## Response

### 201

The external account.

- `id` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `object` (enum, required) — Always `externalAccount`.
  - Allowed values: `externalAccount`
- `livemode` (boolean, required) — False on test deployments.
- `createdAt` (datetime, required) — When the account was connected.
- `updatedAt` (datetime, required) — When the account last changed.
- `name` (string, required) — The bank's name.
- `last4` (string, required) — Last four digits of the bank account number.
- `status` (enum, required) — Only an `ACTIVE` account can fund.
  - Allowed values: `PENDING`, `MICRODEPOSITS_PENDING`, `ACTIVE`, `DISCONNECTED`
- `ownership` (enum, required) — Whose bank this is; every external account is the holder's own.
  - Allowed values: `OWN`
- `currency` (string, required) — ISO 4217 currency code.
- `achDebitAuthorization` (DebitAuthorization, required) — Whether the holder authorized debits from this bank. Only `ACCEPTED` lets the account fund.

## Errors

### 400 Bad Request Error

The request does not match the contract.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 401 Unauthorized Error

The credential is missing or invalid.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 403 Forbidden Error

The credential is valid but cannot perform this operation.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 409 Conflict Error

The request conflicts with the resource's state, with a unique value, or with another request that used the same `Idempotency-Key`.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 413 Content Too Large Error

The request body is too large.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 415 Unsupported Media Type Error

The request body is not JSON.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 422 Unprocessable Entity Error

The request matches the contract but a business rule refused it.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 429 Too Many Requests Error

The request budget is exhausted.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 500 Internal Server Error

An unexpected error occurred.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 503 Service Unavailable Error

A service this request depends on is unavailable.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

## Types

### CreateExternalAccountConnection

The result of the bank connection your integration ran.

- ProcessorTokenConnection: ProcessorTokenConnection
- SetupIntentConnection: SetupIntentConnection

### DebitAuthorizationAcceptance

The holder's acceptance of your ACH debit authorization for this bank.

- `userId` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `termsVersion` (string, required) — The version of the authorization text the user accepted.
- `acceptedAt` (datetime, required) — When the user accepted.
- `ipAddress` (string, required) — The user's IP address when they accepted.
- `userAgent` (string, required) — The user's browser or app user agent when they accepted.

### DebitAuthorization

Whether the holder authorized debits from this bank. Only `ACCEPTED` lets the account fund.

- `status` (enum, required) — `NOT_ACCEPTED`, `ACCEPTED` or `REVOKED`.
  - Allowed values: `NOT_ACCEPTED`, `ACCEPTED`, `REVOKED`
- `termsVersion` (string, optional) — Version of the authorization text accepted.
- `acceptedAt` (datetime, optional) — When the authorization was accepted.

### ProblemError

One problem with the request. At most one of `pointer`, `parameter` and `header` is present.

- `detail` (string, required) — What is wrong.
- `pointer` (string, optional) — JSON Pointer (RFC 6901) into the request body, written as a URI fragment, for example `#/policy/dailyLimit`.
- `parameter` (string, optional) — Name of the query or path parameter.
- `header` (string, optional) — Name of the request header, in lower case.
- `code` (string, optional) — Machine-readable reason for this item, when one exists.

### ProcessorTokenConnection

- `type` (enum, required) — Always `PLAID_HIGHNOTE_PROCESSOR_TOKEN`.
  - Allowed values: `PLAID_HIGHNOTE_PROCESSOR_TOKEN`
- `token` (string, required) — A processor token for one bank account, created for the financial account's issuer. It is used once and is never stored or shown again.

### SetupIntentConnection

- `type` (enum, required) — Always `STRIPE_SETUP_INTENT`.
  - Allowed values: `STRIPE_SETUP_INTENT`
- `setupIntentId` (string, required) — A setup from `startExternalAccountSetup` that has succeeded.

## Examples

### A bank with a debit authorization

**Response**

```json
{
  "id": "8e9f0a1b-2c3d-4e5f-9a6b-7c8d9e0f1a2b",
  "object": "externalAccount",
  "livemode": false,
  "createdAt": "2026-10-12T18:04:31.207Z",
  "updatedAt": "2026-10-12T18:04:31.207Z",
  "name": "Example Bank",
  "last4": "6789",
  "status": "ACTIVE",
  "ownership": "OWN",
  "currency": "USD",
  "achDebitAuthorization": {
    "status": "ACCEPTED",
    "termsVersion": "2026-09",
    "acceptedAt": "2026-10-12T18:01:12.000Z"
  }
}
```

**SDK Code**

```python A bank with a debit authorization
import requests

url = "https://api.outpave.com/api/v2/externalAccounts"

headers = {
    "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript A bank with a debit authorization
const url = 'https://api.outpave.com/api/v2/externalAccounts';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
    Authorization: 'Bearer <token>'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go A bank with a debit authorization
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/externalAccounts"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby A bank with a debit authorization
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/externalAccounts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java A bank with a debit authorization
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v2/externalAccounts")
  .header("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php A bank with a debit authorization
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v2/externalAccounts', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Idempotency-Key' => '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
  ],
]);

echo $response->getBody();
```

```csharp A bank with a debit authorization
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/externalAccounts");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift A bank with a debit authorization
import Foundation

let headers = [
  "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/externalAccounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### A bank that cannot fund yet

**Response**

```json
{
  "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "object": "externalAccount",
  "livemode": false,
  "createdAt": "2026-10-12T18:04:31.207Z",
  "updatedAt": "2026-10-12T18:04:31.207Z",
  "name": "Example Bank",
  "last4": "4321",
  "status": "ACTIVE",
  "ownership": "OWN",
  "currency": "USD",
  "achDebitAuthorization": {
    "status": "NOT_ACCEPTED"
  }
}
```

**SDK Code**

```python A bank that cannot fund yet
import requests

url = "https://api.outpave.com/api/v2/externalAccounts"

headers = {
    "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript A bank that cannot fund yet
const url = 'https://api.outpave.com/api/v2/externalAccounts';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
    Authorization: 'Bearer <token>'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go A bank that cannot fund yet
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/externalAccounts"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby A bank that cannot fund yet
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/externalAccounts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java A bank that cannot fund yet
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v2/externalAccounts")
  .header("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php A bank that cannot fund yet
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v2/externalAccounts', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Idempotency-Key' => '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
  ],
]);

echo $response->getBody();
```

```csharp A bank that cannot fund yet
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/externalAccounts");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift A bank that cannot fund yet
import Foundation

let headers = [
  "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/externalAccounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### A processor token

**Request**

```json
{
  "financialAccountId": "5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
  "connection": {
    "token": "processor-sandbox-0asd1-a92nc",
    "type": "PLAID_HIGHNOTE_PROCESSOR_TOKEN"
  },
  "achDebitAuthorization": {
    "userId": "3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f",
    "termsVersion": "2026-09",
    "acceptedAt": "2026-10-12T18:01:12.000Z",
    "ipAddress": "203.0.113.24",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
  }
}
```

**Response**

```json
{
  "id": "8e9f0a1b-2c3d-4e5f-9a6b-7c8d9e0f1a2b",
  "object": "externalAccount",
  "livemode": false,
  "createdAt": "2026-10-12T18:04:31.207Z",
  "updatedAt": "2026-10-12T18:04:31.207Z",
  "name": "Example Bank",
  "last4": "6789",
  "status": "ACTIVE",
  "ownership": "OWN",
  "currency": "USD",
  "achDebitAuthorization": {
    "status": "ACCEPTED",
    "termsVersion": "2026-09",
    "acceptedAt": "2026-10-12T18:01:12.000Z"
  }
}
```

**SDK Code**

```python A processor token
import requests

url = "https://api.outpave.com/api/v2/externalAccounts"

payload = {
    "financialAccountId": "5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
    "connection": {
        "token": "processor-sandbox-0asd1-a92nc",
        "type": "PLAID_HIGHNOTE_PROCESSOR_TOKEN"
    },
    "achDebitAuthorization": {
        "userId": "3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f",
        "termsVersion": "2026-09",
        "acceptedAt": "2026-10-12T18:01:12.000Z",
        "ipAddress": "203.0.113.24",
        "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
    }
}
headers = {
    "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript A processor token
const url = 'https://api.outpave.com/api/v2/externalAccounts';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"financialAccountId":"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b","connection":{"token":"processor-sandbox-0asd1-a92nc","type":"PLAID_HIGHNOTE_PROCESSOR_TOKEN"},"achDebitAuthorization":{"userId":"3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f","termsVersion":"2026-09","acceptedAt":"2026-10-12T18:01:12.000Z","ipAddress":"203.0.113.24","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go A processor token
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/externalAccounts"

	payload := strings.NewReader("{\n  \"financialAccountId\": \"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"connection\": {\n    \"token\": \"processor-sandbox-0asd1-a92nc\",\n    \"type\": \"PLAID_HIGHNOTE_PROCESSOR_TOKEN\"\n  },\n  \"achDebitAuthorization\": {\n    \"userId\": \"3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f\",\n    \"termsVersion\": \"2026-09\",\n    \"acceptedAt\": \"2026-10-12T18:01:12.000Z\",\n    \"ipAddress\": \"203.0.113.24\",\n    \"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby A processor token
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/externalAccounts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"financialAccountId\": \"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"connection\": {\n    \"token\": \"processor-sandbox-0asd1-a92nc\",\n    \"type\": \"PLAID_HIGHNOTE_PROCESSOR_TOKEN\"\n  },\n  \"achDebitAuthorization\": {\n    \"userId\": \"3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f\",\n    \"termsVersion\": \"2026-09\",\n    \"acceptedAt\": \"2026-10-12T18:01:12.000Z\",\n    \"ipAddress\": \"203.0.113.24\",\n    \"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java A processor token
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v2/externalAccounts")
  .header("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"financialAccountId\": \"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"connection\": {\n    \"token\": \"processor-sandbox-0asd1-a92nc\",\n    \"type\": \"PLAID_HIGHNOTE_PROCESSOR_TOKEN\"\n  },\n  \"achDebitAuthorization\": {\n    \"userId\": \"3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f\",\n    \"termsVersion\": \"2026-09\",\n    \"acceptedAt\": \"2026-10-12T18:01:12.000Z\",\n    \"ipAddress\": \"203.0.113.24\",\n    \"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)\"\n  }\n}")
  .asString();
```

```php A processor token
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v2/externalAccounts', [
  'body' => '{
  "financialAccountId": "5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
  "connection": {
    "token": "processor-sandbox-0asd1-a92nc",
    "type": "PLAID_HIGHNOTE_PROCESSOR_TOKEN"
  },
  "achDebitAuthorization": {
    "userId": "3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f",
    "termsVersion": "2026-09",
    "acceptedAt": "2026-10-12T18:01:12.000Z",
    "ipAddress": "203.0.113.24",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
  ],
]);

echo $response->getBody();
```

```csharp A processor token
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/externalAccounts");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"financialAccountId\": \"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"connection\": {\n    \"token\": \"processor-sandbox-0asd1-a92nc\",\n    \"type\": \"PLAID_HIGHNOTE_PROCESSOR_TOKEN\"\n  },\n  \"achDebitAuthorization\": {\n    \"userId\": \"3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f\",\n    \"termsVersion\": \"2026-09\",\n    \"acceptedAt\": \"2026-10-12T18:01:12.000Z\",\n    \"ipAddress\": \"203.0.113.24\",\n    \"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift A processor token
import Foundation

let headers = [
  "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "financialAccountId": "5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
  "connection": [
    "token": "processor-sandbox-0asd1-a92nc",
    "type": "PLAID_HIGHNOTE_PROCESSOR_TOKEN"
  ],
  "achDebitAuthorization": [
    "userId": "3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f",
    "termsVersion": "2026-09",
    "acceptedAt": "2026-10-12T18:01:12.000Z",
    "ipAddress": "203.0.113.24",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/externalAccounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### A setup that succeeded

**Request**

```json
{
  "financialAccountId": "5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
  "connection": {
    "setupIntentId": "seti_1Q2w3E4r5T6y7U8i",
    "type": "STRIPE_SETUP_INTENT"
  }
}
```

**Response**

```json
{
  "id": "8e9f0a1b-2c3d-4e5f-9a6b-7c8d9e0f1a2b",
  "object": "externalAccount",
  "livemode": false,
  "createdAt": "2026-10-12T18:04:31.207Z",
  "updatedAt": "2026-10-12T18:04:31.207Z",
  "name": "Example Bank",
  "last4": "6789",
  "status": "ACTIVE",
  "ownership": "OWN",
  "currency": "USD",
  "achDebitAuthorization": {
    "status": "ACCEPTED",
    "termsVersion": "2026-09",
    "acceptedAt": "2026-10-12T18:01:12.000Z"
  }
}
```

**SDK Code**

```python A setup that succeeded
import requests

url = "https://api.outpave.com/api/v2/externalAccounts"

payload = {
    "financialAccountId": "5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
    "connection": {
        "setupIntentId": "seti_1Q2w3E4r5T6y7U8i",
        "type": "STRIPE_SETUP_INTENT"
    }
}
headers = {
    "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript A setup that succeeded
const url = 'https://api.outpave.com/api/v2/externalAccounts';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"financialAccountId":"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b","connection":{"setupIntentId":"seti_1Q2w3E4r5T6y7U8i","type":"STRIPE_SETUP_INTENT"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go A setup that succeeded
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/externalAccounts"

	payload := strings.NewReader("{\n  \"financialAccountId\": \"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"connection\": {\n    \"setupIntentId\": \"seti_1Q2w3E4r5T6y7U8i\",\n    \"type\": \"STRIPE_SETUP_INTENT\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby A setup that succeeded
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/externalAccounts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"financialAccountId\": \"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"connection\": {\n    \"setupIntentId\": \"seti_1Q2w3E4r5T6y7U8i\",\n    \"type\": \"STRIPE_SETUP_INTENT\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java A setup that succeeded
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v2/externalAccounts")
  .header("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"financialAccountId\": \"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"connection\": {\n    \"setupIntentId\": \"seti_1Q2w3E4r5T6y7U8i\",\n    \"type\": \"STRIPE_SETUP_INTENT\"\n  }\n}")
  .asString();
```

```php A setup that succeeded
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v2/externalAccounts', [
  'body' => '{
  "financialAccountId": "5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
  "connection": {
    "setupIntentId": "seti_1Q2w3E4r5T6y7U8i",
    "type": "STRIPE_SETUP_INTENT"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
  ],
]);

echo $response->getBody();
```

```csharp A setup that succeeded
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/externalAccounts");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"financialAccountId\": \"5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b\",\n  \"connection\": {\n    \"setupIntentId\": \"seti_1Q2w3E4r5T6y7U8i\",\n    \"type\": \"STRIPE_SETUP_INTENT\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift A setup that succeeded
import Foundation

let headers = [
  "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "financialAccountId": "5b8e2f4a-1c3d-4e5f-8a9b-0c1d2e3f4a5b",
  "connection": [
    "setupIntentId": "seti_1Q2w3E4r5T6y7U8i",
    "type": "STRIPE_SETUP_INTENT"
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/externalAccounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```