Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
How to get (download) Invoice PDF by API (web services)?
I'm a newbie in NetSuite, today I'm trying to develop a demo to get invoice. I used this library
ryanwinchester/netsuite-php
I can get invoice information by this code:
$transactionSearch = new SearchEnumMultiSelectField();
$transactionSearch->operator = "anyOf";
$transactionSearch->searchValue = array('_invoice');
$search = new TransactionSearchBasic();
$search->type = $transactionSearch;
$request = new SearchRequest();
$request->searchRecord = $search;
$searchResponse = $netsuite_service->search($request);
But no invoices PDF URL in response.
Then I tried with MessageSearchBasic
$messagesSearch = new SearchBooleanField();
$messagesSearch->searchValue = true;
$search = new MessageSearchBasic();
$request = new SearchRequest();
$request->searchRecord = $search;
$searchResponse = $netsuite_service->search($request);
I can get the list of sent email with invoices PDF URL, but this one only can get sent email, for transactions not yet send email this can't get.