1. Optimize RESTlet Performance
- Use RESTlets for custom business logic or complex workflows.
- Minimize response payloads by:
- Returning only necessary fields.
- Structuring responses for lightweight processing.
2. Use JSON for Payloads
Both SuiteTalk REST and RESTlets use JSON for requests and responses. Ensure payloads conform to the correct structure:
- Example payload for creating a customer via SuiteTalk REST:
json
Copy code
{
"entityId": "Customer001",
"email": "customer@example.com",
"subsidiary": { "id": "1" }
}
3. Explore the Swagger/OpenAPI Documentation
- SuiteTalk REST Web Services provide OpenAPI documentation.
- Access it via the NetSuite UI under Setup > Integration > Web Services Overview > REST Web Services Reference.
- Use tools like Postman or Swagger UI to test API endpoints.
4. Leverage Record Metadata
- Use the
metadata-catalogendpoint in SuiteTalk REST to discover fields and supported operations for a record. - Example:
http Copy code GET https://<account_id>.suitetalk.api.netsuite.com/v1/metadata-catalog/record/customer
5. Test in Sandbox First
- Develop and test all integrations in a Sandbox environment.
- Use the same API limits as Production for accurate testing.