I am using Netsuite SuiteTalk web service since 3-4 months I felt comfortable to use it. now, I have issues I want to create sales order/invoice in NetSuite using SuiteTalk but I am unable to do that because everytime I am getting an error of credit limit i.e customer invoice amount is more than their credit limit. it's O.K, but as long as I am sending payments too with the same web service request.
I would appreciate if someone or Netsuite people can help me to bypass credit limit while creating an invoice.
please have a look suite talk c# code.
Invoice inv = new Invoice(); inv.entity = new RecordRef() { internalId = 25, type = RecordType.customer, typeSpecified = true }; inv.tranDate = new DateTime(2018,9,18); inv.memo = "Test Memo"; inv.department = new RecordRef() { internalId = 10, type = RecordType.department, typeSpecified = true }; inv.location = new RecordRef() { internalId = 16, type = RecordType.location, typeSpecified = true }; InvoiceItemList itemList = new InvoiceItemList(); InvoiceItem[] items = new InvoiceItem[1]; // invoice items InvoiceItem item = new InvoiceItem(); item.item = new RecordRef() { internalId = 12510 }; item.rate = 2.65; item.amount = 265.00; item.quantity = 100; items[0] = item; itemList.item = items; inv.itemList = itemList; inv.amountPaid = 180; inv.amountPaidSpecified = true; inv.onCreditHold = "true"; WriteResponse writeRes = ns.Service.add(inv);