דלגו לתוכן

מבני תגובה

האובייקטים האחידים. שמות השדות זהים לכל ספק; שדה יכול להיות null.

בעמוד זה

CanonicalGame#

מוחזר מ-GET /api/v1/games.

JSONC
{
  "id":            "2376",              // pass as gameId to /api/v1/launch
  "name":          "Gates of Olympus",
  "provider":      "Pragmatic Play",    // studio name
  "providerCode":  "PRAGMATIC_PLAY",    // provider key
  "image":         "https://.../icon.png",
  "thumbnail":     null,
  "symbol":        "vs20olympgate",
  "minBet":        1,
  "maxBet":        1250,
  "category":      "slots",             // free text, see below
  "tags":          ["Popular"],
  "sort":          101063,              // higher = show first
  "branded":       false,
  "exclusive":     false,
  "isVirtual":     false,
  "hasTables":     null,
  "rtp":           96.5,
  "volatility":    "High",              // Low | Medium | High
  "maxMultiplier": 5000,
  "hasDemo":       true,
  "hasFreespins":  true,
  "hasBonusBuy":   false,
  "megaways":      false,
  "aspectRatio":   "16:9",
  "isMobile":      true,
  "releasedAt":    "2021-02-13",
  "hasReplay":     null,
  "hasFreeChips":  null,
  "hasLobby":      null,
  "technology":    "HTML5",
  "raw":           {}                   // source object, not stable: do not depend on it
}
  • כל שדה חוץ מ-id, name, provider ו-providerCode יכול להיות null.
  • category הוא טקסט חופשי. הערכים slots, live, table, crash, virtual, scratch ו-lottery קיימים רק ב-SOFTGAMING. ב-ALGNET מוחזרים שמות כמו Live Roulette; ב-GAME_AGGREGATOR מוחזר הסוג של האולפן.
  • hasDemo ו-rtp הם null במשחקי GAME_AGGREGATOR, למרות שהשקת דמו עובדת.
  • raw הוא אובייקט המקור של השורה. ב-GAME_AGGREGATOR, SOFTGAMING ו-ALGNET הוא כבר אחרי מיפוי שלנו. הוא עשוי להשתנות ללא הודעה.

CanonicalProvider#

מוחזר מ-GET /api/v1/providers?detailed=1. בלי detailed מתקבל מערך של מפתחות ספק.

JSONC
{
  "name":         "SOFTGAMING",         // use this in "provider" on /api/v1/launch
  "displayName":  "SoftGaming",
  "group":        "SoftGaming",         // informational
  "integration":  "SOFTGAMING",
  "gameCount":    0,                    // games open to your account right now
  "subProviders": ["Evolution", "..."], // GAME_AGGREGATOR and SOFTGAMING; null for the others
  "logoUrl":      "https://..."         // absolute, or a path on our site that may not exist: use a fallback
}

CanonicalCallbackPayload#

נשלח ל-callbackUrl שלכם בתעבורה חיה. בקשות הולידטור משתמשות בשמות הישנים. אילו שדות מלאים תלוי בספק, ראו שדות לפי ספק.

JSONC
{
  "action":           "bet",               // bet | win | betwin | rollback | balance | auth
  "provider":         "PRAGMATIC_PLAY",    // provider key
  "playerId":         "player_123",        // YOUR player id from /api/v1/launch
  "providerPlayerId": "a81f3c09e2d4b7",    // the provider's player id, or null (informational)
  "sessionId":        "clxyz1234567890",
  "roundId":          "round_001",         // or null
  "transactionId":    "tx_456",            // or null (rollback of the GitSlotPark family)
  "refTransactionId": "tx_orig",           // or null: the transaction this rollback / win refers to
  "gameId":           "2376",              // or null; ALGNET may send a number
  "amount":           "-10.00",            // or null; negative on some bets
  "bet":              "10.00",             // or null, decimal string
  "win":              "0.00",              // or null, decimal string
  "currency":         "TRY",               // or null
  "replayUrl":        "https://...",       // ALGNET bet / win / rollback only, when available
  "freespinId":       "8f3c2a..."          // free-spin traffic only
  // + legacy provider fields, removed after 2027-04-20
}

שדות ישנים#

הגוף נושא גם שדות ישנים לפי ספק. הם מתוכננים להסרה אחרי 2027-04-20; קראו את השדות האחידים במקומם.

ספקשדות ישנים
כולם_originalPlayerId, _sessionId
SOFTGAMINGUserLogin, TID, betAmount / winAmount, Currency (ב-balance בלבד)
ALGNETuserKey, betAmount / winAmount
GAME_AGGREGATORגוף הבקשה של הספק: player_id, transaction_id, bet_transaction_id, round_id, game_uuid, rollback_transactions ועוד
PRAGMATIC_PLAY, PG_SOFT, AMATIC, AMUSNETגוף הבקשה של הספק: userID, transactionID, refTransactionID, roundID, betAmount, winAmount ועוד

ל-rollback_transactions עדיין אין תחליף אחיד, לכן המשיכו לקרוא אותו.

CanonicalError#

נמצא תחת canonical ברוב תגובות ה-400, ראו שגיאות.

JSONC
{
  "errorCode": "INVALID_REQUEST",
  "message":   "gameId must be a numeric string",
  "provider":  "PRAGMATIC_PLAY"         // optional
}
שאלות על האינטגרציה?כתבו לנו עם שם החשבון, ואם יש גם sessionId או transactionId. integration@agixx.net
מבני תגובה - תיעוד API | AGIXX