Card activation
relevant webhooks for this endpoint be sure you have docid\ bn5xtgkjogbe ctwomcbs for these webhooks docid\ wso2e9cmh8zs8pyijc 7r docid\ wso2e9cmh8zs8pyijc 7r api reference active or deactivate a card token { "name" "endpoint /cardpayments/v1/cardtokens/{id}/activation", "method" "put", "url" "https //sandbox crbcos com/cardpayments/v1/cardtokens/{id}/activation", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" " rsdk0p7ah2w3ofiomt1a", "language" "curl", "code" "curl location globoff request put '{{baseurl}}/cardpayments/v1/cardtokens/26acd726 dade 4064 996a b42b00b634df/activation' \\\\\n header 'content type application/json' \\\\\n header 'accept application/json' \\\\\n data '{\n \\"activate\\" true\n}'" }, { "id" "4noujlfndpmrc ajhpkp7", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"{{baseurl}}/cardpayments/v1/cardtokens/26acd726 dade 4064 996a b42b00b634df/activation\\")\n\nhttp = net http new(url host, url port);\nrequest = net http put new(url)\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"activate\\" true\n})\n\nresponse = http request(request)\nputs response read body\n" }, { "id" "6kenm gkkaxy9az kaz8r", "language" "python", "code" "import http client\nimport json\n\nconn = http client httpsconnection(\\"{{baseurl}}\\")\npayload = json dumps({\n \\"activate\\" true\n})\nheaders = {\n 'content type' 'application/json',\n 'accept' 'application/json'\n}\nconn request(\\"put\\", \\"/cardpayments/v1/cardtokens/26acd726 dade 4064 996a b42b00b634df/activation\\", payload, headers)\nres = conn getresponse()\ndata = res read()\nprint(data decode(\\"utf 8\\"))" }, { "id" "b3oddicevzwdokhwep9vk", "language" "go", "code" "package main\n\nimport (\n \\"fmt\\"\n \\"strings\\"\n \\"net/http\"\n \\"io\\"\n)\n\nfunc main() {\n\n url = \\"{{baseurl}}/cardpayments/v1/cardtokens/26acd726 dade 4064 996a b42b00b634df/activation\\"\n method = \\"put\\"\n\n payload = strings newreader(`{\n \\"activate\\" true\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 req header add(\\"content type\\", \\"application/json\\")\n req header add(\\"accept\\", \\"application/json\\")\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}" }, { "id" "3l35lyjo40hiwrzj1jeyb", "language" "nodejs", "code" "var https = require('follow redirects') https;\nvar fs = require('fs');\n\nvar options = {\n 'method' 'put',\n 'hostname' '{{baseurl}}',\n 'path' '/cardpayments/v1/cardtokens/26acd726 dade 4064 996a b42b00b634df/activation',\n 'headers' {\n 'content type' 'application/json',\n 'accept' 'application/json'\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 = json stringify({\n \\"activate\\" true\n});\n\nreq write(postdata);\n\nreq end();" } ], "selectedlanguageid" " rsdk0p7ah2w3ofiomt1a" }, "results" { "languages" \[ { "id" "zskegucw0ij9unybpihiv", "language" "200", "code" "{\n \\"id\\" \\"26acd726 dade 4064 996a b42b00b634df\\",\n \\"partnerid\\" \\"82a1cfb9 de92 4cc2 8a74 ad6600e36d7a\\",\n \\"productid\\" \\"31cae717 408e 4813 a6b1 ad6600e48632\\",\n \\"accountnumber\\" \\"2287979807\\",\n \\"token\\" \\"11fb445c487140a9bea51457a796172a000000\\",\n \\"authorizationstatus\\" \\"approved\\",\n \\"statusreasoncode\\" \\"00\\",\n \\"statusreasondescription\\" \\"approved and completed successfullly\\",\n \\"isauthorized\\" true,\n \\"firstname\\" \\"bob\\",\n \\"lastname\\" \\"bobbie\\",\n \\"address\\" {\n \\"street1\\" \\"101 main street\\",\n \\"street2\\" \\"more address info\\",\n \\"city\\" \\"new york\\",\n \\"state\\" \\"ny\\",\n \\"postalcode\\" \\"07666\\",\n \\"countrycode\\" \\"us\\"\n },\n \\"isaddressverified\\" false,\n \\"accountnameinquiryused\\" \\"used\\",\n \\"accountnameinquiryresult\\" \\"match\\",\n \\"phone\\" \\"2015551212\\",\n \\"emailaddress\\" \\"mmm\@xxx com\\",\n \\"binnumber\\" \\"411111\\",\n \\"panlastfour\\" \\"1111\\",\n \\"expirationmonth\\" 12,\n \\"expirationyear\\" 2030,\n \\"cardfingerprint\\" \\"7bleadlya+3nxdukox6wje0gkuhvenizuojffjvd0munyh4p3voov0w5lx3jw4h75omx50mirts6xnpcxlx/2w==\\",\n \\"isexpired\\" false,\n \\"cardbrand\\" \\"visa\\",\n \\"capabilities\\" {\n \\"fastfundssupported\\" true,\n \\"domesticpushenabled\\" true,\n \\"domesticpullenabled\\" true,\n \\"internationalpushenabled\\" true,\n \\"internationalpullenabled\\" true\n },\n \\"issuercountrycode\\" \\"us\\",\n \\"clientidentifier\\" \\"string\\",\n \\"createdat\\" \\"2026 04 13t07 03 23 62 04 00\\",\n \\"isactive\\" true,\n \\"authorizedat\\" \\"2026 04 13t07 03 24 177 04 00\\",\n \\"lastmodifiedat\\" \\"2026 04 13t07 11 06 4967045 04 00\\"\n}", "customlabel" "" }, { "id" "w5gl11rtuib7wexh6hp d", "language" "400", "code" "{\n \\"errors\\" \[\n {\n \\"code\\" 0,\n \\"message\\" \\"string\\"\n } \n ] \n} ", "customlabel" "" } ], "selectedlanguageid" "zskegucw0ij9unybpihiv" }, "request" { "pathparameters" \[ { "name" "id", "kind" "required", "type" "string", "description" "the guid of the card token you want to update", "" "the guid of the card token you want to update" } ], "queryparameters" \[], "headerparameters" \[], "formdataparameters" \[], "bodydataparameters" \[ { "name" "activate", "kind" "required", "type" "boolean", "description" "whether or not you want to activate the card token ", "" "whether or not you want to activate the card token " } ] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "id", "kind" "optional", "type" "string", "description" "the guid of the card token you want to retrieve" }, { "name" "partnerid", "kind" "optional", "type" "string", "description" "a uuid that identifies the partner, as defined in cos " }, { "name" "productid", "kind" "optional", "type" "string", "description" "a uuid that identifies the product, as defined in cos " }, { "name" "accountnumber", "kind" "optional", "type" "string", "description" "account number" }, { "name" "token", "kind" "optional", "type" "string", "description" "a randomly generated string of characters that relates to the consumer's payment card (15 38 alphanumeric characters) " }, { "name" "authorizationstatus", "kind" "optional", "type" "string", "description" "responses can be \n notrequired\n new\n pending\n approved\n rejected\n failed" }, { "name" "statusreasoncode", "kind" "optional", "type" "string", "description" "a code indicating the reason for certain statuses, particularly useful in rejections or failures " }, { "name" "statusreasondescription", "kind" "optional", "type" "string", "description" "a description explaining the reason code " }, { "name" "isauthorized", "kind" "optional", "type" "string", "description" "an indicator on whether or not the card token is authorized" }, { "name" "firstname", "kind" "optional", "type" "string", "description" "first name min 1 character, max 35 characters" }, { "name" "lastname", "kind" "optional", "type" "string", "description" "last name min 1 character, max 35 characters" }, { "name" "address", "kind" "optional", "type" "object", "description" "address of card holder", "children" \[ { "name" "street1", "kind" "optional", "type" "string", "description" "street address line 1 max length 60" }, { "name" "street2", "kind" "optional", "type" "string", "description" "street address line 2 max length 60" }, { "name" "city", "kind" "optional", "type" "string", "description" "name of the city max length 60" }, { "name" "state", "kind" "optional", "type" "string", "description" "state code 2 characters" }, { "name" "postalcode", "kind" "optional", "type" "string", "description" "max 10 characters" }, { "name" "countrycode", "kind" "optional", "type" "string", "description" "2 letter iso country code" } ] }, { "name" "isaddressverified", "kind" "optional", "type" "boolean", "description" "an indicator on whether or not the address was verified" }, { "name" "accountnameinquiryused", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "accountnameinquiryresult", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "phone", "kind" "optional", "type" "string", "description" "valid phone number" }, { "name" "emailaddress", "kind" "optional", "type" "string", "description" "valid email address" }, { "name" "binnumber", "kind" "optional", "type" "string", "description" "the first 4 digits on the card this identification number indicates the card issuing bank " }, { "name" "panlastfour", "kind" "optional", "type" "string", "description" "last 4 digits of pan " }, { "name" "expirationmonth", "kind" "optional", "type" "integer", "description" "two digit month credit cards expire at the end of the month written on the card" }, { "name" "expirationyear", "kind" "optional", "type" "integer", "description" "two digit year" }, { "name" "isexpired", "kind" "optional", "type" "boolean", "description" "true if the card is expired" }, { "name" "cardbrand", "kind" "optional", "type" "string", "description" "will be one of the following \n americanexpress\n chinaunionpay\n dankort\n dinersclub\n discover\n hipercard\n jcb\n laser\n maestro\n mastercard\n rupay\n solo\n switch\n visa\n unknown" }, { "name" "capabilities", "kind" "optional", "type" "object", "description" "capabilities are the actions permitted to do on a specific card, these are returned from the rails when the card is authorized", "children" \[ { "name" "fastfundssupported", "kind" "optional", "type" "boolean", "description" "card network can move the funds to the card immediately" }, { "name" "domesticpushenabled", "kind" "optional", "type" "boolean", "description" "enabled to push within the us" }, { "name" "domesticpullenabled", "kind" "optional", "type" "boolean", "description" "enabled to pull within the us" }, { "name" "internationalpushenabled", "kind" "optional", "type" "boolean", "description" "enabled to push internationally outside of the us" }, { "name" "internationalpullenabled", "kind" "optional", "type" "boolean", "description" "enabled to pull internationally outside of the us \nnote internationalpullenabled is not yet supported across all of the rails" } ] }, { "name" "issuercountrycode", "kind" "optional", "type" "string", "description" "iso country of issuer used for domestic/international logic & compliance" }, { "name" "clientidentifier", "kind" "optional", "type" "string", "description" "user reference id max 50 characters" }, { "name" "createdat", "kind" "optional", "type" "string", "description" "when token was created" }, { "name" "isactive", "kind" "optional", "type" "boolean", "description" "true if the card is active " }, { "name" "authorizedat", "kind" "optional", "type" "string", "description" "when authorized" }, { "name" "deactivatedat", "kind" "optional", "type" "string", "description" "when deactivated" }, { "name" "lastmodifiedat", "kind" "optional", "type" "string", "description" "last update timestamp" } ], "autogeneratedanchorslug" "endpoint cardpaymentsv1cardtokensidactivation", "legacyhash" "wnzxwmouuhpmecrfzxlgq" }