Token
Read Token
Withdraw
1 min
{ "name" "withdraw", "method" "post", "url" "https //dashboard devpaydocker cloud/tokenreadfortest demo url", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "bvdo5w1d2pxtdwhqpmk1v", "language" "json", "code" "{\n \\"share public\\" \\"string\\",\n \\"read event\\" \\"string\\",\n \\"source id\\" \\"string\\",\n \\"destination id\\" \\"string\\",\n \\"token id\\" \\"string\\",\n \\"transaction id\\" \\"string\\",\n \\"withdrawn amount\\" \\"string\\",\n \\"token balance\\" \\"string\\"\n}", "customlabel" "" }, { "id" "vd75iqhdehmke3qgyfo1g", "language" "curl", "code" "curl location request get '' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"share public\\" \\"string\\",\\"read event\\" \\"string\\",\\"source id\\" \\"string\\",\\"destination id\\" \\"string\\",\\"token id\\" \\"string\\",\\"transaction id\\" \\"string\\",\\"withdrawn amount\\" \\"string\\",\\"token balance\\" \\"string\\"}'", "customlabel" "" }, { "id" "5ytmqvt0t2z2fhjfs2w5t", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' '',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"share public\\" \\"string\\",\n \\"read event\\" \\"string\\",\n \\"source id\\" \\"string\\",\n \\"destination id\\" \\"string\\",\n \\"token id\\" \\"string\\",\n \\"transaction id\\" \\"string\\",\n \\"withdrawn amount\\" \\"string\\",\n \\"token balance\\" \\"string\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "mcs4be39zzvhvmrwnshad", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"share public\\" \\"string\\",\n \\"read event\\" \\"string\\",\n \\"source id\\" \\"string\\",\n \\"destination id\\" \\"string\\",\n \\"token id\\" \\"string\\",\n \\"transaction id\\" \\"string\\",\n \\"withdrawn amount\\" \\"string\\",\n \\"token balance\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "wawv8 gvtajsi8ej9tvhr", "language" "python", "code" "import requests\nimport json\n\nurl = \\"\\"\n\npayload = json dumps({\n \\"share public\\" \\"string\\",\n \\"read event\\" \\"string\\",\n \\"source id\\" \\"string\\",\n \\"destination id\\" \\"string\\",\n \\"token id\\" \\"string\\",\n \\"transaction id\\" \\"string\\",\n \\"withdrawn amount\\" \\"string\\",\n \\"token balance\\" \\"string\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "7j0zdl8wlfkgjzy7p7o1b", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"\\")\n\nhttp = net http new(url host, url port);\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"share public\\" \\"string\\",\n \\"read event\\" \\"string\\",\n \\"source id\\" \\"string\\",\n \\"destination id\\" \\"string\\",\n \\"token id\\" \\"string\\",\n \\"transaction id\\" \\"string\\",\n \\"withdrawn amount\\" \\"string\\",\n \\"token balance\\" \\"string\\"\n})\n\nresponse = http request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "bvdo5w1d2pxtdwhqpmk1v" }, "results" { "languages" \[ { "id" "gkqgmycgadqgpuw0tmfw3", "language" "200", "customlabel" "", "code" "{\n \\"success\\" true,\n \\"message\\" \\"success\\",\n}\n" }, { "id" "xmlrwgry4ppcedhqcf6xx", "language" "413", "customlabel" "", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"413\\",\n \\"message\\" \\"destination id unknown\\"\n }\n}" }, { "id" "xhyeh2sj0rnubb5yckaxf", "language" "428", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"428\\",\n \\"message\\" \\"token id doesn't match\\"\n }\n}", "customlabel" "" }, { "id" "kcttecnb ktiszjv8cn5a", "language" "500", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"500\\",\n \\"message\\" \\"internal server error\\"\n }\n}", "customlabel" "" }, { "id" "saw e orni7 zihaqbr4d", "language" "502", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"502\\",\n \\"message\\" \\"bad gateway\\"\n }\n}", "customlabel" "" }, { "id" "zmestyvki8jqosixcertx", "language" "503", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"503\\",\n \\"message\\" \\"service unavailable\\"\n }\n}", "customlabel" "" }, { "id" "j51wnrxikfnkjtjndj6h ", "language" "504", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"504\\",\n \\"message\\" \\"gateway timeout\\"\n }\n}", "customlabel" "" } ], "selectedlanguageid" "j51wnrxikfnkjtjndj6h " }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "share public", "kind" "required", "type" "string", "description" "public keys are accessible in your paydocker account under integration menu ", "children" \[] }, { "name" "read event", "kind" "required", "type" "string", "description" "a condition to allow execution of the action that is connected to the token the condition would be \\"token withdrawn created\\" ", "children" \[] }, { "name" "source id", "kind" "required", "type" "string", "description" "your paydocker account id assigned upon account creation (e g pdr1) it is case sensitive ", "children" \[] }, { "name" "destination id", "kind" "required", "type" "string", "description" "property id (e g id 001) generated in your platform it represents the token recipient ", "children" \[] }, { "name" "token id", "kind" "required", "type" "string", "description" "the unique identifier associated with the token that the user is requesting a modification for (e g 2908926013012565)", "children" \[] }, { "name" "transaction id", "kind" "required", "type" "string", "description" "a unique identifier comprising of 20 digits generated by paydocker upon a successful modification of token ", "children" \[] }, { "name" "withdrawn amount", "kind" "required", "type" "string", "description" "the sum subtracted by the partner from the currency balance, subjected to the maximum balance amount in the currency account \n\nthe amount value supports up to twelve digits (e g a value of 9,999,999,999 99) divided by decimal ", "children" \[] }, { "name" "token balance", "kind" "required", "type" "string", "description" "the sum that is available in the token ", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }