curl --request POST \
--url https://api.synctera.com/v1/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 5000,
"lending_account_id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"payment_configs": {},
"business_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"description": "Card paydown",
"effective_date": "2024-01-25",
"person_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"tenant": "abcdef_ghijkl"
}
'import requests
url = "https://api.synctera.com/v1/payments"
payload = {
"amount": 5000,
"lending_account_id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"payment_configs": {},
"business_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"description": "Card paydown",
"effective_date": "2024-01-25",
"person_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"tenant": "abcdef_ghijkl"
}
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({
amount: 5000,
lending_account_id: '7d943c51-e4ff-4e57-9558-08cab6b963c7',
payment_configs: {},
business_id: 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
description: 'Card paydown',
effective_date: '2024-01-25',
person_id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
tenant: 'abcdef_ghijkl'
})
};
fetch('https://api.synctera.com/v1/payments', 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.synctera.com/v1/payments",
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([
'amount' => 5000,
'lending_account_id' => '7d943c51-e4ff-4e57-9558-08cab6b963c7',
'payment_configs' => [
],
'business_id' => 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
'description' => 'Card paydown',
'effective_date' => '2024-01-25',
'person_id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'tenant' => 'abcdef_ghijkl'
]),
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.synctera.com/v1/payments"
payload := strings.NewReader("{\n \"amount\": 5000,\n \"lending_account_id\": \"7d943c51-e4ff-4e57-9558-08cab6b963c7\",\n \"payment_configs\": {},\n \"business_id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\",\n \"description\": \"Card paydown\",\n \"effective_date\": \"2024-01-25\",\n \"person_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"tenant\": \"abcdef_ghijkl\"\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.synctera.com/v1/payments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 5000,\n \"lending_account_id\": \"7d943c51-e4ff-4e57-9558-08cab6b963c7\",\n \"payment_configs\": {},\n \"business_id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\",\n \"description\": \"Card paydown\",\n \"effective_date\": \"2024-01-25\",\n \"person_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"tenant\": \"abcdef_ghijkl\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.synctera.com/v1/payments")
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 \"amount\": 5000,\n \"lending_account_id\": \"7d943c51-e4ff-4e57-9558-08cab6b963c7\",\n \"payment_configs\": {},\n \"business_id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\",\n \"description\": \"Card paydown\",\n \"effective_date\": \"2024-01-25\",\n \"person_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"tenant\": \"abcdef_ghijkl\"\n}"
response = http.request(request)
puts response.read_body{
"creation_time": "2024-01-15T10:30:00Z",
"description": "Payment",
"effective_date": "2024-01-25",
"id": "2d0f7601-ecc6-48b4-b82f-5d64fa84628b",
"last_updated_time": "2024-01-15T10:30:00Z",
"lending_account_id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"payment_configs": {
"ach": {
"external_account_id": "8f5b4c62-f5a0-4e68-9669-19dbc7a74d8e",
"is_same_day": true,
"sec_code": "WEB"
},
"internal_transfer": {
"source_account_id": "8f5b4c62-f5a0-4e68-9669-19dbc7a74d8e",
"subtype": "autopay_payment"
}
},
"status": "EXECUTED",
"attempt_history": {
"attempts": [
{
"attempted_at": "2024-01-25T14:30:00Z",
"status": "FAILED",
"payment_attributes": {
"ach_id": "6a4b1045-cdd0-82f8-f26c-9e08ce28062f",
"transaction_id": "7b5c2156-dee1-93a9-a37d-0f19df39173a"
},
"reason": "Insufficient funds in payment source account"
}
]
},
"current_amount": 5000,
"executed_amount": 5000,
"payment_attributes": {
"ach_id": "6a4b1045-cdd0-82f8-f26c-9e08ce28062f",
"transaction_id": "7b5c2156-dee1-93a9-a37d-0f19df39173a"
},
"tenant": {
"bank_id": 6,
"partner_id": 6
}
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}Make a payment
🚧 Beta This is a Beta endpoint. Feedback from the community is welcome. We may make breaking changes to this endpoint.
Make a one-time payment against a lending account (e.g. a card paydown), funded either from an internal Synctera platform account or an external ACH-linked account. If effective_date is today or omitted, the payment executes immediately and the response reflects its final status (EXECUTED, FAILED, or SKIPPED). If effective_date is in the future, the payment is scheduled and executes on that date.
curl --request POST \
--url https://api.synctera.com/v1/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 5000,
"lending_account_id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"payment_configs": {},
"business_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"description": "Card paydown",
"effective_date": "2024-01-25",
"person_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"tenant": "abcdef_ghijkl"
}
'import requests
url = "https://api.synctera.com/v1/payments"
payload = {
"amount": 5000,
"lending_account_id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"payment_configs": {},
"business_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"description": "Card paydown",
"effective_date": "2024-01-25",
"person_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"tenant": "abcdef_ghijkl"
}
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({
amount: 5000,
lending_account_id: '7d943c51-e4ff-4e57-9558-08cab6b963c7',
payment_configs: {},
business_id: 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
description: 'Card paydown',
effective_date: '2024-01-25',
person_id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
tenant: 'abcdef_ghijkl'
})
};
fetch('https://api.synctera.com/v1/payments', 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.synctera.com/v1/payments",
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([
'amount' => 5000,
'lending_account_id' => '7d943c51-e4ff-4e57-9558-08cab6b963c7',
'payment_configs' => [
],
'business_id' => 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
'description' => 'Card paydown',
'effective_date' => '2024-01-25',
'person_id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'tenant' => 'abcdef_ghijkl'
]),
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.synctera.com/v1/payments"
payload := strings.NewReader("{\n \"amount\": 5000,\n \"lending_account_id\": \"7d943c51-e4ff-4e57-9558-08cab6b963c7\",\n \"payment_configs\": {},\n \"business_id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\",\n \"description\": \"Card paydown\",\n \"effective_date\": \"2024-01-25\",\n \"person_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"tenant\": \"abcdef_ghijkl\"\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.synctera.com/v1/payments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 5000,\n \"lending_account_id\": \"7d943c51-e4ff-4e57-9558-08cab6b963c7\",\n \"payment_configs\": {},\n \"business_id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\",\n \"description\": \"Card paydown\",\n \"effective_date\": \"2024-01-25\",\n \"person_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"tenant\": \"abcdef_ghijkl\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.synctera.com/v1/payments")
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 \"amount\": 5000,\n \"lending_account_id\": \"7d943c51-e4ff-4e57-9558-08cab6b963c7\",\n \"payment_configs\": {},\n \"business_id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\",\n \"description\": \"Card paydown\",\n \"effective_date\": \"2024-01-25\",\n \"person_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"tenant\": \"abcdef_ghijkl\"\n}"
response = http.request(request)
puts response.read_body{
"creation_time": "2024-01-15T10:30:00Z",
"description": "Payment",
"effective_date": "2024-01-25",
"id": "2d0f7601-ecc6-48b4-b82f-5d64fa84628b",
"last_updated_time": "2024-01-15T10:30:00Z",
"lending_account_id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"payment_configs": {
"ach": {
"external_account_id": "8f5b4c62-f5a0-4e68-9669-19dbc7a74d8e",
"is_same_day": true,
"sec_code": "WEB"
},
"internal_transfer": {
"source_account_id": "8f5b4c62-f5a0-4e68-9669-19dbc7a74d8e",
"subtype": "autopay_payment"
}
},
"status": "EXECUTED",
"attempt_history": {
"attempts": [
{
"attempted_at": "2024-01-25T14:30:00Z",
"status": "FAILED",
"payment_attributes": {
"ach_id": "6a4b1045-cdd0-82f8-f26c-9e08ce28062f",
"transaction_id": "7b5c2156-dee1-93a9-a37d-0f19df39173a"
},
"reason": "Insufficient funds in payment source account"
}
]
},
"current_amount": 5000,
"executed_amount": 5000,
"payment_attributes": {
"ach_id": "6a4b1045-cdd0-82f8-f26c-9e08ce28062f",
"transaction_id": "7b5c2156-dee1-93a9-a37d-0f19df39173a"
},
"tenant": {
"bank_id": 6,
"partner_id": 6
}
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}{
"code": "BAD_REQUEST_BODY",
"detail": "Missing required fields: first_name, dob",
"status": 400
}Authorizations
Headers
An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry.
"7d943c51-e4ff-4e57-9558-08cab6b963c7"
Body
Payment to make
Request to make a one-time payment against a lending account (e.g. a card paydown). Exactly one of person_id or business_id must be provided to identify the customer initiating the payment; exactly one of payment_configs.ach or payment_configs.internal_transfer must be provided to identify the funding source.
Response
Payment created (and, if effective immediately, executed)
A one-time payment made against a lending account.
Was this page helpful?

