Reports
Transaction List
gets a list of previous processed transactions { "tab" "examples", "url" "https //process moolahpay cc/api/transactions", "name" "transactions", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[ { "kind" "optional", "name" "startat", "type" "string", "children" \[], "description" "the time in seconds from which to start fetching transactions" }, { "kind" "optional", "name" "startoffset", "type" "integer", "children" \[], "description" "for all transactions at startat the offset from where to start" }, { "kind" "optional", "name" "endat", "type" "string", "children" \[], "description" "the time in seconds at which to end" }, { "kind" "optional", "name" "limit", "type" "integer", "children" \[], "description" "limit" }, { "kind" "optional", "name" "cardnumberlast4", "type" "string", "children" \[], "description" "limit results to transactions done by cards ending with these 4 numbers" }, { "kind" "optional", "name" "transactionids", "type" "array", "children" \[], "description" "only fetch transactions matching these transactionids " }, { "kind" "optional", "name" "authonly", "type" "boolean", "children" \[], "description" "only fetch authonly transactions" }, { "kind" "optional", "name" "unsettledonly", "type" "string", "children" \[], "description" "only fetch unsettled transactions note this will limit result to creditdebitonly" } ], "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 \\"links\\" \[\n {\n \\"href\\" \\"//businesses/08f7ce0a bd07 4016 8a28 xxxxxxx/transactions?startat=2022 10 18t04%3a55%3a04z\&endat=2022 12 27t03%3a35%3a55z\\",\n \\"rel\\" \\"next\\",\n \\"method\\" \\"get\\"\n }\n ],\n \\"transactions\\" \[\n {\n \\"id\\" \\"e7f50d54 0183 1000 06cd 43aae70564b7\\",\n \\"action\\" \\"sale\\",\n \\"amounts\\" {\n \\"cashbackamount\\" 0,\n \\"currency\\" \\"usd\\",\n \\"customeroptednotip\\" false,\n \\"orderamount\\" 12200,\n \\"transactionamount\\" 12200,\n \\"tipamount\\" 0\n },\n \\"context\\" {\n \\"businesstype\\" \\"test merchant\\",\n \\"businessid\\" \\"08f7ce0a bd07 4016 8a28 xxxxxxxxx\\",\n \\"employeeuserid\\" 6285249,\n \\"mcc\\" \\"5999\\",\n \\"source\\" \\"instore\\",\n \\"storedeviceid\\" \\"urn\ tid 0681b165 9f0a 30d2 86d1 xxxxxxxxxx\\",\n \\"storeid\\" \\"08f7ce0a bd07 4016 8a28 xxxxxxxx\\",\n \\"sourceapp\\" \\"co poynt services\\",\n \\"transmissionatlocal\\" \\"2022 10 17t21 59 00z\\"\n },\n \\"customeruserid\\" 6285323,\n \\"fundingsource\\" {\n \\"card\\" {\n \\"id\\" 36494537,\n \\"cardholderfirstname\\" \\"\\",\n \\"cardholderlastname\\" \\"\\",\n \\"cardholderfullname\\" \\"\\",\n \\"expirationmonth\\" 6,\n \\"expirationyear\\" 2027,\n \\"numberfirst6\\" \\"426684\\",\n \\"numberlast4\\" \\"6346\\",\n \\"numbermasked\\" \\"426684 6346\\",\n \\"status\\" \\"active\\",\n \\"type\\" \\"visa\\"\n },\n \\"cardtoken\\" \\"\\",\n \\"debit\\" false,\n \\"entrydetails\\" {\n \\"customerpresencestatus\\" \\"present\\",\n \\"entrymode\\" \\"contactless integrated circuit card\\"\n },\n \\"type\\" \\"credit debit\\"\n },\n \\"links\\" null,\n \\"notes\\" \\"notes\\",\n \\"processorresponse\\" {\n \\"acquirer\\" \\"poynt\\",\n \\"approvedamount\\" 0,\n \\"approvalcode\\" \\"\\",\n \\"processor\\" \\"elavon\\",\n \\"retrievalrefnum\\" \\"\\",\n \\"status\\" \\"failure\\",\n \\"statuscode\\" \\"nd\\",\n \\"statusmessage\\" \\"serv not allowed\\",\n \\"transactionid\\" \\"\\"\n },\n \\"receiptemailaddress\\" \\"\\",\n \\"references\\" \[\n {\n \\"id\\" \\"634dd01ffa81ffbf14b00564\\",\n \\"customtype\\" \\"referenceid\\",\n \\"type\\" \\"custom\\"\n }\n ],\n \\"reversalvoid\\" false,\n \\"settled\\" false,\n \\"status\\" \\"declined\\",\n \\"voided\\" false,\n \\"createdat\\" \\"2022 10 17t21 59 00z\\",\n \\"updatedat\\" \\"2022 10 17t21 59 00z\\"\n },\n ],\n \\"count\\" 1\n}", "language" "202", "customlabel" "" }, { "id" "3n28nisxww9efbub4rili", "code" "{\\"code\\" 0,\\"message\\" \\"you must send a key\\",\\"error\\" {}}", "language" "500", "customlabel" "" } ], "selectedlanguageid" "wrn 6rccc4juamwi2xt5j" }, "examples" { "languages" \[ { "id" "zlncjlhmvwdlkdeeef0c ", "code" "", "language" "none", "customlabel" "" }, { "id" "zvezmdu3mvjsd9i6wcpko", "code" "curl location request get 'https //process moolahpay cc/api/transactions?startat=string\&startoffset=integer\&endat=string\&limit=integer\&cardnumberlast4=string\&transactionids=array\&authonly=boolean\&unsettledonly=string' \\\\\n header 'accept application/json' \\\\\n header 'authorization string'", "language" "curl", "customlabel" "" }, { "id" "jzzdvaxonuqr1am7ovbkn", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //process moolahpay cc/api/transactions?startat=string\&startoffset=integer\&endat=string\&limit=integer\&cardnumberlast4=string\&transactionids=array\&authonly=boolean\&unsettledonly=string',\n 'headers' {\n 'accept' 'application/json',\n 'authorization' 'string'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "language" "nodejs", "customlabel" "" }, { "id" "xtkqmtk9y vqhb1xzyz81", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //process moolahpay cc/api/transactions?startat=string\&startoffset=integer\&endat=string\&limit=integer\&cardnumberlast4=string\&transactionids=array\&authonly=boolean\&unsettledonly=string\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "language" "javascript", "customlabel" "" }, { "id" "meqkh5hmcrrufcrtmp5 m", "code" "import requests\n\nurl = \\"https //process moolahpay cc/api/transactions?startat=string\&startoffset=integer\&endat=string\&limit=integer\&cardnumberlast4=string\&transactionids=array\&authonly=boolean\&unsettledonly=string\\"\n\npayload={}\nheaders = {\n 'accept' 'application/json',\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "language" "python", "customlabel" "" }, { "id" "nf6gvhxtgwkydkkzcpj ", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //process moolahpay cc/api/transactions?startat=string\&startoffset=integer\&endat=string\&limit=integer\&cardnumberlast4=string\&transactionids=array\&authonly=boolean\&unsettledonly=string\\")\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\[\\"authorization\\"] = \\"string\\"\n\nresponse = https request(request)\nputs response read body\n", "language" "ruby", "customlabel" "" } ], "selectedlanguageid" "zlncjlhmvwdlkdeeef0c " }, "description" "retrieves a list of transactions based on the query parameters", "currentnewparameter" { "label" "query parameter", "value" "queryparameters" } }