Token
Read Token
Status Change
1 min
{ "name" "status change", "method" "post", "url" "your endpoint here", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "cpzowr qnfbtbdbszpznx", "language" "json", "code" "{\n \\"share public\\" \\"string\\",\n \\"read event\\" \\"string\\",\n \\"source id\\" \\"string\\",\n \\"destination id\\" \\"string\\",\n \\"token id\\" \\"integer\\",\n \\"tokes status\\" \\"string\\"\n }", "customlabel" "" }, { "id" "nlf4wlibbcjgmrua4ikbj", "language" "curl", "code" "curl location request post '' \\\\\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\\" \\"integer\\",\\"tokes status\\" \\"string\\"}'", "customlabel" "" }, { "id" "zse6exm4gk6fvshcmkix1", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\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\\" \\"integer\\",\n \\"tokes status\\" \\"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" "b9qi1nv pkkzjb5lzoaf8", "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\\" \\"integer\\",\n \\"tokes status\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'post',\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" "hwweteewenquhgsxrpza9", "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\\" \\"integer\\",\n \\"tokes status\\" \\"string\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "e35pisiaaztzoyegj3ld5", "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 post 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\\" \\"integer\\",\n \\"tokes status\\" \\"string\\"\n})\n\nresponse = http request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "cpzowr qnfbtbdbszpznx" }, "results" { "languages" \[ { "id" "diae5nnk0s932fzfag5qo", "language" "200", "customlabel" "", "code" "{\n \\"success\\" true,\n \\"message\\" \\"success\\",\n}\n" }, { "id" "use0pjk5xdwtob 6alwkq", "language" "413", "customlabel" "", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"413\\",\n \\"message\\" \\"destination id unknown\\"\n }\n}" }, { "id" "f6opzsjgc9dv6zi8ok6oy", "language" "428", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"428\\",\n \\"message\\" \\"token id doesn't match\\"\n }\n}", "customlabel" "" }, { "id" "z8tmrmaccwlyivy1fh0r2", "language" "500", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"500\\",\n \\"message\\" \\"internal server error\\"\n }\n}", "customlabel" "" }, { "id" "pelogqudsopq11eh4etxs", "language" "502", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"502\\",\n \\"message\\" \\"bad gateway\\"\n }\n}", "customlabel" "" }, { "id" "i k ewln2wiulwjhryt9t", "language" "503", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"503\\",\n \\"message\\" \\"service unavailable\\"\n }\n}", "customlabel" "" }, { "id" "fyellluefk5yprgeo9wwa", "language" "504", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"504\\",\n \\"message\\" \\"gateway timeout\\"\n }\n}", "customlabel" "" } ], "selectedlanguageid" "fyellluefk5yprgeo9wwa" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "share public", "kind" "optional", "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 status changed\\"", "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" "integer", "description" "the unique identifier associated with the token that the user is requesting a modification for (e g 2908926013012565)", "children" \[] }, { "name" "tokes status", "kind" "optional", "type" "string", "description" "deleted, freezed, active or disputed (only one is applicable) it is case sensitive ", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } public keys are accessible in your paydocker account under integration menu