Vendor Prepayment

A vendor prepayment is a posting transaction that impacts the general ledger without offsetting the accounts payables account. When the vendor prepayment is applied, the accounts payables account is offset. Vendor prepayments record and track payments to vendors before they accept a purchase order for a good or service. You can apply these prepayment amounts against open bills for the vendor.

For information about working with vendor prepayments in the UI, see Entering Vendor Prepayments.

NetSuite exposes the vendor prepayment 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 record. It also includes information about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s vendor prepayment reference page.

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

Note:

REST web services do not support legacy tax features. To work with taxation through REST web services, you must have the SuiteTax feature enabled. For more information about using SuiteTax, see SuiteTax.

Record ID

The record ID for a vendor prepayment REST record is vendorprepayment.

Prerequisites

To use the vendor prepayment REST record, you must have the Vendor Prepayments feature enabled, and a default vendor prepayment account set. The account can be a new or existing account that is an Other Current Asset type. This is the account that NetSuite selects by default when entering a new vendor prepayment transaction.

Code Sample

The following code sample shows how to create a vendor prepayment record:

            POST {{REST_SERVICES}}/record/v1/vendorPrepayment Body:
{ "entity": { "id": {{entityId}} }, "account": { "id": {{accountId}} }, "payment": amount
} 

          

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