Skip to content

Creates an ACH debit payment

Request

POST {{baseURL}}/pay-api/v1/transactions/ach/payment

This endpoint creates an ACH (automated clearing house) transaction to transfer funds from the customer to the merchant.

It specifically transfers money from the customer's bank account to the merchant's account.

The following is an example of the minimum call.

The endpoint call:

POST /pay-api/v1/transactions/ach/payment

The endpoint request body:

{
  "paymentProcessorId": "7a913ba9-724b-4020-8ef1-d3375291f59e",
  "RequesterIpAddress": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
  "amount": 54.87,
  "secCode": 1,
  "accountHolderType": 1,
  "accountNumber": "123456789",
  "routingNumber": "123123123",
  "accountType": 1,
  "billingAddress": 
  {
      "city": "New York",
      "countryId": 1,
      "line1": "1234 Hudson Avenue",
      "postalCode": "10001",
      "stateName": "New York",
      "stateId": 25
  },
  "contactInfo": 
  {
      "firstName": "Alex",
      "lastName": "Morgan",
      "companyName": "Positive",
      "email": "a.morgan@example.com",
      "mobilePhoneNumber": '+14155554618'
  }
}
Security
Bearer
Bodyapplication/json
amountnumber, (double)required

Specifies the payment amount.

Example: 129.99

Example:129.99
paymentProcessorIdstring, (uuid)required

Specifies the ACHQ (ACH check) payment processor identifier.

A list of available payment processers can be found with GET {{baseURL}}/pay-api/v1/configurations/payments. See response availablePaymentProcessors.id.
If omitted, the merchant's default payment processor will be used.

Example: f4e41489-aea6-4279-b6f1-e1f9bffd5358

Example:"f4e41489-aea6-4279-b6f1-e1f9bffd5358"
secCodeinteger, (int32)required


Specifies the SEC (standard entry class) code for the payment method.

Allowed values:

Type IDEntry TypeDescription
1WebInternet-initiated/mobile entries. Default value.
2PPDPrearranged payment and deposit entries.
3CCDCorporate credit or debit.
4TelephoneTelephone-initiated entries.

Example: 1

Default:1
Example:1
requesterIPaddressstring, [ 1 .. 45 ] charactersrequired

Specifies the IP address of the end user.

This is an IPv4 or IPv6 address. This may be the customer, operator, or application responsible for submitting the transaction.

Examples:
192.168.1.1
2001:0db8:85a3:0000:0000:8a2e:0370:7334

Example:"192.168.1.1"
paymentMethodIdstring or null, (uuid)

Specifies the customer payment method identifier.

Providing this value indicates the transaction uses a stored bank account. If this value is included, `customerId` must also be included.

Example: b6df8625-cd25-4123-b345-638aa7b5d011

Example:"b6df8625-cd25-4123-b345-638aa7b5d011"
customerIdstring or null, (uuid)

Specifies the customer identifier.

Providing this value indicates the transaction uses a stored bank account. This value is required if `paymentMethodId` is provided.

Providing this value without also providing `paymentMethodId` indicates the transaction does not use a stored bank account. In this case, a new customer will automatically be generated.

Example: 87d8e330-2878-4742-a86f-dbbb3bf522ac

Example:"87d8e330-2878-4742-a86f-dbbb3bf522ac"
accountNumberstring or null

Specifies the payment target's bank account number.

We recommend using paymentMethodId instead of accountNumber.

Example: 5413591081013511

Example:"5413591081013511"
routingNumberstring or null

Specifies the payment target's bank routing number.

Example: 026009593

Example:"026009593"
accountTypeinteger, (int32)

Identifies the account type.

This value is required when the transaction is not using a stored bank account.

Valid values are:

Type IDAccount TypeDescription
1CheckingChecking
2SavingsSavings

Example: 1

Example:1
accountHolderTypeinteger, (int32)

Identifies the account holder type.

This value is required when the transaction not using a stored bank account.

Valid values are:

Type IDAccount TypeDescription
1BusinessBusiness
2PersonalPersonal

Example: 1

Example:1
contactInfoobject
This object is required when the transaction is not using a stored bank account.
billingAddressobject
This object is required when the transaction is not using a stored bank account.
shippingAddressobject

Specifies an object defining the address.

isFasterProcessingboolean

Specifies ACH (automated clearing house) transaction has same day processing enabled.

Must be empty or null for card subscriptions.

If true, same day processing is enabled.
If false, same day processing is not enabled.

Example: false

Default:false
Example:false
taxIdstring or null

Specifies the customer's TIN (tax identifier number).

Example: 98-7654321

Example:"98-7654321"

Debits $129.99 from a bank account saved to a customer.

paymentMethodId replaces the account details.

secCode is 1 (Web) because the customer authorized the payment online.

POST /pay-api/v1/transactions/ach/payment HTTP/1.1
Host: sandbox.api.flute.com
Authorization: Bearer <YOUR_JWT_HERE>
Accept: application/json
Content-Type: application/json

{
  "paymentProcessorId": "b1390f80-724d-40e6-8790-80c5c7634ee0",
  "amount": 129.99,
  "secCode": 1,
  "requesterIPaddress": "203.0.113.42",
  "paymentMethodId": "0c4a7e92-6f1b-4d38-a5e0-9b2d8c3f7a16",
  "customerId": "9b2e4c71-3a5d-4f80-b6e2-7c1d0a9f3e58",
  "isFasterProcessing": false
}

Responses

OK

Bodyapplication/json
transactionIdstring, (uuid)

Indicates the transaction identifier.

Example: bf5a1dc7-57b7-4fec-ab09-52c47c1acaff

Example:"bf5a1dc7-57b7-4fec-ab09-52c47c1acaff"
typeIdinteger, (int32)
Example:6
typestring or null

Example: CardAuthentication

Example:"CardAuthentication"
statusIdinteger, (int32)

Indicates the Flute ACH transaction status code.

Example: 1

Example:1
statusstring or null

Indicates the Flute ACH transaction status type.

Example: Authorized

Example:"Authorized"
responseDescriptionstring or null

Indicates a free-formed description regarding the transaction.

Example: Command Successful. Approved.

Example:"Command Successful. Approved."
responseCodestring or null

Indicates a response code regarding the transaction.

Example: 000

Example:"000"
processedAmountnumber, (double), decimal places <= 2

Indicates the transaction amount (in USD).

Example: 3500.00 (for $3500.00)

Example:3500
Response

The debit is accepted.

status is Scheduled until the ACH network processes it.

{ "transactionId": "b3edb5a8-e235-4ef7-9003-2343b43c5c41", "typeId": 11, "type": "AchDebit", "statusId": 21, "status": "Scheduled", "responseDescription": "Command Successful. Approved.", "responseCode": "000", "processedAmount": 129.99 }