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.

Usage Notes

Starting in 2026.1, when you set the grossAmt field for a taxable transaction line through REST web services, NetSuite recalculates the line amount field based on the applicable tax code, tax rate, and tax rounding rules. This behavior matches the NetSuite UI. In previous releases, REST web services ignored submitted grossAmt values, so setting this field didn't recalculate the line amount field.

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:

General Notices