This API fetches all profiles from the Klaviyo Account. Method: Get Endpoint: https://a.klaviyo.com/api/profiles/ Profiles can be sorted by the following fields in ascending and descending order: id, created, updated, email, subscriptions.email.marketing.suppression.timestamp, subscriptions.email.marketing.list_suppressions.timestamp curl –request GET –url ‘https://a.klaviyo.com/api/profiles/?page[size]=20’ –header ‘Authorization: Klaviyo-API-Key your-private-api-key’ –header ‘accept: application/json’ –header ‘revision: 2024-06-15’
Category: NS Integration
All articles / code related to Netsuite integration
Klaviyo API for get all Events
This API used to get all events in a Klaviyo account Method: get Endpoint: https://a.klaviyo.com/api/events/ curl –request GET –url https://a.klaviyo.com/api/events/ –header ‘Authorization: Klaviyo-API-Key your-private-api-key’ –header ‘accept: application/json’ –header ‘revision: 2024-06-15’ Note: Returns a maximum of 200 events per page.
Klaviyo API for Creating Profile
The API used to create a new profile Method: POST Endpoint: https://a.klaviyo.com/api/profiles/ curl –request POST –url https://a.klaviyo.com/api/profiles/ –header ‘Authorization: Klaviyo-API-Key your-private-api-key’ –header ‘accept: application/json’ –header ‘content-type: application/json’ –header ‘revision: 2024-06-15’ –data ‘ { “data”: { “type”: “profile”, “attributes”: { “email”: “sarah.mason@klaviyo-demo.com”, “phone_number”: “+15005550006”, “first_name”: “Sarah”, “last_name”: “Mason”, “organization”: “Example Corporation”, “title”: “Regional Manager”, “image”: “https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg”,… Continue reading Klaviyo API for Creating Profile
Klaviyo API for creating Event
This API is used to create a new event to track a profile’s activity. Note that this endpoint allows you to create a new profile or update an existing profile’s properties. Method: Post Endpoint: https://a.klaviyo.com/api/events/ curl –request POST –url https://a.klaviyo.com/api/events/ –header ‘Authorization: Klaviyo-API-Key your-private-api-key’ –header ‘accept: application/json’ –header ‘content-type: application/json’ –header ‘revision: 2024-06-15’ –data ‘… Continue reading Klaviyo API for creating Event
API 5xx Status Codes (Server Error)
Different server errors occur while sending API calls 500 Internal Server Error : The server encountered an unexpected condition that prevented it from fulfilling the request. 501 Not Implemented : The HTTP method is not supported by the server and cannot be handled. 502 Bad Gateway : The server got an invalid response while working… Continue reading API 5xx Status Codes (Server Error)
Use Role with Web Service Only to Login to RESTlet Throws LOGIN_REQD Error
Scenario Use Role with Web Service Only to Login to RESTlet Throws LOGIN_REQD Error Solution There are two (2) possible solutions: Create a new role for Token-based Authentication RESTlet request Uncheck the Web Service Only role checkbox from current role
SuiteScript 1.0 > Make Checkbox Mandatory on Online Customer Form Using Script
Scenario Customer wants to validate a checkbox field on the Online Customer Form (i.e., Mandatory agreement checkbox). Currently, adding a custom checkbox in the customer form even if Mandatory field is enabled wouldn’t verify if the value is checked. Solution You can follow the steps below in order to validate the checkbox via script: Step 1 Create a… Continue reading SuiteScript 1.0 > Make Checkbox Mandatory on Online Customer Form Using Script
CommitLine is not Working when Setting the Line Item in Sublist
if we are trying to set the multiple line item value in Client Script (PageInt) we might face the issue like commitLine is not working So to solve that issue we need to use the setTimeOut function Example function getSalesOrderLineItems(salesOrderId) { let salesOrderFullRecord = record.load({ … Continue reading CommitLine is not Working when Setting the Line Item in Sublist
Set-Up DocuSign for NetSuite
DocuSign Signature for NetSuite can only be installed by NetSuite administrators. If you have a DocuSign account, you must enable Account-Wide and Send On Behalf Of rights (API) features for your account. Install DocuSign for NetSuite (Bundle ID 351444). After Installing, the DocuSign will be available at the right top corner of the dashboard: select… Continue reading Set-Up DocuSign for NetSuite
how to show all system notes when a record is created- Log all changes in system notes
While creating a record, Only the record created is shown under System notes in System Information. If we want to show all the changes that happened, when a record is created, we can Uncheck the checkbox “Log System Notes on Update Only” in General preference: Setup –> Company –> General Preferences Uncheck the Checkbox ‘Log… Continue reading how to show all system notes when a record is created- Log all changes in system notes