Payments
...
APIs
Authorize check
1 min
authorizes a check using positive pay { "name" "endpoint /checks/v1/positive pay authorizations", "method" "post", "url" "https //sandbox crbcos com/checks/v1/positive pay authorizations", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "c57pnrkrzppg0u7vhm1aa", "language" "curl", "code" "curl location 'https //sandbox crbcos com/checks/v1/positive pay authorizations' \\\\\n data '{\n \\"accountnumber\\" \\"2640511503\\",\n \\"amount\\" 10000,\n \\"checknumber\\" 64958137456,\n \\"payeename\\" \\"john strong\\",\n \\"expiresat\\" \\"2025 07 19t12 12 27 270z\\"\n}'", "customlabel" "" }, { "id" "vyz0jtv8i1mhbtkri5wdb", "language" "nodejs", "code" "var https = require('follow redirects') https;\nvar fs = require('fs');\n\nvar options = {\n 'method' 'post',\n 'hostname' 'sandbox crbcos com',\n 'path' '/checks/v1/positive pay authorizations',\n 'headers' {\n },\n 'maxredirects' 20\n};\n\nvar req = https request(options, function (res) {\n var chunks = \[];\n\n res on(\\"data\\", function (chunk) {\n chunks push(chunk);\n });\n\n res on(\\"end\\", function (chunk) {\n var body = buffer concat(chunks);\n console log(body tostring());\n });\n\n res on(\\"error\\", function (error) {\n console error(error);\n });\n});\n\nvar postdata = \\"{\\\r\\\n \\\\\\"accountnumber\\\\\\" \\\\\\"2640511503\\\\\\",\\\r\\\n \\\\\\"amount\\\\\\" 10000,\\\r\\\n \\\\\\"checknumber\\\\\\" 64958137456,\\\r\\\n \\\\\\"payeename\\\\\\" \\\\\\"john strong\\\\\\",\\\r\\\n \\\\\\"expiresat\\\\\\" \\\\\\"2025 07 19t12 12 27 270z\\\\\\"\\\r\\\n}\\";\n\nreq write(postdata);\n\nreq end();", "customlabel" "" }, { "id" "kkmphrgoqsjsssgryqsok", "language" "python", "code" "import http client\n\nconn = http client httpsconnection(\\"sandbox crbcos com\\")\npayload = \\"{\\\r\\\n \\\\\\"accountnumber\\\\\\" \\\\\\"2640511503\\\\\\",\\\r\\\n \\\\\\"amount\\\\\\" 10000,\\\r\\\n \\\\\\"checknumber\\\\\\" 64958137456,\\\r\\\n \\\\\\"payeename\\\\\\" \\\\\\"john strong\\\\\\",\\\r\\\n \\\\\\"expiresat\\\\\\" \\\\\\"2025 07 19t12 12 27 270z\\\\\\"\\\r\\\n}\\"\nheaders = {}\nconn request(\\"post\\", \\"/checks/v1/positive pay authorizations\\", payload, headers)\nres = conn getresponse()\ndata = res read()\nprint(data decode(\\"utf 8\\"))", "customlabel" "" }, { "id" "dx88z7gdc upg6usiqy5c", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //sandbox crbcos com/checks/v1/positive pay authorizations\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest body = \\"{\\\r\\\n \\\\\\"accountnumber\\\\\\" \\\\\\"2640511503\\\\\\",\\\r\\\n \\\\\\"amount\\\\\\" 10000,\\\r\\\n \\\\\\"checknumber\\\\\\" 64958137456,\\\r\\\n \\\\\\"payeename\\\\\\" \\\\\\"john strong\\\\\\",\\\r\\\n \\\\\\"expiresat\\\\\\" \\\\\\"2025 07 19t12 12 27 270z\\\\\\"\\\r\\\n}\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" }, { "id" "wexp6fbsmhfbu7kfskjcy", "language" "go", "code" "package main\n\nimport (\n \\"fmt\\"\n \\"strings\\"\n \\"net/http\"\n \\"io\\"\n)\n\nfunc main() {\n\n url = \\"https //sandbox crbcos com/checks/v1/positive pay authorizations\\"\n method = \\"post\\"\n\n payload = strings newreader(`{`+\\"\n\\"+`\n \\"accountnumber\\" \\"2640511503\\",`+\\"\n\\"+`\n \\"amount\\" 10000,`+\\"\n\\"+`\n \\"checknumber\\" 64958137456,`+\\"\n\\"+`\n \\"payeename\\" \\"john strong\\",`+\\"\n\\"+`\n \\"expiresat\\" \\"2025 07 19t12 12 27 270z\\"`+\\"\n\\"+`\n}`)\n\n client = \&http client {\n }\n req, err = http newrequest(method, url, payload)\n\n if err != nil {\n fmt println(err)\n return\n }\n res, err = client do(req)\n if err != nil {\n fmt println(err)\n return\n }\n defer res body close()\n\n body, err = io readall(res body)\n if err != nil {\n fmt println(err)\n return\n }\n fmt println(string(body))\n}", "customlabel" "" } ], "selectedlanguageid" "c57pnrkrzppg0u7vhm1aa" }, "results" { "languages" \[ { "id" "umlrtwlcorwmkn6rhjt6g", "language" "200", "customlabel" "", "code" "{\n \\"id\\" \\"bf50797f bdd7 4cc9 8efc b30d008043d3\\",\n \\"status\\" \\"authorized\\",\n \\"accountnumber\\" \\"2640511503\\",\n \\"payeename\\" \\"john strong\\",\n \\"checknumber\\" \\"64958137456\\",\n \\"amount\\" 10000,\n \\"createdat\\" \\"2025 07 01t03 46 59 9029464 04 00\\",\n \\"expiresat\\" \\"2025 07 19t08 12 27 27 04 00\\",\n \\"productid\\" \\"83bed086 8182 4151 a1e3 af5b01362783\\",\n \\"partnerid\\" \\"cd9c12f4 7691 424a b38b af5b0134c611\\",\n \\"lastmodifiedat\\" \\"2025 07 01t03 46 59 9029464 04 00\\"\n}" } ], "selectedlanguageid" "umlrtwlcorwmkn6rhjt6g" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "accountnumber", "kind" "required", "type" "string", "description" "number of the account receiving the check" }, { "name" "amount", "kind" "required", "type" "integer", "description" "money amount that appears on the check", "children" \[] }, { "name" "checknumber", "kind" "required", "type" "string", "description" "the serial number that appears on the check\n\n20 characters maximum", "children" \[] }, { "name" "payeename", "kind" "required", "type" "string", "description" "name written on the pay to the order of line of the check\n\n255 characters maximum", "children" \[] }, { "name" "expiresat", "kind" "optional", "type" "string", "description" "the date and time the authorization expires in this case, the date and time are in this format yyyy mm ddthh\ mm\ ss\[ mmm]", "" "the date and time the authorization expires in this case, the date and time are in this format yyyy mm ddthh\ mm\ ss\[ mmm]" } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "response" \[ { "name" "id", "kind" "optional", "type" "string", "description" "positive pay authorization id \n\nsave this guid format id as proof that the check was authorized using positive pay, and for use if you revoke authorization positive pay authorization id \n\nsave this guid format id as proof that the check was authorized using positive pay, and for use if you revoke authorization " }, { "name" "status", "kind" "optional", "type" "string", "description" "status of the positive pay record \n\n authorized\n paid\n revoked", "children" \[] }, { "name" "accountnumber", "kind" "optional", "type" "string", "description" "number of the account receiving the check", "children" \[] }, { "name" "payeename", "kind" "optional", "type" "string", "description" "name written on the pay to the order of line of the check", "children" \[] }, { "name" "checknumber", "kind" "optional", "type" "string", "description" "the serial number that appears on the check", "children" \[] }, { "name" "amount", "kind" "optional", "type" "integer", "description" "money amount that appears on the check", "children" \[] }, { "name" "relatedpaymentid", "kind" "optional", "type" "string", "description" "unique identifier for the check payment", "children" \[] }, { "name" "createdat", "kind" "optional", "type" "string", "description" "the date and time the record was created in this case, the date and time are in this format yyyy mm ddthh\ mm\ ss\[ mmm]", "children" \[] }, { "name" "expiresat", "kind" "optional", "type" "string", "description" "the date and time the authorization expires in this case, the date and time are in this format yyyy mm ddthh\ mm\ ss\[ mmm]", "children" \[] }, { "name" "revokedat", "kind" "optional", "type" "string", "description" "the date and time authorization was revoked in this case, the date and time are in this format yyyy mm ddthh\ mm\ ss\[ mmm]", "children" \[] }, { "name" "productid", "kind" "optional", "type" "string", "description" "id in guid format of your specific product type on which the account is based provided by cross river in this case, it's the product id of the payee account ", "children" \[] }, { "name" "partnerid", "kind" "optional", "type" "string", "description" "your id in the cross river system this id is in guid format ", "children" \[] }, { "name" "lastmodifiedat", "kind" "optional", "type" "string", "description" "internal cross river value date and time the database entry was last modified ", "children" \[] } ] }