Update a Check Issuance
curl --request PATCH \
--url https://api.synctera.com/v2/checks/issuances/{issuance_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"check_number": "10452"
}
'import requests
url = "https://api.synctera.com/v2/checks/issuances/{issuance_id}"
payload = { "check_number": "10452" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({check_number: '10452'})
};
fetch('https://api.synctera.com/v2/checks/issuances/{issuance_id}', 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/v2/checks/issuances/{issuance_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'check_number' => '10452'
]),
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/v2/checks/issuances/{issuance_id}"
payload := strings.NewReader("{\n \"check_number\": \"10452\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.synctera.com/v2/checks/issuances/{issuance_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"check_number\": \"10452\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.synctera.com/v2/checks/issuances/{issuance_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"check_number\": \"10452\"\n}"
response = http.request(request)
puts response.read_body{
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 125000,
"issue_date": "2023-12-25",
"payee": {
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"person_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"creation_time": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_updated_time": "2023-11-07T05:31:56Z",
"status": "DECLINED",
"check_number": "10452",
"hold": false,
"memo": "<string>",
"metadata": {},
"tenant": "abcdef_ghijkl",
"hold_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sanction_screening_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_details": "DECLINED_COMPLIANCE_REVIEW",
"stop_reason": "<string>",
"stopped_at": "2023-11-07T05:31:56Z"
}{
"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"
}Check Issuances (alpha)
Update a Check Issuance
🚧 Alpha
This endpoint is in Alpha. Feedback from the community is welcome. We may make breaking changes.
Sets the check number of an issuance that was registered without one. Returns 409 if the issuance already has a check number or the check number is already used on the account.
PATCH
/
checks
/
issuances
/
{issuance_id}
Update a Check Issuance
curl --request PATCH \
--url https://api.synctera.com/v2/checks/issuances/{issuance_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"check_number": "10452"
}
'import requests
url = "https://api.synctera.com/v2/checks/issuances/{issuance_id}"
payload = { "check_number": "10452" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({check_number: '10452'})
};
fetch('https://api.synctera.com/v2/checks/issuances/{issuance_id}', 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/v2/checks/issuances/{issuance_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'check_number' => '10452'
]),
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/v2/checks/issuances/{issuance_id}"
payload := strings.NewReader("{\n \"check_number\": \"10452\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.synctera.com/v2/checks/issuances/{issuance_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"check_number\": \"10452\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.synctera.com/v2/checks/issuances/{issuance_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"check_number\": \"10452\"\n}"
response = http.request(request)
puts response.read_body{
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 125000,
"issue_date": "2023-12-25",
"payee": {
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"person_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"creation_time": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_updated_time": "2023-11-07T05:31:56Z",
"status": "DECLINED",
"check_number": "10452",
"hold": false,
"memo": "<string>",
"metadata": {},
"tenant": "abcdef_ghijkl",
"hold_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sanction_screening_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_details": "DECLINED_COMPLIANCE_REVIEW",
"stop_reason": "<string>",
"stopped_at": "2023-11-07T05:31:56Z"
}{
"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
Body
application/json
Response
The check number was set
A check registered before it is sent out, optionally holding its amount on the account.
PENDING while a compliance review is open (see status_details), any hold is pending; do not send the check until ISSUED. STOPPED and EXPIRED release the hold. DECLINED means compliance declined it and the hold was released.
Available options:
DECLINED, EXPIRED, ISSUED, PENDING, STOPPED Was this page helpful?

