Token
Post Token
Unload Token
1 min
{ "name" "unload", "method" "patch", "url" "https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/unload", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "2m5h6awbsja4m1t6hxqkp", "language" "json", "code" "{\n \\"share secret\\" \\"string\\",\n \\"token event\\" \\"unload\\",\n \\"source id\\" \\"string\\",\n \\"unload amount\\" \\"string\\",\n \\"token id\\" \\"string\\",\n \\"check in\\" \\"string\\",\n \\"check out\\" \\"string\\",\n \\"room count\\" \\"number\\"\n}", "customlabel" "" }, { "id" "didfyolgji8vhtpv31 41", "language" "curl", "code" "curl location g request patch 'https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/unload' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"share secret\\" \\"string\\",\\"token event\\" \\"string\\",\\"source id\\" \\"string\\",\\"unload amount\\" \\"string\\",\\"token id\\" \\"string\\"}'", "customlabel" "" }, { "id" "2neixyividgul5q4iq9gm", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'patch',\n 'url' 'https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/unload',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"share secret\\" \\"string\\",\n \\"token event\\" \\"string\\",\n \\"source id\\" \\"string\\",\n \\"unload amount\\" \\"string\\",\n \\"token id\\" \\"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" "dlnvchgejf f9 jjx6lox", "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 secret\\" \\"string\\",\n \\"token event\\" \\"string\\",\n \\"source id\\" \\"string\\",\n \\"unload amount\\" \\"string\\",\n \\"token id\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'patch',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/unload\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "29n puaoe3all9d3zeaa ", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/unload\\"\n\npayload = json dumps({\n \\"share secret\\" \\"string\\",\n \\"token event\\" \\"string\\",\n \\"source id\\" \\"string\\",\n \\"unload amount\\" \\"string\\",\n \\"token id\\" \\"string\\"\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"patch\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "mw5qc5cng6p6cwpzpae53", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/unload\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http patch new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"share secret\\" \\"string\\",\n \\"token event\\" \\"string\\",\n \\"source id\\" \\"string\\",\n \\"unload amount\\" \\"string\\",\n \\"token id\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "2m5h6awbsja4m1t6hxqkp" }, "results" { "languages" \[ { "id" "sb4gkpmbkxsgtn2whkuxi", "language" "200", "customlabel" "", "code" "{\n \\"success\\" true,\n \\"message\\" \\"token unload success\\",\n \\"token id\\" \\"34322345677898765\\",\n \\"transaction id\\" \\"34322345677898765\\",\n \\"fees amount\\" \\"100 50\\"\n\n}" }, { "id" "o fylruwgsqx nxmcfyyr", "language" "405", "customlabel" "", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"405\\",\n \\"message\\" \\"method not allowed\\"\n }\n}" }, { "id" "xzsath0nqiimn9vsck3ic", "language" "428", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"428\\",\n \\"message\\" \\"token id doesn't match\\"\n }\n}", "customlabel" "" }, { "id" "ytstgnegnxxtr8luzbyh6", "language" "429", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"429\\",\n \\"message\\" \\"token id already deleted\\"\n }\n}", "customlabel" "" }, { "id" "xmazktmt0zi2ldu1vi88l", "language" "403", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"403\\",\n \\"message\\" \\"ip not allowed\\"\n }\n}", "customlabel" "" }, { "id" "vw6cv6tztcycwpd6lsuhb", "language" "406", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"406\\",\n \\"message\\" \\"enpoint bad format\\"\n }\n}", "customlabel" "" }, { "id" "xm1jrnz7iw9jjbx4dxfyy", "language" "408", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"408\\",\n \\"message\\" \\"endpoint suspended\\"\n }\n}", "customlabel" "" }, { "id" "behiq6qbkdttumtcjcbtk", "language" "409", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"409\\",\n \\"message\\" \\"event not allowed\\"\n }\n}", "customlabel" "" }, { "id" "xzyg2i5cxcvgjwpws9nmn", "language" "410", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"410\\",\n \\"message\\" \\"invalid secret key\\"\n }\n}", "customlabel" "" }, { "id" "nkbkwnmsfqmvjgqdvuqa0", "language" "412", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"412\\",\n \\"message\\" \\"balance id is inactive\\"\n }\n}", "customlabel" "" }, { "id" "tklsbwch2lt09rlrw5kvn", "language" "415", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"415\\",\n \\"message\\" \\"invalid load amount\\"\n }\n}", "customlabel" "" }, { "id" "17j65z5qwhes2z0lntqvn", "language" "431", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"431\\",\n \\"message\\" \\"unload amount exceeded\\"\n }\n}", "customlabel" "" }, { "id" "wo mtwd468s5nkxisew3a", "language" "500", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"500\\",\n \\"message\\" \\"internal server error\\"\n }\n}", "customlabel" "" }, { "id" "4pl3inh6uipe2vjwryqxy", "language" "502", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"502\\",\n \\"message\\" \\"bad gateway\\"\n }\n}", "customlabel" "" }, { "id" "csol7oros9tqmj9r8hbc8", "language" "503", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"503\\",\n \\"message\\" \\"service unavailable\\"\n }\n}", "customlabel" "" }, { "id" "zaik3a858ytgn05o0gfbu", "language" "504", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"504\\",\n \\"message\\" \\"gateway timeout\\"\n }\n}", "customlabel" "" } ], "selectedlanguageid" "zaik3a858ytgn05o0gfbu" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "share secret", "kind" "required", "type" "string", "description" "test mode secret keys and live mode secret keys are available in your paydocker account under integration menu \n\ndon't share your secret api keys in publicly accessible areas such as github, client side code, and so forth ", "children" \[] }, { "name" "token event", "kind" "required", "type" "string", "description" "used to identify the action connected to the token and the allowed action for this request would be \\"unload\\" ", "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" "unload amount", "kind" "required", "type" "string", "description" "the sum subtracted by the partner from the token, subjected to the maximum balance amount in the token \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 id", "kind" "required", "type" "string", "description" "the unique identifier associated with the token that the user is requesting unloading for (e g 2908926013012565)", "children" \[] }, { "name" "check in", "kind" "required", "type" "string", "description" "the format is dd mm yyyy, e g 25 12 2023\n\nselectable date range up to 2 years before token creation day to up to 2 years in the future ", "children" \[] }, { "name" "check out", "kind" "required", "type" "string", "description" "the format is dd mm yyyy, e g 25 12 2023\n\nselectable date range is same or greater than check in date, up to 90 days in the future ", "children" \[] }, { "name" "room count", "kind" "required", "type" "number", "description" "accepted value from 1 to 999", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }
