Token
Post Token
Schedule Load Token
1 min
{ "name" "schedule load", "method" "post", "url" "https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/schedule", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" " 5b5cgjt4gsuejdohnw99", "language" "json", "code" "{\n \\"share secret\\" \\"string\\",\n \\"token event\\" \\"schedule\\",\n \\"source id\\" \\"string\\",\n \\"token id\\" \\"string\\",\n \\"schedule date\\" \\"string\\",\n \\"load amount\\" \\"string\\",\n \\"check in\\" \\"string\\",\n \\"check out\\" \\"string\\",\n \\"room count\\" \\"number\\"\n}\n", "customlabel" "" }, { "id" "tzq1foyie44pe87 1ccxr", "language" "curl", "code" "curl location g request post 'https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/schedule' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data raw '{\\"share secret\\" \\"string\\",\\"token event\\" \\"string\\",\\"source id\\" \\"string\\",\\"token id\\" \\"string\\",\\"schedule date\\" \\"string\\",\\"load amount\\" \\"string\\"}'", "customlabel" "" }, { "id" "jfnfhyk80p6g zibtv0wq", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/schedule',\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 \\"token id\\" \\"string\\",\n \\"schedule date\\" \\"string\\",\n \\"load amount\\" \\"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" "1fxk4f ea1fppugznhh u", "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 \\"token id\\" \\"string\\",\n \\"schedule date\\" \\"string\\",\n \\"load amount\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/schedule\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "w2fcxsrcfz0ipygpd6f5q", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/schedule\\"\n\npayload = json dumps({\n \\"share secret\\" \\"string\\",\n \\"token event\\" \\"string\\",\n \\"source id\\" \\"string\\",\n \\"token id\\" \\"string\\",\n \\"schedule date\\" \\"string\\",\n \\"load amount\\" \\"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" "w9zzveze8 smfosmknbag", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //secure paydocker com/{version}/token/{partnerid}/{randomkey}/schedule\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post 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 \\"token id\\" \\"string\\",\n \\"schedule date\\" \\"string\\",\n \\"load amount\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" " 5b5cgjt4gsuejdohnw99" }, "results" { "languages" \[ { "id" "sb4gkpmbkxsgtn2whkuxi", "language" "200", "customlabel" "", "code" "{\n \\"success\\" true,\n \\"message\\" \\"load schedule success\\",\n \\"token id\\" \\"34322345677898765\\",\n \\"transaction id\\" \\"34322345677898765\\"\n}" }, { "id" "o fylruwgsqx nxmcfyyr", "language" "405", "customlabel" "", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"405\\",\n \\"message\\" \\"method not allowed\\"\n }\n}\n" }, { "id" "c4yjxl7wzyjpbx0h7dako", "language" "428", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"428\\",\n \\"message\\" \\"token id doesn't match\\"\n }\n}", "customlabel" "" }, { "id" "zoem0otpfww yk8m9v9jr", "language" "429", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"429\\",\n \\"message\\" \\"token id already deleted\\"\n }\n}", "customlabel" "" }, { "id" "ue3loevh8gxfgfhoakkjw", "language" "403", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"403\\",\n \\"message\\" \\"ip not allowed\\"\n }\n}", "customlabel" "" }, { "id" "h1o6qzypcc 2aetzqz5ax", "language" "406", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"406\\",\n \\"message\\" \\"enpoint bad format\\"\n }\n}", "customlabel" "" }, { "id" "wmmmxgbcfnle5ht rlypu", "language" "408", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"408\\",\n \\"message\\" \\"endpoint suspended\\"\n }\n}", "customlabel" "" }, { "id" "c6u hfxxeqb19pqavlhcc", "language" "409", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"409\\",\n \\"message\\" \\"event not allowed\\"\n }\n}", "customlabel" "" }, { "id" "jsbpzwpoynuppqls2bugp", "language" "410", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"410\\",\n \\"message\\" \\"invalid secret key\\"\n }\n}", "customlabel" "" }, { "id" "oojclmua5dynwwj1vbv32", "language" "415", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"415\\",\n \\"message\\" \\"invalid load amount\\"\n }\n}", "customlabel" "" }, { "id" "yoduv4rxypw3va086pnlt", "language" "500", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"500\\",\n \\"message\\" \\"internal server error\\"\n }\n}", "customlabel" "" }, { "id" "u8 gxqkouohcmaebqyhwd", "language" "502", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"502\\",\n \\"message\\" \\"bad gateway\\"\n }\n}", "customlabel" "" }, { "id" "hn26ylakvshdztfkz5jwa", "language" "503", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"503\\",\n \\"message\\" \\"service unavailable\\"\n }\n}", "customlabel" "" }, { "id" "jtjgswvlvp2emrdydghyh", "language" "504", "code" "{\n \\"success\\" \\"false\\",\n \\"errors\\" {\n \\"code\\" \\"504\\",\n \\"message\\" \\"gateway timeout\\"\n }\n}", "customlabel" "" } ], "selectedlanguageid" "jtjgswvlvp2emrdydghyh" }, "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 \\"schedule\\" ", "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" "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" "schedule date", "kind" "required", "type" "string", "description" "the date on which the predetermined amount will appear on the token \n\nthe format is dd mm yyyy, e g 25 12 2023\n\nselectable date range is from the day after the token creation day, to the day before the expiry date \n\ne g token creation day 18 oct 2023, token expiry date 29 nov 2023 therefore, schedule date can be set between 19 oct 2023 to 28 nov 2023 ", "children" \[] }, { "name" "load amount", "kind" "required", "type" "string", "description" "the sum added by the partner to the token, which the recipient can then collect \n\nthe amount value supports up to twelwe digits (e g a value of 9,999,999,999 99) divided by decimal ", "children" \[] }, { "name" "check in", "kind" "required", "type" "string", "description" "the format is yyyy mm dd, e g 2023 12 21 \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 yyyy mm dd, e g 2023 12 21\n\nselectable date range is same or greater than check in date, up to 90 days in the future \n", "children" \[] }, { "name" "room count", "kind" "required", "type" "string", "description" "accepted value from 1 to 999", "children" \[] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } 
