Simulate inbound origination
API reference
Simulate receiving an RTP or FedNow credit transfer payment from another financial institution
This API can only be run in the Cross River Sandbox
Endpoint: /rtp/payments/simulated-inbound-origination
POST
https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-origination
Body Parameters
- accountNumberstringrequiredDescription
- amountintegerrequiredDescription
- debtorobjectrequiredDescription
- addressStreetNamestringDescription
- addressLinestringDescription
- addressBuildingNumberstringDescription
- addressCitystringDescription
- addressStatestringDescription
- addressPostalCodestringDescription
- addressCountrystringDescription
- routingNumberstringDescription
- accountNumberstringDescription
- namestringDescription
- birthCitystringrequiredDescription
- birthCountrystringDescription
- birthDatestringDescription
- orgLegalEntityIdstringDescription
- proxyIdstringDescription
- phoneNumberstringDescription
- remittanceDatastringrequiredDescription
- remittanceReferredInfoarrayrequiredDescription
- networkPlatformstringDescription
- uETRstringDescription
- purposestringDescription
- localInstrumentstringDescription
curl
curl --request POST 'https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-origination' \
--header "Authorization: Bearer <token>" \
--header "Content-Type: application/json" \
--data '{
"accountNumber": "1234567890",
"amount": 150000,
"debtor": {},
"remittanceData": "sample_value",
"remittanceReferredInfo": []
}'nodejs
const axios = require('axios');
const options = {
method: 'POST',
url: 'https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-origination',
headers: {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
},
data: {
"accountNumber": "1234567890",
"amount": 150000,
"debtor": {},
"remittanceData": "sample_value",
"remittanceReferredInfo": []
}
};
axios(options)
.then(response => console.log(response.data))
.catch(error => console.error(error));python
import requests
url = 'https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-origination'
headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
}
data = {
"accountNumber": "1234567890",
"amount": 150000,
"debtor": {},
"remittanceData": "sample_value",
"remittanceReferredInfo": []
}
response = requests.post(url, headers=headers, json=data)
print(response.json())ruby
require 'net/http'
require 'json'
uri = URI('https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-origination')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Authorization'] = 'Bearer <token>'
request['Content-Type'] = 'application/json'
request.body = {
"accountNumber": "1234567890",
"amount": 150000,
"debtor": {},
"remittanceData": "sample_value",
"remittanceReferredInfo": []
}.to_json
response = http.request(request)
puts JSON.parse(response.body)go
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
payload := []byte(`{
"accountNumber": "1234567890",
"amount": 150000,
"debtor": {},
"remittanceData": "sample_value",
"remittanceReferredInfo": []
}`)
req, _ := http.NewRequest("POST", "https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-origination", bytes.NewBuffer(payload))
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}202
400
{\n \"errors\": [{\n \"code\": 2001,\n \"message\": \"Validation error\"\n }]\n}401
{\n \"errors\": [{\n \"code\": 3001,\n \"message\": \"Unauthorized\"\n }]\n}Use cases
- Test receiving instant payments in sandbox environment
- Validate payment processing workflows without real network transmission
- Develop and debug payment receipt handling before production
- Train support staff on payment receipt scenarios
Error codes
Code | Scenario | Resolution |
|---|---|---|
2013 | Routing number isn't a valid RTP Participant | Verify request parameters and retry |
3001 | Unauthorized | Verify Bearer token is valid and not expired |
3002 | Insufficient permissions | Verify user has required permission for this operation |
Business rules
- Requires valid Bearer token with permissions: Permissions.Payments.Simulate
- remittanceData field is limited to 140 characters maximum
- Request validation performed before processing
- Errors return 400 Bad Request with detailed error information
- Rate limiting may apply to prevent abuse