API References
...
Credits
Fetch Credit Flows
1 min
code examples curl location globoff 'https //api nue io/customers/{customerid}/credit flows?page=1\&limit=100' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api nue io/customers/{customerid}/credit flows?page=1\&limit=100", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api nue io/customers/{customerid}/credit flows?page=1\&limit=100") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api nue io/customers/{customerid}/credit flows?page=1\&limit=100" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successfully retrieved credit flows { "status" "", "data" \[ { "id" "", "name" "", "accountpoolid" "", "assetnumber" "", "balance" 0, "transactionamount" 0, "transactiondate" "", "transactiontype" "", "transactionsource" "", "transactionsourceid" "", "recordtype" "", "creditid" "", "creditnumber" "", "creditstartdate" "", "creditenddate" "", "credittypeid" "", "currencyisocode" "", "customerid" "", "salesaccountid" "", "product" {}, "usage" {}, "createddate" "", "lastmodifieddate" "" } ], "warnings" \[ { "code" "", "message" "" } ], "pagination" { "page" 0, "limit" 0, "total" 0, "totalpages" 0, "hasnext" false, "hasprevious" false } }// unauthorized authentication information is missing or invalid {}// not found customer was not found {}