API References
...
Customers
Fetch customers
1 min
code examples curl location 'https //api nue io/customers?customerids=string' \\ \ 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?customerids=string", 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?customerids=string") 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?customerids=string" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successfully retrieved customer information { "status" "", "data" \[ { "accountnumber" "", "accountsource" "", "annualrevenue" 0, "autorenew" "", "billcycleday" "", "billcyclestartmonth" "", "billingcity" "", "billingcountry" "", "billingpostalcode" "", "billingstate" "", "billingstreet" "", "billingprorationenabled" "", "companysize" "", "createdbyid" "", "createddate" "", "customersince" "", "description" "", "einvoicingendpointid" "", "einvoicingschemaid" "", "email" "", "entityid" "", "entityusecode" "", "fax" "", "funding" "", "id" "", "imagesignedurl" "", "industry" "", "invoicebalance" 0, "lastinvoicedate" "", "lastmodifiedbyid" "", "lastmodifieddate" "", "latestorderdate" "", "legalentityname" "", "name" "", "numberofemployees" 0, "orderprimarycontactid" "", "ownership" "", "parentcustomerid" "", "paymentmethod" "", "paymentmethods" \[ "" ], "paymentterm" "", "phone" "", "recordtype" "", "salesaccountid" "", "shippingcity" "", "shippingcountry" "", "shippingpostalcode" "", "shippingstate" "", "shippingstreet" "", "site" "", "taxexempt" "", "timezone" "", "todayarr" 0, "todaycmrr" 0, "todayrolluparr" 0, "todayrollupcmrr" 0, "totaltcv" 0, "type" "", "website" "" } ], "warnings" \[ { "code" "", "message" "" } ] }// bad request the request was malformed or contained invalid parameters { "status" "", "errortype" "", "errorcode" "", "message" "" }// unauthorized authentication information is missing or invalid {}// not found the requested resource was not found { "status" "", "errortype" "", "errorcode" "", "message" "" }