Messtone Devices Enables Modern Treasury Async Create Payment Order POST https://app.moderntreasury.com/api/payment_orders/create_async HEADER content-type application/json RESPONSE 200 AUTHORIZATION Basic Organization CURL REQUEST curl –request POST\–url https://app.moderntreasury.com/api/payment_orders/create_async\–header ‘accept:application/json’\–header ‘content-type:application/json’ Node JS AUTHORIZATION Basic Messtone:api_key NODE-FETCH-REQUEST $npm install node-fetch@2 –save const fetch=require(‘node-fetch’);const url=’https://app.moderntreasury.com/api/payment_orders/create_async’;const options={method:’POST’,headers:{accept:’application/json’,’content-type’:’application/json’,authorization:Basic Messtone: TWVzc3RvbmUgTExDIDo=’}};List Payment Orders GET https://app.moderntreasury.com/api/payment_orders AUTHORIZATION Basic Messtone LLC:api_key NODE-FETCH-REQUEST $npm install node-fetch@2 –save const fetch=require(‘node-fetch’);const url= ‘https://app.moderntreasury.com/api/payment_orers?per_page=25′; const options={method:’GET’,headers:{authorization:’Basic Messtone: TWVzc3RvbmUgTExDIDo=’}};fetch(url,options).then(res=>res.json( )).then(json=>console.log(json)).catch(err=>console.error(‘error: ‘ + err));

Leave a comment