Send batch
Relevant webhooks
For this endpoint be sure you have registered for this webhook:
- Ach.Batch.Imported
API reference
Submits 2 or more transactions as a batch. Note that each batch payment must be originated from the same Cross River account number. If originating from multiple Cross River accounts, the transactions from each account must be submitted as separate batches. For each transaction, include the request attributes in the payments object of the request as shown in the code snippet.
Endpoint: /ach/v1/client-batches
POST
https://sandbox.crbcos.com/ach/v1/client-batches
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'sandbox.crbcos.com',
'path': '/ach/v1/client-batches',
'headers': {
'Idempotency-key': '9edef3ad-8084-45d2-ab71-c0d706cd221a'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\r\n \"payments\": [\r\n {\r\n \"accountNumber\": \"2151546989\",\r\n \"receiver\": {\r\n \"routingNumber\": \"021000021\",\r\n \"accountNumber\": \"12345678\",\r\n \"accountType\": \"Checking\",\r\n \"name\": \"Peter Griffin\"\r\n },\r\n \"secCode\": \"PPD\",\r\n \"description\": \"string\",\r\n \"transactionType\": \"Push\",\r\n \"amount\": 115,\r\n \"serviceType\": \"Standard\"\r\n },\r\n{\r\n \"accountNumber\": \"2151546989\",\r\n \"receiver\": {\r\n \"routingNumber\": \"021000021\",\r\n \"accountNumber\": \"65325148\",\r\n \"accountType\": \"Checking\",\r\n \"name\": \"Tommy Jones\"\r\n },\r\n \"secCode\": \"PPD\",\r\n \"description\": \"string\",\r\n \"transactionType\": \"Push\",\r\n \"amount\": 117,\r\n \"serviceType\": \"SameDay\"\r\n },\r\n{\r\n \"accountNumber\": \"2151546989\",\r\n \"receiver\": {\r\n \"routingNumber\": \"021000021\",\r\n \"accountNumber\": \"65325148\",\r\n \"accountType\": \"Checking\",\r\n \"name\": \"John Wick\"\r\n },\r\n \"secCode\": \"PPD\",\r\n \"description\": \"string\",\r\n \"transactionType\": \"Push\",\r\n \"amount\": 119,\r\n \"serviceType\": \"SameDay\"\r\n }\r\n ]\r\n}\r\n\r\n";
req.write(postData);
req.end();