Simulate wallet provisioning approval
api reference simulate an approval of a wallet provisioning request { "name" "endpoint /cardmanagement/v1/simulate/tokenization/approve provisioning", "method" "post", "url" "https //sandbox crbcos com/cardmanagement/v1/simulate/tokenization/approve provisioning", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "hiyb6hxbzbif03ihcjxah", "language" "curl", "code" "curl location 'https //ops sandbox crbcos com/cardmanagement/v1/simulate/tokenization/approve provisioning' \\\\\n data '{\n \\"cardid\\" \\"89a3ca77 10dc 4b88 b0a7 b4480095d104\\"\n }'", "customlabel" "" }, { "id" "ft5vkqvlm1ibrbf8xc9i5", "language" "nodejs", "code" "var https = require('follow redirects') https;\nvar fs = require('fs');\n\nvar options = {\n 'method' 'post',\n 'hostname' 'ops sandbox crbcos com',\n 'path' '/cardmanagement/v1/simulate/tokenization/approve provisioning',\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 \\\\\\"cardid\\\\\\" \\\\\\"89a3ca77 10dc 4b88 b0a7 b4480095d104\\\\\\"\\\r\\\n }\\";\n\nreq write(postdata);\n\nreq end();", "customlabel" "" }, { "id" "ikg44td3zax081w4orxvv", "language" "python", "code" "import requests\n\nurl = \\"https //ops sandbox crbcos com/cardmanagement/v1/simulate/tokenization/approve provisioning\\"\n\npayload = \\"{\\\r\\\n \\\\\\"cardid\\\\\\" \\\\\\"89a3ca77 10dc 4b88 b0a7 b4480095d104\\\\\\"\\\r\\\n }\\"\nheaders = {}\n\nresponse = requests request(\\"post\\", 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 //ops sandbox crbcos com/cardmanagement/v1/simulate/tokenization/approve provisioning\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest body = \\"{\\\r\\\n \\\\\\"cardid\\\\\\" \\\\\\"89a3ca77 10dc 4b88 b0a7 b4480095d104\\\\\\"\\\r\\\n }\\"\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 //ops sandbox crbcos com/cardmanagement/v1/simulate/tokenization/approve provisioning\\"\n method = \\"post\\"\n\n payload = strings newreader(`{`+\\"\n\\"+`\n \\"cardid\\" \\"89a3ca77 10dc 4b88 b0a7 b4480095d104\\"`+\\"\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" "hiyb6hxbzbif03ihcjxah" }, "results" { "languages" \[ { "id" "kcrcuayhepl8dhvegmp34", "language" "200", "code" "{\n \\"tokenrequestorid\\" \\"40010030273\\",\n \\"tokenreferenceid\\" \\"dnithe9081730203478143\\"\n}", "customlabel" "" } ], "selectedlanguageid" "kcrcuayhepl8dhvegmp34" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "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 " }, { "name" "tokentype", "kind" "optional", "type" "string", "description" "2 character alphanumeric code indicating the token type values 01=ecom/cof (e commerce/card on file); 02=se (secure element); 03=cbp (cloud based payment); 05=e commerce enabler; 06=pseudo account for mastercard c=digital enablement service secure element token; e=embossed account number provided by issuer; f=digital enablement service static token; h=digital enablement service cloud based payments token; l=pay with rewards loyalty program operator (lpo) card; m=primary account number; p=contactless account number; r=pay with rewards card; v=virtual card number note mastercard values are padded with a space " }, { "name" "tokenrequesterid", "kind" "optional", "type" "string", "description" "identifier of the token service provider requesting tokenization " }, { "name" "tokenreferenceid", "kind" "optional", "type" "string", "description" "unique reference identifier assigned by the token service provider " } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "response" \[ { "name" "tokenrequesterid", "kind" "optional", "type" "string", "description" "" }, { "name" "tokenreferenceid", "kind" "optional", "type" "string", "description" "", "children" \[] } ], "hastryitout" false, "autogeneratedanchorslug" "endpoint cardmanagementv1simulatetokenizationappro", "legacyhash" "x sphgtvjw6sa3mdft10" }