Secure Payments API – Pull NACHA Reports
Introduction
The Secure Payments API allows you to pull NACHA report information with an Elasticsearch query. In this article, we'll give the endpoint and sample payload. You can also try this request yourself on our ReadMe page — an interactive API documentation page which lists each of our requests.
Elasticsearch Query
Most users prefer using an Elasticsearch query because it allows them to narrow their results down to a specific timeframe. To use an Elasticsearch query, send a POST request to the following endpoint:
POST https://securepayments.loanpro.io/api/search/nacha_export?export=false
Here's a sample JSON payload:
{
"search":{
"query":{
"bool":{
"must":[
{
"range":{
"created":{
"gte":"2021-07-01 00:00:00",
"lte":"2021-07-01 23:59:59"
}
}
}
]
}
},
"size":10
}
}
Within the created
property, you can define a search range for when the files were created. The size
property dictates how many records will be returned.