Vendor Prepayment Application

After you make a prepayment to a vendor, you must apply the prepayment against the vendor bills. A vendor prepayment application is a posting transaction that impacts the general ledger. The Prepayment account is credited, offsetting the Accounts Payable account. The application decreases the total amount you must pay to your vendor.

For information about applying vendor prepayments in the UI, see Vendor Prepayment Application.

NetSuite exposes the vendor prepayment application record to REST web services. This record is not a subrecord and does not contain subrecords.

The REST API Browser includes information about the field names and field types of the vendor prepayment application record. It also includes the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s vendorPrepaymentApplication reference page.

For information about using the REST API Browser, see The REST API Browser.

Record ID

The record ID for a vendor prepayment application REST record is vendorprepaymentapplication.

Prerequisite

To use the vendor prepayment application REST record, you must have the Vendor Prepayments feature enabled, and a default vendor prepayment account set. This account is what NetSuite selects by default when entering a new vendor prepayment transaction.

Exception

On the vendor prepayment application record, the Bills subtab is not accessible through REST web services.

Code Sample

The following example shows how to create a vendor prepayment application by transforming a vendor prepayment into a vendor prepayment application. This transformation process applies the vendor prepayment.

            POST {{REST_SERVICES}}/record/v1/vendorPrepayment/{{vendorPrepaymentId}}/!transform/vendorPrepaymentApplication Body:
{ "bill": { "bills": [{ "line": {{lineId}}, "apply": true }] }
} 

          

Related Topics:

REST Web Services Supported Records
SuiteTalk REST Web Services Overview and Setup
Working with Records
NetSuite Record Structure
The REST API Browser

General Notices