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/paymentThe 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'
}
}See Also:
To create an ACH credit payment, see POST /pay-api/v1/transactions/ach/payment/credit.
To hold an ACH transaction, see POST /pay-api/v1/transactions/ach/b3edb5a8-e235-4ef7-9003-2343b43c5c41/hold.
To release a held ACH transaction, see POST /pay-api/v1/transactions/ach/b3edb5a8-e235-4ef7-9003-2343b43c5c41/unhold.
To void an ACH transaction, see POST /pay-api/v1/transactions/ach/b3edb5a8-e235-4ef7-9003-2343b43c5c41/void.
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
Specifies the SEC (standard entry class) code for the payment method.
Allowed values:
| Type ID | Entry Type | Description |
|---|---|---|
| 1 | Web | Internet-initiated/mobile entries. Default value. |
| 2 | PPD | Prearranged payment and deposit entries. |
| 3 | CCD | Corporate credit or debit. |
| 4 | Telephone | Telephone-initiated entries. |
Example: 1
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
Specifies the customer payment method identifier.
Example: b6df8625-cd25-4123-b345-638aa7b5d011
Specifies the customer identifier.
Example: 87d8e330-2878-4742-a86f-dbbb3bf522ac
Specifies the payment target's bank account number.
We recommend using paymentMethodId instead of accountNumber.
Example: 5413591081013511
Specifies the payment target's bank routing number.
Example: 026009593
Identifies the account type.
Valid values are:
| Type ID | Account Type | Description |
|---|---|---|
| 1 | Checking | Checking |
| 2 | Savings | Savings |
Example: 1
Identifies the account holder type.
Valid values are:
| Type ID | Account Type | Description |
|---|---|---|
| 1 | Business | Business |
| 2 | Personal | Personal |
Example: 1
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
- Mock serverhttps://developer.flute.com/_mock/api-reference/pay-api/v1/transactions/ach/payment
- Sandbox environmenthttps://sandbox.api.flute.com/pay-api/v1/transactions/ach/payment
- Production environmenthttps://api.flute.com/pay-api/v1/transactions/ach/payment
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
}OK
Indicates the transaction identifier.
Example: bf5a1dc7-57b7-4fec-ab09-52c47c1acaff
Indicates the Flute ACH (automated clearing house) transaction type code.
Example: 6
Indicates the Flute ACH transaction type.
Example: CardAuthentication
Indicates the Flute ACH transaction status type.
Example: Authorized
Indicates a free-formed description regarding the transaction.
Example: Command Successful. Approved.
Indicates a response code regarding the transaction.
Example: 000
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 }