Terminal Payments
Getting Devices
{ "tab" "examples", "url" "https //process moolahpay cc/api/devices", "name" "devices", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "every request to the server must include an authorization bearer header with your authorization token each business boarded at moolah will receive a token that is used to process the transaction this token should be pre pended with bearer \<token> " } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "wrn 6rccc4juamwi2xt5j", "code" "\[\n {\n \\" id\\" \\"6060aaa8dd83a02e90809ab7\\",\n \\"business\\" \\"6060aa8004ecab773b6bbec8\\",\n \\"businessid\\" \\"751b41b2 6895 4e45 b88c 2868457e9977\\",\n \\"deviceid\\" \\"\\",\n \\"storeid\\" \\"373b2f59 9acc 4dd7 b927 a5e96a9b4d0b\\",\n \\"name\\" \\"\\",\n \\"status\\" \\"created\\",\n \\"timediscovered\\" \\"2021 03 28t16 11 20 551z\\",\n \\"timeupdated\\" \\"2024 02 05t22 44 28 743z\\",\n \\"poynt\\" {\n \\"deviceid\\" \\"\\",\n \\"externalterminalid\\" \\"0008036805797799\\",\n \\"name\\" \\"\\",\n \\"serialnumber\\" \\"\\",\n \\"status\\" \\"created\\",\n \\"storeid\\" \\"373b2f59 9acc 4dd7 b927 a5e96a9b4d0b\\"\n }\n },\n {\n \\" id\\" \\"6060aaa8dd83a02e90809ab6\\",\n \\"business\\" \\"6060aa8004ecab773b6bbec8\\",\n \\"businessid\\" \\"751b41b2 6895 4e45 b88c 2868457e9977\\",\n \\"deviceid\\" \\"urn\ tid\ e5e30019 a883 30e3 93d2 125fbed007ef\\",\n \\"storeid\\" \\"373b2f59 9acc 4dd7 b927 a5e96a9b4d0b\\",\n \\"name\\" \\"virtual terminal\\",\n \\"status\\" \\"activated\\",\n \\"timediscovered\\" \\"2021 03 28t16 11 20 55z\\",\n \\"timeupdated\\" \\"2024 02 05t22 44 28 155z\\",\n \\"poynt\\" {\n \\"deviceid\\" \\"urn\ tid\ e5e30019 a883 30e3 93d2 125fbed007ef\\",\n \\"externalterminalid\\" \\"0008036805797605\\",\n \\"name\\" \\"virtual terminal\\",\n \\"serialnumber\\" \\"vt00460l0000022\\",\n \\"status\\" \\"activated\\",\n \\"storeid\\" \\"373b2f59 9acc 4dd7 b927 a5e96a9b4d0b\\"\n }\n },\n {\n \\" id\\" \\"628f8708f6590aa299af3d14\\",\n \\"business\\" \\"6060aa8004ecab773b6bbec8\\",\n \\"businessid\\" \\"751b41b2 6895 4e45 b88c 2868457e9977\\",\n \\"deviceid\\" \\"urn\ tid 514dbb0e 2d8d 3878 8f1b 3adbe5e47c9b\\",\n \\"storeid\\" \\"373b2f59 9acc 4dd7 b927 a5e96a9b4d0b\\",\n \\"name\\" \\"new front desk\\",\n \\"status\\" \\"activated\\",\n \\"timediscovered\\" \\"2022 05 26t13 56 24 107z\\",\n \\"timeupdated\\" \\"2024 02 05t22 44 28 595z\\",\n \\"poynt\\" {\n \\"deviceid\\" \\"urn\ tid 514dbb0e 2d8d 3878 8f1b 3adbe5e47c9b\\",\n \\"externalterminalid\\" \\"0008036805797577\\",\n \\"name\\" \\"new front desk\\",\n \\"serialnumber\\" \\"p5sw39xjt002929\\",\n \\"status\\" \\"activated\\",\n \\"storeid\\" \\"373b2f59 9acc 4dd7 b927 a5e96a9b4d0b\\"\n }\n },\n {\n \\" id\\" \\"649dfc1d45eb8a264d256f3f\\",\n \\"business\\" \\"6060aa8004ecab773b6bbec8\\",\n \\"businessid\\" \\"751b41b2 6895 4e45 b88c 2868457e9977\\",\n \\"deviceid\\" \\"urn\ tid 858d8532 2c0c 38c5 aafe f05050fd4874\\",\n \\"storeid\\" \\"373b2f59 9acc 4dd7 b927 a5e96a9b4d0b\\",\n \\"name\\" \\"finance desk\\",\n \\"status\\" \\"activated\\",\n \\"timediscovered\\" \\"2023 06 29t21 48 13 451z\\",\n \\"timeupdated\\" \\"2024 02 05t22 44 28 449z\\",\n \\"poynt\\" {\n \\"deviceid\\" \\"urn\ tid 858d8532 2c0c 38c5 aafe f05050fd4874\\",\n \\"externalterminalid\\" \\"0008036805797838\\",\n \\"name\\" \\"finance desk\\",\n \\"serialnumber\\" \\"n79404252521\\",\n \\"status\\" \\"activated\\",\n \\"storeid\\" \\"373b2f59 9acc 4dd7 b927 a5e96a9b4d0b\\"\n }\n }\n]", "language" "200", "customlabel" "" }, { "id" "3n28nisxww9efbub4rili", "code" "{\\"code\\" 0,\\"message\\" \\"you must send a key\\",\\"error\\" {}}", "language" "500", "customlabel" "" } ], "selectedlanguageid" "wrn 6rccc4juamwi2xt5j" }, "examples" { "languages" \[ { "id" "ttoyyhkl9ke bwe36l7du", "language" "curl", "code" "curl location 'https //process moolahpay cc/api/devices' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json'", "customlabel" "" }, { "id" "pfxzym7zny41yqahraybn", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //process moolahpay cc/api/devices',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "vjnrawximbofbnhcv9hp1", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //process moolahpay cc/api/devices\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "dg9rzxn0oesfctx2uy0sf", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //process moolahpay cc/api/devices\\"\n\npayload = {}\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" "coh avo8ey qjjo98asux", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //process moolahpay cc/api/devices\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "ttoyyhkl9ke bwe36l7du" }, "description" "retrieves a list of device available to send transactions to", "currentnewparameter" { "label" "query parameter", "value" "queryparameters" } } terminals have different boarding statuses when displaying a list of terminals, only include terminals with a status of "activated " the fields you will need from the json are " id" and "name"