Netsuite: How to mark a vendor bill as paid via the SOAP api?

809 Views Asked by At

In the UI, there's a button "Make payment" on the VendorBill that creates a VendorPayment and marks the status of the VendorBill to "Paid In Full". How do I reproduce that programmatically?

1

There are 1 best solutions below

0
On

Using the soap api, use the initialize operation to transform the vendor bill to a vendor payment. Fill in any other fields as appropriate. The fields to pay attention to will be the applyList and making sure that the vendor payment is only applied to those vendor bills that you want to mark as paid. Then, save the record using the add operation, and that will create the vendor payment in netsuite and apply the payment towards the vendor bill.