Simulate inbound remit advice
api reference simulate receiving detailed remittance information for a payment transaction this api can only be run in the cross river sandbox docid kaqyvqvnuagqnekfkcuy { "name" "endpoint /rtp/payments/{id}/simulated inbound remit advice", "method" "post", "url" "https //sandbox crbcos com/rtp/v1/payments/{id}/simulated inbound remit advice", "tab" "examples", "examples" { "languages" \[ { "id" "curl example", "language" "curl", "code" "curl x post https //sandbox crbcos com/rtp/v1/payments/{id}/simulated inbound remit advice \\\\\\\\\n h \\"authorization bearer your access token\\" \\\\\\\\\n h \\"content type application/json\\"" }, { "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/{id}/simulated inbound remit advice',\n headers {\n 'authorization' 'bearer your access token',\n 'content type' 'application/json',\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/{id}/simulated inbound remit advice'\nheaders = {\n 'authorization' 'bearer your access token',\n 'content type' 'application/json',\n}\n\nresponse = requests post(url, headers=headers)\nprint(response json())" }, { "id" "ruby example", "language" "ruby", "code" "require 'net/http'\nrequire 'json'\n\nuri = uri('https //sandbox crbcos com/rtp/v1/payments/{id}/simulated inbound remit advice')\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'\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 req, = http newrequest(\\"post\\", \\"https //sandbox crbcos com/rtp/v1/payments/{id}/simulated inbound remit advice\\", nil)\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" \[ { "name" "id", "type" "string", "kind" "required", "description" "unique identifier for the loan guid" } ], "queryparameters" \[], "headerparameters" \[], "formdataparameters" \[] }, "response" \[], "description" "", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "autogeneratedanchorslug" "endpoint rtppaymentsidsimulated inbound remit advi", "legacyhash" "fdxjx3xaihlulxgvshmx8" } 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