Simulate inbound check return
Relevant webhooks
For this endpoint be sure you have registered for these webhooks:
API reference
Simulates the return of a check deposited into a Cross River account that the issuing bank does not honor.
In Cross River this is referred to as an inbound return item because the Federal Reserve sends the check (in) to Cross River to have the deposited funds returned to the check payor's account.
This API can only be run in the Cross River Sandbox.
Endpoint: /checks/v1/payments/simulated-inbound-returns
POST
https://sandbox.crbcos.com/checks/v1/payments/simulated-inbound-returns
Body Parameters
- originalPaymentIdstringrequiredDescription
- returnCodestringrequiredDescription
Response
- idstringDescription
- accountNumberstringDescription
- referenceIdstringDescription
- paymentTypestringDescription
- checkTypestringDescription
- direction stringDescription
- statusstringDescription
- sourcestringDescription
- postingstringDescription
- rejectionReasonstringDescription
- positivePayResultstringDescription
- positivePayMatchIdstringDescription
- postingCodestringDescription
- clientBatchIdstringDescription
- clientBatchSequenceintegerDescription
- fedBatchIdstringDescription
- fedBatchSequenceintegerDescription
- coreTransactionIdstringDescription
- memoPostIdstringDescription
- originalPaymentIdstringDescription
- customerIdstringDescription
- payerRoutingNumberstringDescription
- payerAccountNumberstringDescription
- payeeNamestringDescription
- checkNumberstringDescription
- bofdRoutingNumberstringDescription
- sequenceNumberstringDescription
- amountintegerDescription
- currencystringDescription
- micrstringDescription
- recognizedAmountintegerDescription
- iqaPassedbooleanDescription
- returnCodestringDescription
- hasFrontImagebooleanDescription
- hasBackImagebooleanDescription
- isRedepositbooleanDescription
- policy stringDescription
- schedulearrayDescription
- createdAtstringDescription
- canceledAtstringDescription
- rejectedAtstringDescription
- processedAtstringDescription
- completedAtstringDescription
- postedAtstringDescription
- wasReturnedbooleanDescription
- purposestringDescription
- clientIdentifierstringDescription
- depositBusinessDatestringDescription
- lockboxVendorIdstringDescription
- productIdstringDescription
- partnerIdstringDescription
- lastModifiedAtstringDescription
curl
curl --location 'https://sandbox.crbcos.com/checks/v1/payments/simulated-inbound-returns' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"originalPaymentId": "3d70fc63-672e-4c3b-9e66-b48700b5db14",
"returnCode": "A"
}'nodejs
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'sandbox.crbcos.com',
'path': '/checks/v1/payments/simulated-inbound-returns',
'headers': {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\r\n \"originalPaymentId\": \"3d70fc63-672e-4c3b-9e66-b48700b5db14\",\r\n \"returnCode\": \"A\"\r\n}";
req.write(postData);
req.end();python
import requests
url = "https://sandbox.crbcos.com/checks/v1/payments/simulated-inbound-returns"
payload = "{\r\n \"originalPaymentId\": \"3d70fc63-672e-4c3b-9e66-b48700b5db14\",\r\n \"returnCode\": \"A\"\r\n}"
headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
ruby
require "uri"
require "net/http"
url = URI("https://sandbox.crbcos.com/checks/v1/payments/simulated-inbound-returns")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <token>"
request["Content-Type"] = "application/json"
request.body = "{\r\n \"originalPaymentId\": \"3d70fc63-672e-4c3b-9e66-b48700b5db14\",\r\n \"returnCode\": \"A\"\r\n}"
response = https.request(request)
puts response.read_body
go
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.crbcos.com/checks/v1/payments/simulated-inbound-returns"
method := "POST"
payload := strings.NewReader(`{
"originalPaymentId": "3d70fc63-672e-4c3b-9e66-b48700b5db14",
"returnCode": "A"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}200
{
"id": "3366874c-b887-4532-aec7-b48c006d4d1f",
"accountNumber": "2203250853",
"referenceId": "C200R1684TDQ",
"paymentType": "Return",
"checkType": "Standard",
"direction": "Inbound",
"status": "Created",
"source": "Api",
"posting": "Pending",
"postingCode": "OK",
"fedBatchId": "0cfb50f6-afdd-4033-a1c2-b48c006d4d1f",
"fedBatchSequence": 0,
"coreTransactionId": "7153b673-bf50-4b9b-b097-b48c006d4d1f",
"originalPaymentId": "3d70fc63-672e-4c3b-9e66-b48700b5db14",
"customerId": "861261af-1251-49e8-966f-b2ff00d627bd",
"payerRoutingNumber": "314074269",
"payerAccountNumber": "28293886",
"payeeName": "",
"checkNumber": "1237",
"bofdRoutingNumber": "021214891",
"sequenceNumber": "3918624417",
"amount": 10000,
"currency": "usd",
"recognizedAmount": 0,
"iqaPassed": false,
"returnCode": "A",
"hasFrontImage": true,
"hasBackImage": true,
"isRedeposit": false,
"policy": "Standard",
"schedule": [],
"createdAt": "2026-07-19T02:37:57.2241546-04:00",
"wasReturned": false,
"purpose": "TESTING",
"decisionRequired": false,
"wasDecisioned": false,
"productId": "83bed086-8182-4151-a1e3-af5b01362783",
"partnerId": "cd9c12f4-7691-424a-b38b-af5b0134c611",
"lastModifiedAt": "2026-07-19T02:37:57.2241826-04:00"
}400
{
"errors": [
{
"code": 2012,
"message": "Payment must be status completed or rejected to be returned"
}
]
}