Partner

A partner record exposes a partner to REST web services.

For more information about partners and how they function in the user interface, see Partners.

To access this record in NetSuite, go to Lists > Relationships > Partners.

This record:

The following sublists are not accessible through REST web services:

The REST API Browser includes information about the field names and field types of the partner record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s partner 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 the partner REST record is partner.

Prerequisites

You must enable the CRM feature before you can use this record through REST web services.

Code Sample

The following samples show common use cases for a partner record. The example ID is 5.

Retrieving Partner Metadata

              GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/metadata-catalog/partner 

            

Retrieving a Partner Using a GET Request

              GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/partner/5 

            

Creating a Partner Using a POST Request

              POST https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/partner
{ "partnerCode": "EXAMPLE COMPANY", "companyName": "Example Company", "subsidiary": "3"
} 

            

Updating a Partner Using a PATCH Request

              PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/partner/5
{ "companyName": "Updated Company Name"
} 

            

Deleting a Partner Using a DELETE Request

              DELETE https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/partner/5 

            

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