Vendor Credit

A vendor credit transaction creates a credit from a vendor that can be applied to a payables account. For example, a vendor credit transaction may occur when items are returned to a vendor or when a discount is negotiated with a vendor.

For information about working with vendor credits in the UI, see Vendor Credits.

NetSuite exposes the vendor credit record to REST web services. This record contains the subrecord billingAddress.

The REST API Browser includes information about the field names and field types of the vendor credit 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 credit reference page.

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

Record ID

The record ID for a vendor credit REST record is vendorcredit.

Code Sample

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

            POST {{REST_SERVICES}}/record/v1/vendorCredit Body:
{ "entity": { "id": {{vendorId}} }, "item": { "items": [{ "item": { "id": {{itemId}} }, "rate": 10, "location":{ "id": {{locationId}} } }] }
} 

          

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