To submit an eCheck payment using the API, send a POST request to the /txns
endpoint with the payment details in the body of the request. equest bodies for the following use cases:
New eCheck - Submit a transaction by sending the account details.
Saved eCheck - Submit a transaction using previously saved account details.
New Card + Tokenization - Submit a transaction by sending new account details and create a new payment token.
The Payrix API reference includes additional details about optional fields and accepted values.
The eCheck payment documentation includes additional details about Payrix’s eCheck support.
New eCheck Payment
The example below shows a sample request body for submitting an eCheck payment using a new account:
{
"merchant": "t1_mer_59efbf4e69b27a4760b885d",
"type": "7",
"origin": "2",
"payment": {
"method": "8",
"number": "123456789",
"routing": "123456789"
},
"total": "10000",
"first": "First",
"last": "Last"
}
CODE
Saved eCheck Payment
The example below shows a sample request body for submitting an eCheck payment using a saved account:
{
"merchant": "t1_mer_59efbf4e69b27a4760b885d",
"type": "7",
"origin": "2",
"token": "944afd0919c5561724f511d4846e40b9",
"total": "10000"
}
CODE
New eCheck Payment with Tokenization
The example below shows a sample request body for submitting an eCheck payment using a new account and creating a new token:
{
"merchant": "t1_mer_59efbf4e69b27a4760b885d",
"type": "7",
"origin": "2",
"token": {
"payment": {
"method": "8",
"number": "123456789",
"routing": "123456789"
},
"customer": {
"first": "First",
"last": "Last"
}
},
"total": "10000"
}
CODE