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.
Use the credit card on file for SO
Hello forum, we are trying to create the SO which will be paid by credit card chosen out of all the credit cards on file for specific customer.
To get list of credit cards on file we are loading customer record:
nlapiLoadRecord("customer", 281);
But in customer object the array we are getting for credit cards for some reason doesn't show their internalIDs:
--------------------------
"creditcards": [
{
"cardstate": {
"name": "Expired",
"internalid": "EXPIRED"
},
"ccdefault": false,
"ccexpiredate": "10/2009",
"ccnumber": "************8527",
"paymentmethod": {
"name": "Master Card",
"internalid": "4"
}
},
{
"cardstate": {
"name": "Unknown",
"internalid": "UNKNOWN"
},
"ccdefault": false,
"ccexpiredate": "11/2016",
"ccnumber": "************2300",
"paymentmethod": {
"name": "Master Card",
"internalid": "4"
}
},
{
"cardstate": {
"name": "Unknown",
"internalid": "UNKNOWN"
},
"ccdefault": true,
"ccexpiredate": "01/2016",