Get card controls
api reference limit the amount of money that can be spent through different channels in a given period { "name" "endpoint /cardmanagement/v1/cards/{cardid}/controls", "method" "get", "url" "https //sandbox crbcos com/cardmanagement/v1/cards/{cardid}/controls", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "hiyb6hxbzbif03ihcjxah", "language" "curl", "code" "curl location 'https //sandbox crbcos com/cardmanagement/v1/cards/cc25620c d865 4801 9128 b44700ccb94c/controls' \\\\\n data ''", "customlabel" "" }, { "id" "ft5vkqvlm1ibrbf8xc9i5", "language" "nodejs", "code" "var https = require('follow redirects') https;\nvar fs = require('fs');\n\nvar options = {\n 'method' 'get',\n 'hostname' 'sandbox crbcos com',\n 'path' '/cardmanagement/v1/cards/cc25620c d865 4801 9128 b44700ccb94c/controls',\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" "ikg44td3zax081w4orxvv", "language" "python", "code" "import requests\n\nurl = \\"https //sandbox crbcos com/cardmanagement/v1/cards/cc25620c d865 4801 9128 b44700ccb94c/controls\\"\n\npayload = \\"\\"\nheaders = {}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "jmuima3fr9sbhutatvesd", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //sandbox crbcos com/cardmanagement/v1/cards/cc25620c d865 4801 9128 b44700ccb94c/controls\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" }, { "id" "afy7cwt 4c2c6vnwr5eob", "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/cardmanagement/v1/cards/cc25620c d865 4801 9128 b44700ccb94c/controls\\"\n method = \\"get\\"\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" "hiyb6hxbzbif03ihcjxah" }, "results" { "languages" \[ { "id" "kcrcuayhepl8dhvegmp34", "language" "200", "code" "{\n \\"authorizationcontrols\\" \[\n {\n \\"type\\" \\"country\\",\n \\"action\\" \\"allow\\",\n \\"list\\" \[\n \\"string\\"\n ]\n }\n ],\n \\"velocitycontrols\\" \[\n {\n \\"type\\" \\"pos\\",\n \\"action\\" \\"allow\\",\n \\"list\\" \[\n {\n \\"period\\" \\"day\\",\n \\"amount\\" 0,\n \\"usage limit\\" 0\n }\n ],\n \\"cashback\\" \\"allow\\"\n }\n ]\n}", "customlabel" "" } ], "selectedlanguageid" "kcrcuayhepl8dhvegmp34" }, "request" { "pathparameters" \[ { "name" "cardid", "kind" "required", "type" "string", "description" "guid format card id in the cross river system, which is the id attribute value of the response to create a card this is not the number that appears on the card ", "" "cardid" } ], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" }, "response" \[ { "name" "authorizationcontrols", "kind" "optional", "type" "object", "description" "authorization control settings", "children" \[ { "name" "type", "kind" "optional", "type" "string", "description" " country\n currency\n mcc\n mid" }, { "name" "action", "kind" "optional", "type" "string", "description" " allow\n deny" }, { "name" "list", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "velocitycontrols", "kind" "optional", "type" "object", "description" "velocity control settings", "children" \[ { "name" "type", "kind" "optional", "type" "string", "description" " pos\n ecomm\n gwp\n withdrawal" }, { "name" "action", "kind" "optional", "type" "string", "description" " allow\n deny" }, { "name" "list", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "period", "kind" "optional", "type" "string", "description" " day\n week\n month\n year\n total" }, { "name" "amount", "kind" "optional", "type" "integer", "description" "" }, { "name" "usage limit", "kind" "optional", "type" "integer", "description" "" } ] }, { "name" "cashback", "kind" "optional", "type" "string", "description" " allow\n deny" } ] } ], "hastryitout" false, "autogeneratedanchorslug" "endpoint cardmanagementv1cardscardidcontrols", "legacyhash" "x sphgtvjw6sa3mdft10" }