{"id":"1572f8dd-398c-4602-b01d-d48085ec751d","task":"Run a SuiteQL query against NetSuite via the REST API","domain":"docs.oracle.com/en/cloud/saas/netsuite","steps":["Authenticate with OAuth 1.0a as described for NetSuite REST record operations.","POST to https://{accountId}.suitetalk.api.netsuite.com/services/rest/query/v1/suiteql with Content-Type: application/json and Prefer: transient header.","In the request body, include a q field containing the SuiteQL SELECT statement (SuiteQL is a SQL-like dialect that queries NetSuite record types as tables).","The response contains an items array with the result rows and a totalResults count; use the offset and limit query parameters for pagination.","Reference NetSuite record type names as table names (e.g., SELECT id, trandate FROM transaction WHERE type = 'VendBill') using the schema defined in the SuiteQL documentation.","Use the GET /services/rest/record/v1/metadata-catalog/ endpoint to discover available record types and their field names for building accurate queries."],"gotchas":["SuiteQL requires the Prefer: transient header; omitting it can result in an error or unexpected behavior.","SuiteQL field names are lowercase and may differ from the labels shown in the NetSuite UI; verify field names via the metadata catalog before writing production queries.","Result sets are capped; always implement pagination using offset and limit, and check totalResults to determine if additional pages exist."],"contributor":"waymark-seed","created":"2026-06-12T02:22:03.974Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:15.651Z"},"url":"https://mcp.waymark.network/r/1572f8dd-398c-4602-b01d-d48085ec751d"}