Skip to main content
POST
/
ach
/
transaction_simulations
/
receiving_transaction
Simulate receiving ACH transaction
curl --request POST \
  --url https://api-sandbox.synctera.com/v0/ach/transaction_simulations/receiving_transaction \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "account_number": "123638791329",
  "amount": 607,
  "dc_sign": "debit",
  "effective_date": "2022-03-18"
}
'
import requests

url = "https://api-sandbox.synctera.com/v0/ach/transaction_simulations/receiving_transaction"

payload = {
"account_number": "123638791329",
"amount": 607,
"dc_sign": "debit",
"effective_date": "2022-03-18"
}
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({
account_number: '123638791329',
amount: 607,
dc_sign: 'debit',
effective_date: '2022-03-18'
})
};

fetch('https://api-sandbox.synctera.com/v0/ach/transaction_simulations/receiving_transaction', 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.synctera.com/v0/ach/transaction_simulations/receiving_transaction",
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([
'account_number' => '123638791329',
'amount' => 607,
'dc_sign' => 'debit',
'effective_date' => '2022-03-18'
]),
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.synctera.com/v0/ach/transaction_simulations/receiving_transaction"

payload := strings.NewReader("{\n \"account_number\": \"123638791329\",\n \"amount\": 607,\n \"dc_sign\": \"debit\",\n \"effective_date\": \"2022-03-18\"\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.synctera.com/v0/ach/transaction_simulations/receiving_transaction")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_number\": \"123638791329\",\n \"amount\": 607,\n \"dc_sign\": \"debit\",\n \"effective_date\": \"2022-03-18\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api-sandbox.synctera.com/v0/ach/transaction_simulations/receiving_transaction")

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 \"account_number\": \"123638791329\",\n \"amount\": 607,\n \"dc_sign\": \"debit\",\n \"effective_date\": \"2022-03-18\"\n}"

response = http.request(request)
puts response.read_body
{}
{
"code": "BAD_REQUEST_BODY",
"detail": "missing required fields: first_name, dob",
"status": 400,
"title": "Bad Request Body",
"type": "https://dev.synctera.com/errors/bad-request-body"
}
{
"code": "BAD_REQUEST_BODY",
"detail": "missing required fields: first_name, dob",
"status": 400,
"title": "Bad Request Body",
"type": "https://dev.synctera.com/errors/bad-request-body"
}
{
"code": "BAD_REQUEST_BODY",
"detail": "missing required fields: first_name, dob",
"status": 400,
"title": "Bad Request Body",
"type": "https://dev.synctera.com/errors/bad-request-body"
}
{
"code": "BAD_REQUEST_BODY",
"detail": "missing required fields: first_name, dob",
"status": 400,
"title": "Bad Request Body",
"type": "https://dev.synctera.com/errors/bad-request-body"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Sent ACH request

Simulate receiving an ACH transaction

account_number
string
required

Number of the receiving account

Example:

"123638791329"

amount
integer
required

Amount to transfer in cents (e.g. 100 = $1). Generates a prenote if set to 0.

Required range: 0 <= x <= 9999999999
Example:

607

dc_sign
enum<string>
required

The type of transaction (debit or credit) in relation to the receiving account. A credit is a transfer in and a debit is a transfer pulling money out of the receiving account.

Available options:
credit,
debit
Example:

"debit"

effective_date
string<date>
required

Effective date of the transaction. Transactions with the current date or date in the past are posted immediately. Future-dated transactions are scheduled to be posted on the chosen date.

Example:

"2022-03-18"

Response

Simulated receiving ACH transaction

The response is of type object.