Payments
...
APIs
Revoke authorization
1 min
{ "name" "endpoint /checks/v1/positive pay authorizations/{id}/revoke", "method" "post", "url" "https //sandbox crbcos com/checks/v1/positive pay authorizations/{id}/revoke", "description" "revokes authorization already given for a specific check you can only revoke authorization prior to the authorization expiration date ", "tab" "examples", "examples" { "languages" \[ { "id" "c57pnrkrzppg0u7vhm1aa", "language" "curl", "code" "curl location request post 'https //sandbox crbcos com/checks/v1/positive pay authorizations/bf50797f bdd7 4cc9 8efc b30d008043d3/revoke' \\\\\n data ''", "customlabel" "" }, { "id" "2jdchadtjsfrvkleig1sl", "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/bf50797f bdd7 4cc9 8efc b30d008043d3/revoke',\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\nreq end();", "customlabel" "" }, { "id" "pzpajjvm95krjmsi4sj70", "language" "python", "code" "import http client\n\nconn = http client httpsconnection(\\"sandbox crbcos com\\")\npayload = ''\nheaders = {}\nconn request(\\"post\\", \\"/checks/v1/positive pay authorizations/bf50797f bdd7 4cc9 8efc b30d008043d3/revoke\\", payload, headers)\nres = conn getresponse()\ndata = res read()\nprint(data decode(\\"utf 8\\"))", "customlabel" "" }, { "id" "uhe3wsqed3xik4possjh8", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //sandbox crbcos com/checks/v1/positive pay authorizations/bf50797f bdd7 4cc9 8efc b30d008043d3/revoke\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" }, { "id" "5vy8er njmcabehoxmyuf", "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/bf50797f bdd7 4cc9 8efc b30d008043d3/revoke\\"\n method = \\"post\\"\n\n payload = strings newreader(``)\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\\" \\"revoked\\",\n \\"accountnumber\\" \\"2640511503\\",\n \\"payeename\\" \\"john strong\\",\n \\"checknumber\\" \\"64958137456\\",\n \\"amount\\" 10000,\n \\"createdat\\" \\"2025 07 01t03 46 59 903 04 00\\",\n \\"expiresat\\" \\"2025 07 19t08 12 27 27 04 00\\",\n \\"revokedat\\" \\"2025 07 01t03 54 23 1845224 04 00\\",\n \\"productid\\" \\"83bed086 8182 4151 a1e3 af5b01362783\\",\n \\"partnerid\\" \\"cd9c12f4 7691 424a b38b af5b0134c611\\",\n \\"lastmodifiedat\\" \\"2025 07 01t03 54 23 2001547 04 00\\"\n}" } ], "selectedlanguageid" "umlrtwlcorwmkn6rhjt6g" }, "request" { "pathparameters" \[ { "name" "id", "kind" "required", "type" "string", "description" "positive pay authorization id received in the initial authorization response (id attribute) ", "" "positive pay authorization id received in the initial authorization response (id attribute) " } ], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" }, "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" \[] } ] }