Simulate inbound payment status request
API reference
Simulate receiving an inquiry about the status of a payment transaction
This API can only be run in the Cross River Sandbox
Endpoint: /rtp/payments/{id}/simulated-inbound-payment-status-request
POST
https://sandbox.crbcos.com/rtp/v1/payments/{id}/simulated-inbound-payment-status-request
Path Parameters
- idstringrequiredDescription
curl
curl --globoff --request POST 'https://sandbox.crbcos.com/rtp/v1/payments/{id}/simulated-inbound-payment-status-request' \
--header "Authorization: Bearer <token>" \
--header "Content-Type: application/json"nodejs
const axios = require('axios');
const options = {
method: 'POST',
url: 'https://sandbox.crbcos.com/rtp/v1/payments/{id}/simulated-inbound-payment-status-request',
headers: {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
},
};
axios(options)
.then(response => console.log(response.data))
.catch(error => console.error(error));python
import requests
url = 'https://sandbox.crbcos.com/rtp/v1/payments/{id}/simulated-inbound-payment-status-request'
headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
print(response.json())ruby
require 'net/http'
require 'json'
uri = URI('https://sandbox.crbcos.com/rtp/v1/payments/{id}/simulated-inbound-payment-status-request')
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'
response = http.request(request)
puts JSON.parse(response.body)go
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
req, _ := http.NewRequest("POST", "https://sandbox.crbcos.com/rtp/v1/payments/{id}/simulated-inbound-payment-status-request", nil)
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 payment flows in sandbox environment without real network transmission
- Validate integration with Cross River APIs before production
- Develop and debug payment handling workflows
- Train staff on payment processing scenarios
Error codes
Code | Scenario | Resolution |
|---|---|---|
2018 | Invalid Debtor | Verify request parameters and retry |
2017 | Payments of $3,000 or more require a complete debtor address | Verify request parameters and retry |
2007 | Direction not inbound | 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
- Request validation performed before processing
- Errors return 400 Bad Request with detailed error information
- Rate limiting may apply to prevent abuse