Offramp API Integration.
Create Order Offramp
Update Transaction Hash
1 min
tab examples url https stg api onmeta in v1 offramp orders txnhash name update transaction hash method post 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 kind required name orderid type string description order id from create order kind required name txnhash type string children description transaction hash for success transfer of tokens to our wallet formdataparameters results languages id grb8ypsz0ulsuhahtvwdb code n success true n error n language 200 customlabel id etvmteoetfktoff1aigif code n success false n error n code 400 n message bad request n n language 400 customlabel id hdn137wjlaussptu4exzf code n success false n error n code 401 n message unauthorized to access n n language 401 customlabel id hikdwbsp5vo6wugqjq140 code n success false n error n code 409 n message duplicate transaction hash n n language 409 customlabel id g7tg dw5wkicyqr3joy3d code n success false n error n code 500 n message invalid hash argument value value 3525235 code invalid argument version providers 5 6 8 n n language 500 customlabel selectedlanguageid g7tg dw5wkicyqr3joy3d examples languages id fayn1nsqf2ny ph0qa53j code curl location request post https stg api onmeta in v1 offramp orders txnhash n header accept application json n header x api key string n header authorization string n data raw orderid string txnhash string language curl customlabel id s8 fygfpwl8u8x rgz 4i code var request require request ; nvar options n method post n url https stg api onmeta in v1 offramp orders txnhash n headers n accept application json n x api key string n authorization string n n body orderid string txnhash 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 pjb9avuplr3lidt1heb8c code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append x api key string ; nmyheaders append authorization string ; n nvar raw orderid string txnhash string ; n nvar requestoptions n method post n headers myheaders n body raw n redirect follow n ; n nfetch https stg api onmeta in v1 offramp orders txnhash requestoptions n then response response text n then result console log result n catch error console log error error ; language javascript customlabel id 8zawcglm9zcbfoofaiovu code import requests n nurl https stg api onmeta in v1 offramp orders txnhash n npayload orderid string txnhash string nheaders n accept application json n x api key string n authorization string n n nresponse requests request post url headers headers data payload n nprint response text n language python customlabel id 7goxn8rdcyrcki47fjovi code require uri nrequire net http n nurl uri https stg api onmeta in v1 offramp orders txnhash 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 x api key string nrequest authorization string nrequest body orderid string txnhash string n nresponse https request request nputs response read body n language ruby customlabel selectedlanguageid fayn1nsqf2ny ph0qa53j description update transaction hash for the offramp order so that order will be completed and fiat payout will be processed currentnewparameter label body parameter value bodydataparameters sample request body { "orderid" "13132242422424", "txnhash" "0xe13r11922664140998823t712t3781t7" }