{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"bce6ab9e-50c6-4656-bd11-48ef78396ca6","name":"568Win Seamless Wallet API Document English Version","description":"## What is Seamless Wallet?\n\nSeamless wallet allows your players to play seamlessly across all of 568Win's products from the account and credit that they already registered on your site.  \nIf you are interested in this feature, please contact 568Win for further assistance.\n\n## How it works?\n\n### When a user place a bet\n\n- First, 568Win will check the balance on user account. 568Win will invoke the API request, and you should send the balance of the account back to 568Win. Please refer to [Get member balance](#4da769c9-2f5c-4fdd-96c1-72c3f19d1461)\n    \n- If user don't have enough amount of balance, 568Win will not accept the bet.  \n    If user has enough amount of balance to place bet, 568Win will inquire you to deduct the stake from user account. Please refer to [Deduct stake](#bd5281bc-839a-40e5-a6d5-a34206855e74)\n    \n\n### After the bet was accepted\n\n- 568Win will send the result of bet for you. Please refer to [Settle bet](#0b8e63e4-8901-4536-80c0-74c5a3f0ceca)  \n    If 568Win rollback the bet, 568Win will send rollback request to inform you. Please refer to [Rollback](#1a648877-46a5-4c05-835c-6d2dfdba6a82)  \n    If 568Win canceled the bet, 568Win will send cancel request to inform you. Please refer to [Cancel bet](#508fd45b-b3b5-4d94-8682-956f461010bc)\n    \n\n## Company Key Policy\n\n- The Company Key is a security credential required for accessing 568Win system. To ensure security, each key has an expiration date, after which it will no longer work.\n    \n- You can choose the key’s expiration period. In the back office system, under the page **7.3 System Parameter**, choose the key validity period of either 30 or 90 days.\n    \n- To maintain continuous system access, you must generate a new key before your current one expires. The new key can be created at any time through the back office 3.4 Company Key or [API 7.3 Regenerate Company Key](https://documenter.getpostman.com/view/39587621/2sAYdbPt8e#b30ec8e7-0d95-470a-8661-5deb77579399).\n    \n\n#### For all the APIs below, should use Company Key ApiType: SeamlessWallet\n\n### Seamless Wallet API Testing Web Site\n\nYou can follow these steps below, and use [this web site](http://swtest-demo.568win.com/) to test your seamless wallet.\n\n<img src=\"https://content.pstmn.io/f9c0e27c-f5a0-43d7-825d-c445db86a98e/aW1hZ2UucG5n\" width=\"616\" height=\"243\">\n\n<img src=\"https://content.pstmn.io/39df1dbd-4b0b-4235-a2ad-0f12deac194b/aW1hZ2UucG5n\" width=\"523\" height=\"732\">\n\n### Bet Status\n\nBet status in your system should be implemented as follows: Running, Settled, and Void.\n\n<img src=\"https://content.pstmn.io/6074c7aa-c5ef-4fd4-a667-ced9e639a451/aW1hZ2UucG5n\" width=\"1264\" height=\"663\">\n\n### Protocol\n\n```\nAll the API request is made through HTTP post\n ● All the request will come with the following format:\n    1.Header:\n        Content-Type: application/json; charset=UTF-8\n    2.Body:\n        {\"CompanyKey\":\"7b277d9ad9f146a591a6d40bf4290d62c65bf0bcda32b50404a011733cfb7b1e\", \"Username\":\"test\"}\n ● All the API response should be in the form:\n    1.Header: Content-Type: application/json; charset=UTF-8\n    2.Body:\n        {\"AccountName\":\"test\",\"Balance\":\"9463.50002\",\"ErrorCode\":\"0\",\"ErrorMessage\":\"No Error\"}\n\n ```\n\n## SBO Sports FreeBet impact\n\nSBO Sports FreeBet uses the same Seamless Wallet endpoints. No new wallet endpoint, endpoint path, authentication flow, or response envelope is required.\n\nWhen a player places a bet using SBO Sports FreeBet, 568Win will still trigger the existing `Deduct` API.\n\nIn this scenario:\n\n* `Amount` will be `0` because no wallet balance is deducted from the player.\n* [`ExtraInfo`](https://documenter.getpostman.com/view/39587621/2sAY55adgd#b2e8d2fc-f508-4b7d-b84a-e411a14e446c) will contain the PromotionReward parameter to identify the bet as an SBO Sports FreeBet bet.\n\nPlease refer to the [ExtraInfo](https://documenter.getpostman.com/view/39587621/2sAY55adgd#b2e8d2fc-f508-4b7d-b84a-e411a14e446c) appendix for related details.  \nNote: Normal bets will not contain the PromotionReward parameter.\n\n[`ExtraInfo`](https://documenter.getpostman.com/view/39587621/2sAY55adgd#b2e8d2fc-f508-4b7d-b84a-e411a14e446c) FreeBet parameter example:\n\n```json\n{\n  \"PromotionRewardCode\": \"FB-2Q4W6E8R1T3Y5U7I\",\n  \"PromotionRewardAmount\": 50.0,\n  \"PromotionEventId\": 1001\n}\n```\n\nPlease do not determine whether a bet is a FreeBet bet based only on `Amount = 0`. When the PromotionReward parameter exists in [`ExtraInfo`](https://documenter.getpostman.com/view/39587621/2sAY55adgd#b2e8d2fc-f508-4b7d-b84a-e411a14e446c), the bet should be treated as an SBO Sports FreeBet bet. Please store the following values together for future reconciliation and tracking:\n\n* PromotionReward\n* `TransferCode`\n* `TransactionId`\n\nExisting `Settle`, `Cancel`, and `Rollback` handling flows should continue to be used afterward.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"39587621","team":6541681,"collectionId":"bce6ab9e-50c6-4656-bd11-48ef78396ca6","publishedId":"2sAY55adgd","public":true,"publicUrl":"https://documenter-api.postman.tech/view/39587621/2sAY55adgd","privateUrl":"https://go.postman.co/documentation/39587621-bce6ab9e-50c6-4656-bd11-48ef78396ca6","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-single-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"dark","themes":[{"name":"dark","logo":"https://content.pstmn.io/220e3ec9-0418-49d5-bed0-4eeb3393689b/NTY4d2luX2xvZ29fY29sb3JfZW4ucG5n","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":"https://content.pstmn.io/220e3ec9-0418-49d5-bed0-4eeb3393689b/NTY4d2luX2xvZ29fY29sb3JfZW4ucG5n","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.10.1","publishDate":"2024-11-25T09:36:02.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":"https://content.pstmn.io/220e3ec9-0418-49d5-bed0-4eeb3393689b/NTY4d2luX2xvZ29fY29sb3JfZW4ucG5n","logoDark":"https://content.pstmn.io/220e3ec9-0418-49d5-bed0-4eeb3393689b/NTY4d2luX2xvZ29fY29sb3JfZW4ucG5n"}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/768118b36f06c94b0306958b980558e6915839447e859fe16906e29d683976f0","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sAY55adgd"}