Lookup By Value
Search records by numeric, account-backed, or secret-backed values.
Request Body
{
"searchType": "NUMBER",
"value": "451",
"notifyCommunityUserId": "player-1234",
"types": [12]
}Example Request
-- luarocks install sonoran.lua
local Sonoran = require("sonoran")
local sonoran = Sonoran.createClient({
product = Sonoran.productEnums.CAD,
communityId = "YOUR_COMMUNITY_ID",
apiKey = "YOUR_API_KEY",
defaultServerId = 1
})
local response = sonoran.cad:lookupByValueV2({
searchType = 'plate',
value = 'ABC123',
types = {1},
})
-- Inspect response.success, response.data, or response.reason as needed.
print(response.success)// npm install @sonoransoftware/sonoran.js
const Sonoran = require('@sonoransoftware/sonoran.js');
(async () => {
const instance = new Sonoran.Instance({
communityId: 'YOUR_COMMUNITY_ID',
apiKey: 'YOUR_API_KEY',
product: Sonoran.productEnums.CAD,
serverId: 1,
});
const response = await instance.cad.lookupByValueV2({
searchType: 'plate',
value: 'ABC123',
types: [1],
});
console.log(response);
})();Response
Last updated
Was this helpful?

