Gift Certificate Item

NetSuite exposes the gift certificate item record to REST web services.

You can create gift certificate items that allow customers to purchase store credit they can send to someone as a gift. The recipient uses the gift certificate code when placing an order through your Web store or entering a transaction with a sales representative. You can set a preference in NetSuite for how you want to generate the gift certificate codes: you can create them yourself, or use a random hash code automatically generated by the system.

Gift certificate codes are not active until the order used to purchase the gift certificate is billed.

For more information, see Gift Certificates.

Record ID

The record ID for the gift certificate item REST record is giftCertificateItem.

Prerequisite

Before you work with gift certificate items, enable the Gift Certificates feature.

Note:

The gift certificate item record contains certain tax fields. If the SuiteTax feature is not enabled, you cannot create a gift certificate because of the required taxSchedule field that is annotated as a legacy tax field.

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

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

Code Samples

Creating a Gift Certificate Item

              POST https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/giftcertificateitem
{ "itemId": "TEST", "liabilityaccount": {"id": 25}
} 

            

Updating a Gift Certificate Item

              PATCH https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/giftcertificateitem/{id}
{ "itemId": "TEST UPDATED", "upcCode": "123456"
} 

            

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