curl --request POST \
--url https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"next_status": "processing"
}
'import requests
url = "https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance"
payload = { "next_status": "processing" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({next_status: 'processing'})
};
fetch('https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'next_status' => 'processing'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance"
payload := strings.NewReader("{\n \"next_status\": \"processing\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"next_status\": \"processing\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"next_status\": \"processing\"\n}"
response = http.request(request)
puts response.read_body{}Simulate Advance ACH
Moves one ACH, incoming or outgoing, to the status named in next_status. Each call applies one allowed transition and emits the production webhook for the new status where production emits one. The response body is empty; read the ACH with Retrieve an ACH V2. Pending return states are entered through Return an ACH V2 or the incoming_return scenario, not through this endpoint. Available in Sandbox only.
If next_status isn’t an allowed transition, the call returns 422 object_state_mismatched (status_transition_not_permitted or object_status_unchanged), or 422 operation_invalid (object_status_terminal) if the ACH is in a final status. If another request changed the ACH while this one was processing, it returns 409 object_modified_concurrently; fetch the ACH and retry.
curl --request POST \
--url https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"next_status": "processing"
}
'import requests
url = "https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance"
payload = { "next_status": "processing" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({next_status: 'processing'})
};
fetch('https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'next_status' => 'processing'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance"
payload := strings.NewReader("{\n \"next_status\": \"processing\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"next_status\": \"processing\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.lead.bank/v2/simulate/ach/{id}/advance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"next_status\": \"processing\"\n}"
response = http.request(request)
puts response.read_body{}Authorizations
Body
The status to move the ACH to. It must be an allowed next status from the ACH's current status:
| Direction | From | To |
|---|---|---|
| Incoming | scheduled | posted |
| Outgoing | scheduled | processing |
| Outgoing | processing | submitted |
| Outgoing | submitted | posted |
| Either | pending_return | returned |
| Either | pending_dishonored_return | return_dishonored |
| Either | pending_contested_return | return_contested |
processing, submitted, posted, returned, return_dishonored, return_contested "processing"
Response
ACH advanced. The response body is empty.
The response is of type object.
Was this page helpful?

