API References
...
Invoices
Get Invoices by Customer IDs
1 min
code examples curl location globoff 'https //api nue io/invoices/?customerids=\[%22ids%22]\&customerids=array' \\ \ 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/invoices/?customerids=\[\\"ids\\"]\&customerids=array", 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/invoices/?customerids=\[\\"ids\\"]\&customerids=array") 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/invoices/?customerids=\[\\"ids\\"]\&customerids=array" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successful retrieval of customer invoices { "status" "", "data" \[ { "accountingstatus" "", "activatedbyid" "", "activatedtime" "", "amount" 0, "amountwithouttax" 0, "assets" \[ { "assetnumber" "", "assettype" "", "externalid" "", "externalname" "", "product" { "autorenew" false, "billingtiming" "", "bundletemplate" "", "carveseligible" false, "configurable" false, "defaultrenewalterm" 0, "defaultsubscriptionterm" 0, "description" "", "evergreen" false, "freetrialtype" "", "id" "", "imageurl" "", "lastpublishedbyid" "", "lastpublisheddate" "", "name" "", "pricebookentries" \[ { "active" false, "billingtiming" "", "id" "", "listprice" 0, "pricebookid" "", "pricingattributes" \[ {} ], "recommended" false, "uom" { "decimalscale" 0, "id" "", "name" "", "quantitydimension" "", "roundingmode" "" } } ], "pricemodel" "", "productcategory" "", "productfeatures" \[ {} ], "productoptions" \[ {} ], "productpricetags" \[ {} ], "publishstatus" "", "recordtype" "", "showincludedproductoptions" false, "sku" "", "soldindependently" false, "startdate" "", "status" "", "uom" {} }, "productid" "" } ], "balance" 0, "billtocontactid" "", "createdbyid" "", "createddate" "", "customerid" "", "duedate" "", "enddate" "", "externalinvoiceid" "", "id" "", "invoicedate" "", "iscatchup" false, "lastmodifiedbyid" "", "lastmodifieddate" "", "name" "", "orders" \[ {} ], "paymentdetails" "", "paymenthostedurl" "", "paymentstatus" "", "podates" "", "ponumbers" "", "salesaccountid" "", "shippingandhandling" 0, "source" "", "startdate" "", "status" "", "targetdate" "", "taxamount" 0, "taxstatus" "" } ], "warnings" \[ {} ] }