---
title: Simulate inbound payment request
slug: crossriver-apis/payments/instant-payments/apis/simulations/simulated-inbound-payment-request
description: Simulate receiving a request for payment (invoice) from another financial institution
icon: {"apiMethod":"POST"}
createdAt: 2026-09-29T15:33:40.054Z
---

## API reference

Simulate receiving a request for payment (invoice) from another financial institution

:::hint{type="info"}
This API can only be run in the Cross River [Sandbox](https://public.qa.archbee.co/crossriver/get-started/quickstart/sandbox)&#x20;
:::

:::ApiMethodV2
```json
{
  "name": "Endpoint: /rtp/payments/simulated-inbound-payment-request",
  "method": "POST",
  "url": "https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-payment-request",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "curl-example",
        "language": "curl",
        "code": "curl -X POST https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-payment-request \\\\\n  -H \"Authorization: Bearer YOUR_ACCESS_TOKEN\" \\\\\n  -H \"Content-Type: application/json\" \\\\\n  -d '{\n  \"accountNumber\": \"1234567890\",\n  \"amount\": 150000,\n  \"amountModAllowed\": false,\n  \"creditorName\": \"John Doe\",\n  \"uETR\": \"sample_value\"\n}'"
      },
      {
        "id": "nodejs-example",
        "language": "nodejs",
        "code": "const axios = require('axios');\n\nconst options = {\n  method: 'POST',\n  url: 'https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-payment-request',\n  headers: {\n    'Authorization': 'Bearer YOUR_ACCESS_TOKEN',\n    'Content-Type': 'application/json',\n  },\n  data: {\n    \"accountNumber\": \"1234567890\",\n    \"amount\": 150000,\n    \"amountModAllowed\": false,\n    \"creditorName\": \"John Doe\",\n    \"uETR\": \"sample_value\"\n}\n};\n\naxios(options)\n  .then(response => console.log(response.data))\n  .catch(error => console.error(error));"
      },
      {
        "id": "python-example",
        "language": "python",
        "code": "import requests\n\nurl = 'https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-payment-request'\nheaders = {\n    'Authorization': 'Bearer YOUR_ACCESS_TOKEN',\n    'Content-Type': 'application/json',\n}\ndata = {\n    \"accountNumber\": \"1234567890\",\n    \"amount\": 150000,\n    \"amountModAllowed\": false,\n    \"creditorName\": \"John Doe\",\n    \"uETR\": \"sample_value\"\n}\n\nresponse = requests.post(url, headers=headers, json=data)\nprint(response.json())"
      },
      {
        "id": "ruby-example",
        "language": "ruby",
        "code": "require 'net/http'\nrequire 'json'\n\nuri = URI('https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-payment-request')\nhttp = Net::HTTP.new(uri.host, uri.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(uri)\nrequest['Authorization'] = 'Bearer YOUR_ACCESS_TOKEN'\nrequest['Content-Type'] = 'application/json'\nrequest.body = {\n  \"accountNumber\": \"1234567890\",\n  \"amount\": 150000,\n  \"amountModAllowed\": false,\n  \"creditorName\": \"John Doe\",\n  \"uETR\": \"sample_value\"\n}.to_json\n\nresponse = http.request(request)\nputs JSON.parse(response.body)"
      },
      {
        "id": "go-example",
        "language": "go",
        "code": "package main\n\nimport (\n    \"bytes\"\n    \"encoding/json\"\n    \"fmt\"\n    \"io/ioutil\"\n    \"net/http\"\n)\n\nfunc main() {\n    payload := []byte(`{\n        \"accountNumber\": \"1234567890\",\n        \"amount\": 150000,\n        \"amountModAllowed\": false,\n        \"creditorName\": \"John Doe\",\n        \"uETR\": \"sample_value\"\n}`)\n\n    req, _ := http.NewRequest(\"POST\", \"https://sandbox.crbcos.com/rtp/v1/payments/simulated-inbound-payment-request\", bytes.NewBuffer(payload))\n    req.Header.Add(\"Authorization\", \"Bearer YOUR_ACCESS_TOKEN\")\n    req.Header.Add(\"Content-Type\", \"application/json\")\n\n    client := &http.Client{}\n    resp, err := client.Do(req)\n    if err != nil {\n        panic(err)\n    }\n    defer resp.Body.Close()\n\n    body, _ := ioutil.ReadAll(resp.Body)\n    fmt.Println(string(body))\n}"
      }
    ]
  },
  "results": {
    "languages": [
      {
        "id": "202",
        "language": "202",
        "code": ""
      },
      {
        "id": "400",
        "language": "400",
        "code": "{\\n  \\\"errors\\\": [{\\n    \\\"code\\\": 2001,\\n    \\\"message\\\": \\\"Validation error\\\"\\n  }]\\n}"
      },
      {
        "id": "401",
        "language": "401",
        "code": "{\\n  \\\"errors\\\": [{\\n    \\\"code\\\": 3001,\\n    \\\"message\\\": \\\"Unauthorized\\\"\\n  }]\\n}"
      }
    ]
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "formDataParameters": [],
    "bodyDataParameters": [
      {
        "name": "accountNumber",
        "kind": "required",
        "type": "string",
        "description": "A valid COS Account number associated to the Transaction. This parameter can be null."
      },
      {
        "name": "amount",
        "kind": "required",
        "type": "integer",
        "description": "Dollar amount of the transaction in positive integral cents. For example, write $1.00 as 100."
      },
      {
        "name": "amountModAllowed",
        "kind": "required",
        "type": "boolean",
        "description": "Indicates whether the recipient is allowed to modify the requested amount in response to an RfP. If the field is not provided, the system defaults to true.\nIf true, the recipient may respond with a different amount\nIf false, the recipient must match the original amount; any mismatch will cause the payment to be rejected."
      },
      {
        "name": "creditorName",
        "kind": "optional",
        "type": "string",
        "description": "CreditorName"
      },
      {
        "name": "uETR",
        "kind": "required",
        "type": "string",
        "description": "UETR"
      },
      {
        "name": "remittanceData",
        "kind": "optional",
        "type": "string",
        "description": "A description of the payment, meaning, the remittance advice. Use this field for any remittance information that doesn't have its own field. 140 characters maximum."
      },
      {
        "name": "useCase",
        "kind": "optional",
        "type": "string",
        "description": "Use one of the following values for the useCase field:\n\n-BusinessToBusiness\n-ConsumerBillPay\n-AccountToAccount\n-DownPaymentOrFinalPayment\n-ConsumerToGovernment"
      },
      {
        "name": "industryCategory",
        "kind": "optional",
        "type": "string",
        "description": "Use one of the following values for the industryCategory field (optional when useCase is BusinessToBusiness or ConsumerToGovernment):\n\n-HomeUtilities\n-TelecomUtilities\n-Mortgage\n-Rent\n-InsurancePremiums\n-AutoLoans\n-PersonalLoans\n-CreditCardPayment\n-MediaSubscriptions\n-Memberships\n-FinancialInstitution\n-BrokerOrDealer\n-Medical\n-OnlineGaming\n-RealEstate\n-Government"
      },
      {
        "name": "senderId",
        "kind": "optional",
        "type": "string",
        "description": "Unique identifier for sender (UUID format)"
      },
      {
        "name": "purpose",
        "kind": "optional",
        "type": "string",
        "description": "Reason for the ACH transfer. For internal use only. The data is not included with the outgoing ACH batch file."
      }
    ]
  },
  "response": [],
  "description": "",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "endpoint-rtppaymentssimulated-inbound-payment-requ",
  "legacyHash": "H0owiv7CpK-E1ZNch8q1a"
}
```
:::

## Use cases

- Test Request for Payment (RFP) workflows in sandbox
- Validate RFP approval and rejection flows
- Develop customer authorization interfaces before production
- Simulate bill payment request scenarios for testing

## 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                    |
| 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
