Modules
Objects/Functions
SuiteScript 2.0
N/https/clientCertificate Module
Member Type:
Name
Method:
clientCertificate.post(options)
clientCertificate.get(options):
https.ClientResponse
clientCertificate.put(options):
https.ClientResponse
clientCertificate.delete(options):
https.ClientResponse
clientCertificate.request(options):
https.ClientResponse
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=N/https/clientCertificate Module
// Code Example 1
/**
* @NApiVersion 2.x
*/
require(['N/https/clientCertificate'],function (cert){
var url = "https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx";
var data = "CONS-CAD SP 47508411000156 ";
var key = "custcertificate1";
var headers = {
"Content-Type": "application/soap+xml"
};
var response = cert.post({
url: url,
certId: key,
body: data,
headers: headers
});
log.debug(response.body);
})
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1543986321.html