Simulate inbound payment ack
api reference simulate receiving acknowledgment from the receiving bank that your outbound payment was accepted this api can only be run in the cross river sandbox docid kaqyvqvnuagqnekfkcuy { "name" "endpoint /rtp/payments/{id}/simulated inbound payment ack", "method" "post", "url" "https //sandbox crbcos com/rtp/v1/payments/{id}/simulated inbound payment ack", "tab" "examples", "examples" { "languages" \[ { "id" "curl example", "language" "curl", "code" "curl x post https //sandbox crbcos com/rtp/v1/payments/{id}/simulated inbound payment ack \\\\\\\\\n h \\"authorization bearer your access token\\" \\\\\\\\\n h \\"content type application/json\\" \\\\\\\\\n d '{\n \\"paymentacktype\\" \\"sample value\\",\n \\"additionalinfo\\" \\"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/{id}/simulated inbound payment ack',\n headers {\n 'authorization' 'bearer your access token',\n 'content type' 'application/json',\n },\n data {\n \\"paymentacktype\\" \\"sample value\\",\n \\"additionalinfo\\" \\"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/{id}/simulated inbound payment ack'\nheaders = {\n 'authorization' 'bearer your access token',\n 'content type' 'application/json',\n}\ndata = {\n \\"paymentacktype\\" \\"sample value\\",\n \\"additionalinfo\\" \\"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/{id}/simulated inbound payment ack')\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 \\"paymentacktype\\" \\"sample value\\",\n \\"additionalinfo\\" \\"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 \\"paymentacktype\\" \\"sample value\\",\n \\"additionalinfo\\" \\"sample value\\"\n}`)\n\n req, = http newrequest(\\"post\\", \\"https //sandbox crbcos com/rtp/v1/payments/{id}/simulated inbound payment ack\\", 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" \[ { "name" "id", "type" "string", "kind" "required", "description" "unique identifier for the loan guid" } ], "queryparameters" \[], "headerparameters" \[], "formdataparameters" \[], "bodydataparameters" \[ { "name" "paymentacktype", "kind" "optional", "type" "string", "description" "paymentacktype" }, { "name" "additionalinfo", "kind" "optional", "type" "string", "description" "provides supplementary details regarding the status report" } ] }, "response" \[], "description" "", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "autogeneratedanchorslug" "endpoint rtppaymentsidsimulated inbound payment ac", "legacyhash" "wqodwsqvcwu7brxe0rhlk" } use cases test payment acknowledgment workflows in sandbox validate successful payment completion handling simulate network confirmation for integration testing verify payment status transitions after acknowledgment error codes code scenario resolution 2041 payment must be a credit transfer verify request parameters and retry 2010 payment must be outbound verify request parameters and retry 2030 credit transfer status must be completed verify request parameters and retry 2031 payment already has an existing payment ack in process 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