Onramp API Integration.
Orders
Fetch Users Order History
1 min
tab examples url https stg api onmeta in v1 orders skip name fetch users order history method get request pathparameters queryparameters headerparameters kind required name x api key type string children description api key from dashboard kind required name authorization type string children description bearer authtoken bodydataparameters formdataparameters results languages id cmsmzhp9rfy7u7flisuu code n success true n data n n orderid 634573f8b3661b3232dc87bad083 n status fiatpending n amount 100 n receiverwalletaddress 0x232424242424242 n buytokensymbol wmatic n buytokenaddress 0x9c3c9283d3e44854697cd22d3faa240cfb032889 n currency inr n currencysymbol n created at 2022 10 11t13 47 36 323z n source utr n chainid 80001 n paymentdetails n source utr n reference n n reason n txnhash 0x122 n n n language 200 customlabel id 9i6d0vy1hr48hrhgbprqm code n success false n error n code 401 n message unauthorized to access n n language 401 customlabel selectedlanguageid cmsmzhp9rfy7u7flisuu examples languages id rlkl4bnlhc1rgy3br8i7l code curl location g request get https stg api onmeta in v1 orders skip n header accept application json n header x api key string n header authorization string language curl customlabel id khiukpgrppgzvafrq594t code var request require request ; nvar options n method get n url https stg api onmeta in v1 orders skip n headers n accept application json n x api key string 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 upi0awvr 28jrp7xdyvhb code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append x api key string ; nmyheaders append authorization string ; n nvar requestoptions n method get n headers myheaders n redirect follow n ; n nfetch https stg api onmeta in v1 orders skip requestoptions n then response response text n then result console log result n catch error console log error error ; language javascript customlabel id x3cluc2b rnblm uuzzxa code import requests n nurl https stg api onmeta in v1 orders skip n npayload nheaders n accept application json n x api key string n authorization string n n nresponse requests request get url headers headers data payload n nprint response text n language python customlabel id wkbkp5ncxhmvs1phnngvo code require uri nrequire net http n nurl uri https stg api onmeta in v1 orders skip 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 x api key string nrequest authorization string n nresponse https request request nputs response read body n language ruby customlabel selectedlanguageid khiukpgrppgzvafrq594t description api returns 10 recent transactions of the user skip is used for pagination for fetching next 10 latest transactions value of skip value will be 1 n nfew important currentnewparameter label header parameter value headerparameters