General Token Record Now Exposed via SuiteTalk REST API
The generaltoken record is now available through REST web services, enabling CRUD operations on non-card payment tokenization credentials via /services/rest/record/v1/generalToken.
What changed
NetSuite has exposed the generaltoken record to the REST web services API. General tokens represent credentials retained from processing alternative (non-card) payment methods — typically created automatically by gateway integrations during tokenization flows.
The record is not a subrecord and has no subrecords of its own.
Record details
- Record ID:
generaltoken - REST endpoint:
/services/rest/record/v1/generalToken - Supported operations: POST (create), PATCH (update) — check the REST API Browser for the full list of supported HTTP methods.
Key fields (from the code samples)
entity— reference to the customer record (by internal ID)isDefault— booleanpaymentMethod— reference by IDpreserveOnFile— boolean, controls whether the token is kept on filetoken— the token string itselftokenExpirationDate— formatYYYY-MMtokenFamily— reference by IDtokenNamespace— string identifier for the token namespacesupportedOperations.items— array of operation objects (e.g.,{"id": "CREDIT"})memo— free-text memo field
Code samples
Create a general token (POST):
POST /services/rest/record/v1/generalToken
Body includes entity, paymentMethod, token, tokenExpirationDate, tokenFamily, tokenNamespace, supportedOperations, and optional flags like isDefault and preserveOnFile.
Update a general token (PATCH):
PATCH /services/rest/record/v1/generalToken/<id>
Partial update — send only the fields you want to change (e.g., memo).
Prerequisites
- Enable the Payment Instruments feature.
- Enable the Credit Card Payments feature (required even though general tokens cover non-card methods).
What to do
- Feature check: Confirm both Payment Instruments and Credit Card Payments features are enabled in your account at Setup > Company > Enable Features.
- Review the REST API Browser: The release note is light on the full field list and supported HTTP methods. Consult the REST API Browser's
generaltokenreference page for the complete schema, required vs. optional fields, and any query parameters. - Integration updates: If you currently manage non-card payment tokens through SuiteScript or SOAP web services, you can now use the REST endpoint. Evaluate whether migrating token CRUD operations to REST simplifies your integration.
- SuiteScript interplay: The source does not clarify whether
generaltokenis also newly available viaN/recordor was already scriptable. Verify in your account by attemptingrecord.load({ type: 'generaltoken', id: <id> })if you need SuiteScript access alongside REST. - Security note: Token values are sensitive payment credentials. Ensure any integrations calling this endpoint use OAuth 2.0 or TBA with appropriately scoped roles, and avoid logging raw token strings.
Source: Oracle NetSuite Release Notes