Skip to main content
POST
Return an ACH V2
See Errors for the common errors every v2 endpoint can return.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string
required

Idempotency key A unique key for this request, up to 255 characters. Retrying with the same key and body returns the original response instead of performing the operation again.

Required string length: 1 - 255
Example:

"3f1c9a52-7d4e-4b8a-9c21-6e0f5d2a8b14"

Path Parameters

id
string
required

ID of the ACH object you want to return.

Pattern: ^ach_\w+$

Body

application/json
network_code
enum<string>
required

The NACHA Return code under which to initiate this return. R0x–R5x initiate a standard return against the original ACH origination. R61, R62, R67, R68, R69, R70 dishonor an existing return. R71–R77 contest an existing dishonored return. The return code must match the current state of the return chain.

Available options:
R01,
R02,
R03,
R05,
R07,
R08,
R09,
R10,
R11,
R14,
R15,
R16,
R17,
R22,
R23,
R29,
R61,
R62,
R67,
R68,
R69,
R70,
R71,
R72,
R73,
R74,
R75,
R76,
R77
Example:

"R02"

Response

The now-returned original ACH object.

id
string
required

The ACH's unique ID. It starts with ach_.

Pattern: ^ach_\w+$
Example:

"ach_xyz001"

created_at
string<date-time>
required

The ISO-8601 timestamp at which the ACH object was created.

Example:

"2022-06-27T11:22:33Z"

status
enum<string>
required

The current status of the ACH object.

Available options:
scheduled,
processing,
submitted,
posted,
canceled,
under_review,
approved,
rejected,
pending_return,
returned,
pending_dishonored_return,
return_dishonored,
pending_contested_return,
return_contested
Example:

"submitted"

amount
integer<int64>
required

The amount of the transaction in cents.

Required range: x >= 0
Example:

5000

direction
enum<string>
required

Who is initiating the transaction.

outgoing: You are sending a transaction to a counterparty. incoming: You are receiving a transaction from a counterparty.

Available options:
outgoing,
incoming
Example:

"outgoing"

transaction_type
enum<string>
required

ACH transaction type.

Available options:
credit,
debit
Example:

"credit"

sec_code
enum<string>
required

Standard Entry Class (SEC) code for this ACH object. This list covers every code Lead can receive on incoming ACH. Outgoing ACH accept a narrower list, OutgoingSecCode, which is what Lead originates.

Available options:
PPD,
CCD,
ARC,
BOC,
CIE,
CTX,
IAT,
POP,
POS,
RCK,
TEL,
WEB,
ADV,
DNE,
ENR,
MTE,
SHR,
TRC,
TRX,
COR
Example:

"WEB"

currency
enum<string>
required

A three-letter currency code as defined in ISO 4217. USD is the only supported value.

Available options:
USD
Example:

"USD"

statement_descriptor
string
required

The description you would like to appear on your customers’ statement. Maximum number of characters is 10.

Required string length: 1 - 10
Pattern: ^(?!0+$)(?! +$)[\x20-\x7E]*$
Example:

"P2P Credit"

counterparty
object
required

The details of the counterparty you are sending money to or receiving money from.

On incoming ACH, only name and routing_number are returned, because the Nacha record doesn't carry the sender's account number or account type.

returns
object[]
required

Associated returns.

metadata
object
required

A set of key-value pairs that can be used to store additional information related to this object.

Limits: up to 50 keys, each key up to 40 characters, each value a string up to 255 characters. On create, the map is set. On PATCH, it's merged: keys you send are added or overwritten, and keys you don't send are kept. The limits apply to the merged result. A request over a limit fails with a 422.

core_transaction_id
string

The ID of the core transaction created when the ACH posts. Absent until then. A return that posts has its own core_transaction_id in returns.

Pattern: ^core_transaction_.+~\d+$
Example:

"core_transaction_xyz123"

core_balance_id
string

The ID of the core balance the ACH posts to. Lead sets it from the account number. If the account number is on a user deposit balance, it's the core balance behind it.

Pattern: ^core_balance_\w+$
Example:

"core_balance_xyz123"

account_number_id
string

The ID of the Lead Bank Account Number object.

Pattern: ^account_number_\w+$
Example:

"account_number_xyz123"

delivery_type
enum<string>

How fast you want the counterparty to receive the ACH.

  • same_business_day: if the ACH request is submitted before the cutoff window with the same business day option, funds will settle on the same day. 
  • next_business_day: standard ACH processing, for funds to settle on the next business day.
Available options:
same_business_day,
next_business_day
Example:

"same_business_day"

transaction_code
enum<string>

Identifies the type of debit or credit Entry and the account type

Available options:
checking_credit,
checking_credit_prenote,
checking_debit,
checking_debit_prenote,
savings_credit,
savings_credit_prenote,
savings_debit,
savings_debit_prenote
Example:

"checking_credit"

company_name
string

The company that initiated the ACH.

  • Outgoing: set from the originator the account number sends under.
  • Incoming: as received.
Pattern: ^[\x20-\x7E]*$
Example:

"Acme Inc."

company_identification
string
  • Outgoing: set from the originator the account number sends under.
  • Incoming: as received.
Example:

"1234567890"

company_discretionary_data
string

Additional information from the ACH sender on incoming ACH.

Example:

"Acme Inc."

effective_date
string<date>

The date the ACH transaction is expected to settle with the financial institution, as a Federal Reserve banking day (a weekday that isn't a Federal Reserve holiday).

  • Outgoing: set by Lead from delivery_type.
  • Incoming: as received.
Example:

"2022-06-27"

settlement_date
string<date>

The Federal Reserve banking day (a weekday that isn't a Federal Reserve holiday) by which funds must be posted to the counterparty's account.

Example:

"2022-06-27"

individual_identification_number
string

The value in the Nacha Individual Identification Number field of the entry. Optional.

  • On an outgoing ACH with sec_code CCD, PPD, TEL, or WEB, Lead sends it exactly as you provide it.
  • On an outgoing ACH with sec_code CIE, Lead ignores the value you send and sets this field to the name of the individual who owns the originating account number.
  • On an incoming ACH, this is the value the originator sent.

Nacha requires this for person-to-person WEB credits.

Maximum string length: 15
Pattern: ^[\x20-\x7E]*$
receiver_name
string

The name of the receiver of funds. Note: This field is set by the counterparty and may or not be accurate.

Pattern: ^[\x20-\x7E]*$
descriptive_date
string

Free text the originator sets for the receiver's bank to show on the statement, up to 6 characters. Nacha calls this the Company Descriptive Date, but Lead doesn't check its format, so it isn't guaranteed to be a date (incoming values include OCT 08, DUES and 000000). Don't parse it as a date.

Maximum string length: 6
Pattern: ^[\x20-\x7E]*$
Example:

"OCT 08"

additional_information
string

Additional information for the ACH recipient. Not all banks will share this message with their end customer.

Maximum string length: 80
Pattern: ^[\x20-\x7E]*$
trace_number
string

The unique number assigned to every ACH entry by an ODFI which identifies that entry within a specific ACH file.

  • For outgoing ACH, this is generated by Lead when we submit the ACH.
  • For incoming ACH, this value is what we receive from the sender.
Example:

"123456789012345"

reversal
object

A reversal associated with this object.

rejection
object

The most recent rejection on this ACH; the transfer itself, or a return, dishonor or contest on it. Absent when there's none.

correction
object

The corrected counterparty details from a notification of change (NOC). Present only when a NOC was received for this ACH.

iat
object

IAT (International ACH Transaction) specific details. Present only when sec_code is IAT.