Seamless API doc Custom

List Games GET

Return the ranked game list for a given provider. Used to render the lobby for Package S members.

Endpoint

http
GET {{ API_URL }}/seamless/games?productId=PGSOFTTHAI

Authorization

HTTP Basic Authentication. The Authorization header value is the Base64 encoding of {agent_username}:{api_key}.

http
Authorization: Basic Base64(agent_username:api_key)

Query parameters

NameTypeRequiredDescription
productIdstringRequiredProvider code from ofb_game_provider (e.g. PGSOFTTHAI). Returns 400 if omitted, 404 if the provider is unknown.

Response

On success the service returns 200 OK with a list of games ordered by rank ascending.

FieldTypeDescription
reqIdstring (uuid)Per-request transaction id.
codeintegerBusiness status code. 0 on success.
messagestringHuman-readable status. "Success" on success.
data.gamesarray of objectRanked game list (see fields below).

Game object

FieldTypeDescription
namestring?Game display name. Omitted when the underlying record has no name.
categorystringGame category: SLOT, FISHING, LIVECASINO, ...
typestringSame value as category. Kept for backwards compatibility.
codestringGame code from ofb_game (e.g. PGSOFTTHAI_SLOT_GemstonesGold).
imgstringDefault icon URL.
rankinteger1-indexed position in the sorted list (lower = higher priority).
providerCodestring?Provider code from ofb_game_provider (e.g. PGSOFTTHAI).
localeobject?Localized display names. For PGSOFTTHAI only th is populated; for every other provider only en is populated.
locale.enstring?English game name.
locale.thstring?Thai game name.
locale.cnstring?Simplified Chinese game name.

Example success response

json
{
  "reqId": "45b2813e-9d38-4334-9f50-176a70938ce2",
  "code": 0,
  "message": "Success",
  "data": {
    "games": [
      {
        "name": "เพชรทอง",
        "category": "SLOT",
        "type": "SLOT",
        "code": "PGSOFTTHAI_SLOT_GemstonesGold",
        "img": "https://cdn.example.com/game.png",
        "rank": 1,
        "providerCode": "PGSOFTTHAI",
        "locale": {
          "th": "เพชรทอง"
        }
      },
      {
        "name": "Gemstones Gold",
        "category": "SLOT",
        "type": "SLOT",
        "code": "PGSOFT2_SLOT_GemstonesGold",
        "img": "https://cdn.example.com/game.png",
        "rank": 2,
        "providerCode": "PGSOFT2",
        "locale": {
          "en": "Gemstones Gold"
        }
      }
    ]
  }
}

Errors

HTTPReason
400Missing productId query parameter.
401Missing/invalid Authorization header, unknown agent, or invalid API key.
404The given productId is not registered in ofb_game_provider.