---
title: "Collect Account Details"
method: POST
path: "/counterparties/{id}/collect_account"
---

# Collect Account Details

`POST /counterparties/{id}/collect_account`

Send an email requesting account details.

## Path parameters

- `id` string, required

## Request body

- object
  - `direction` string, required — One of `credit` or `debit`. Use `credit` when you want to pay a counterparty. Use `debit` when you need to charge a counterparty. This field helps us send a more tailored email to your counterparties.
  - `send_email` boolean — By default, Modern Treasury will send an email to your counterparty that includes a link to the form they must fill out. However, if you would like to send the counterparty the link, you can set this parameter to `false`. The JSON body will include the link to the secure Modern Treasury form.
  - `fields` string[] — The list of fields you want on the form. This field is optional and if it is not set, will default to `["nameOnAccount", "accountType", "accountNumber", "routingNumber", "address"]`. The full list of supported options is `[ "name", "nameOnAccount", "taxpayerIdentifier", "accountType", "accountNumber", "ibanNumber", "clabeNumber", "walletAddress", "panNumber", "routingNumber", "abaWireRoutingNumber", "swiftCode", "auBsb", "caCpa", "cnaps", "gbSortCode", "inIfsc", "myBranchCode", "brCodigo", "routingNumberType", "address", "jpZenginCode", "seBankgiroClearingCode", "nzNationalClearingCode", "hkInterbankClearingCode", "huInterbankClearingCode", "dkInterbankClearingCode", "idSknbiCode" ]`. Field names must be camel-cased.
  - `custom_redirect` string — The URL you want your customer to visit upon filling out the form. By default, they will be sent to a Modern Treasury landing page. This must be a valid HTTPS URL if set.

## Response `200`

200

- object
  - `id` string
  - `is_resend` boolean
  - `form_link` string

---

[API](https://skmtc.net/modern-treasury/apis/modern-treasury-api.md) · [All operations](https://skmtc.net/modern-treasury/apis/modern-treasury-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modern-treasury/modern-treasury-api/revisions/ed0431a2dcd0/schema)
