מבני תגובה
האובייקטים האחידים. שמות השדות זהים לכל ספק; שדה יכול להיות null.
CanonicalGame#
מוחזר מ-GET /api/v1/games.
{
"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 מתקבל מערך של מפתחות ספק.
{
"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 שלכם בתעבורה חיה. בקשות הולידטור משתמשות בשמות הישנים. אילו שדות מלאים תלוי בספק, ראו שדות לפי ספק.
{
"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 |
SOFTGAMING | UserLogin, TID, betAmount / winAmount, Currency (ב-balance בלבד) |
ALGNET | userKey, 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, ראו שגיאות.
{
"errorCode": "INVALID_REQUEST",
"message": "gameId must be a numeric string",
"provider": "PRAGMATIC_PLAY" // optional
}שאלות על האינטגרציה?כתבו לנו עם שם החשבון, ואם יש גם sessionId או transactionId. integration@agixx.net