GET /balance?playerId=123e4567-e89b-12d3-a456-426614174000&sessionId=abc123-session-id&promotionExternalId=promo-session-123¤cy=USD&gameUuid=game-uuid-456
{ "balance": 100.00}
{ "error_code": "INVALID_SESSION"}
Wallet API
Get Balance
Retrieves the current balance of a player based on their player ID.
Get Balance
curl --request GET \ --url https://103.77.224.40/balance
GET /balance?playerId=123e4567-e89b-12d3-a456-426614174000&sessionId=abc123-session-id&promotionExternalId=promo-session-123¤cy=USD&gameUuid=game-uuid-456
{ "balance": 100.00}
{ "error_code": "INVALID_SESSION"}
GET /balance
Headers
Name
Type
Description
X-Auth-Token
string
Custom authentication header in the format X-Auth-Token: your_token_here. This token is required to authorize API requests.
Request Parameters
Name
Type
Description
playerId
string
Unique identifier of the player whose balance is being retrieved.
gameUuid
string
Unique identifier of the game for which the request is being made.
sessionId
string
Unique identifier of the player’s session.
promotionExternalId
string
External identifier of the promotion session. This parameter must be sent for promo or free bet requests and omitted for regular game requests.
currency
string
The currency code for the transaction, typically in ISO 4217 format.
Response Parameters
Name
Type
Description
balance
decimal
The current balance of the player.
Error
If an error occurs while processing a request, the API must return a response with HTTP Status Code: 400 Bad Request
Name
Type
Description
error_code
string
Error code describing the specific issue.
Show Possible Error Codes
Error Code
Description
INVALID_SESSION
The provided session ID is invalid or does not exist in the system.
TECHNICAL_ERROR
An unexpected error occurred.
NOT_AUTHORIZED
The request is not authorized due to invalid X-Auth-Token header.
Responsibility of the wallet platform
Assert that the incoming sessionId is valid, and return the player’s current balance.If promotionExternalId is present, resolve the balance in the context of the promo or free bet session identified by this value.
GET /balance?playerId=123e4567-e89b-12d3-a456-426614174000&sessionId=abc123-session-id&promotionExternalId=promo-session-123¤cy=USD&gameUuid=game-uuid-456
{ "balance": 100.00}
{ "error_code": "INVALID_SESSION"}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"RGS","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"favicon":"https://mintcdn.com/gaming-code/G-olwsYSDU7xJ5XM/favicon.svg?fit=max\u0026auto=format\u0026n=G-olwsYSDU7xJ5XM\u0026q=85\u0026s=14df7efda3553ce5dc154f22553c405c","api":{"playground":{"display":"none"},"mdx":{"server":["https://103.77.224.40"]}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gaming-code","hasAudioNarration":false,"actualSubdomain":"gaming-code","customDomains":["docs.game-services.work"],"gitSource":{"type":"github","owner":"gaming-code","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aacfb143b9900e0b56891e6","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Public And Wallet API","count":17},{"language":"default","tag":"Internal API","count":9},{"language":"default","tag":"RGS Public API","count":7},{"language":"default","tag":"RGS API","count":6},{"language":"default","tag":"Get Started","count":6},{"language":"default","tag":"Wallet API","count":6},{"language":"default","tag":"Wallet Test","count":1},{"language":"default","tag":"Jackpot Values Generator","count":1},{"language":"default","tag":"Calculator","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#pagination{margin-top:2rem}"}]}
{"page":{"pagePath":"wallet/balance","slug":"/wallet/balance","pageMetadata":{"title":"Get Balance","api":"Get /balance","description":"Retrieves the current balance of a player based on their player ID.","href":"/wallet/balance"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Retrieves the current balance of a player based on their player ID.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={blockquote:`blockquote`,code:`code`,hr:`hr`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Expandable,Heading,Note,Table,Warning}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GET`}),` /balance`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`headers`,children:`Headers`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(`span`,{style:{color:`rgb(var(--primary)`},children:`X-Auth-Token`})})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Custom authentication header in the format X-Auth-Token: your_token_here. This token is required to authorize API requests.`})]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`request-parameters`,children:`Request Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(`span`,{style:{color:`rgb(var(--primary)`},children:`playerId`})})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Unique identifier of the player whose balance is being retrieved.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(`span`,{style:{color:`rgb(var(--primary)`},children:`gameUuid`})})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Unique identifier of the game for which the request is being made.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(`span`,{style:{color:`rgb(var(--primary)`},children:`sessionId`})})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Unique identifier of the player’s session.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(`span`,{style:{color:`rgb(var(--primary)`},children:`promotionExternalId`})})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`External identifier of the promotion session. This parameter must be sent for promo or free bet requests and omitted for regular game requests.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(`span`,{style:{color:`rgb(var(--primary)`},children:`currency`})})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`The currency code for the transaction, typically in ISO 4217 format.`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`response-parameters`,children:`Response Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(`span`,{style:{color:`rgb(var(--primary)`},children:`balance`})})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`decimal`})}),_jsx(_components.td,{children:`The current balance of the player.`})]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`error`,children:`Error`}),`\n`,_jsxs(Note,{children:[`If an error occurs while processing a request, the API must return a response with `,_jsx(_components.code,{children:`HTTP Status Code: 400 Bad Request`})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(`span`,{style:{color:`rgb(var(--primary)`},children:`error_code`})})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Error code describing the specific issue.`})]})})]}),`\n`,_jsx(Expandable,{title:`Possible Error Codes`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error Code`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(`span`,{style:{color:`rgb(var(--primary)`},children:`INVALID_SESSION`})})}),_jsx(_components.td,{children:`The provided session ID is invalid or does not exist in the system.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(`span`,{style:{color:`rgb(var(--primary)`},children:`TECHNICAL_ERROR`})})}),_jsx(_components.td,{children:`An unexpected error occurred.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:_jsx(`span`,{style:{color:`rgb(var(--primary)`},children:`NOT_AUTHORIZED`})})}),_jsx(_components.td,{children:`The request is not authorized due to invalid X-Auth-Token header.`})]})]})]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Responsibility of the wallet platform`})}),`\n`,_jsx(_components.p,{children:`Assert that the incoming sessionId is valid, and return the player’s current balance.`}),`\n`,_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`promotionExternalId`}),` is present, resolve the balance in the context of the promo or free bet session identified by this value.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get Balance","api":"Get /balance","description":"Retrieves the current balance of a player based on their player ID.","href":"/wallet/balance"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[231,249,"pre:`pre`,span:`span`,strong:`strong`,tb"],[345,406,"CodeBlock,Expandable,Heading,Note,ResponseExample,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expand"],[547,562,"ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Table)_missingM"],[6820,6830,",`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`Request`,numberOfLines:`2`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /balance?playerId=123e4567-e89b-12d3-a456-426614174000`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sessionId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`abc123-session-id\u0026promotionExternalId=promo-session-123\u0026currency=USD\u0026gameUuid=game-uuid-456`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Response 200`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"balance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100.00`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Error 400`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"INVALID_SESSION\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}functi"]]},"mdxExtracts":{"tableOfContents":[{"title":"Headers","slug":"headers","depth":3,"children":[]},{"title":"Request Parameters","slug":"request-parameters","depth":3,"children":[]},{"title":"Response Parameters","slug":"response-parameters","depth":3,"children":[]},{"title":"Error","slug":"error","depth":3,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"Request","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"http\">\u003ccode language=\"http\" numberOfLines=\"2\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">GET\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> /balance?playerId=123e4567-e89b-12d3-a456-426614174000\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">\u0026#x26;\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">sessionId\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">abc123-session-id\u0026#x26;promotionExternalId=promo-session-123\u0026#x26;currency=USD\u0026#x26;gameUuid=game-uuid-456\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Response 200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"balance\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">100.00\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Error 400","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"INVALID_SESSION\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Get Balance","path":"/balance","servers":[{"url":"https://103.77.224.40"}],"method":"get","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"gaming-code","siteName":"RGS","title":"Get Balance - RGS","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-05T11:29:34.865Z","originalFileLocation":"wallet/balance.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieves the current balance of a player based on their player ID.\">\u003cmeta data-mint-head name=\"application-name\" content=\"RGS\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gaming-code/ezkwD0VtIVcEgzcu/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gaming-code/ezkwD0VtIVcEgzcu/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gaming-code/ezkwD0VtIVcEgzcu/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gaming-code/ezkwD0VtIVcEgzcu/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gaming-code/ezkwD0VtIVcEgzcu/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gaming-code/ezkwD0VtIVcEgzcu/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gaming-code/ezkwD0VtIVcEgzcu/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gaming-code/ezkwD0VtIVcEgzcu/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gaming-code/ezkwD0VtIVcEgzcu/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Balance - RGS\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieves the current balance of a player based on their player ID.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"RGS\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.game-services.work/wallet/balance\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gaming-code.mintlify.site/_mintlify/api/og/v2?division=Wallet+API\u0026amp;title=Get+Balance\u0026amp;description=Retrieves+the+current+balance+of+a+player+based+on+their+player+ID.\u0026amp;theme=e5ed9adb1acc63d397db9eeb\u0026amp;signature=30f792cdc8d9b0c01818c2fce5e150e235bc5b4a95ea72921660330d547e0df2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get Balance - RGS\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieves the current balance of a player based on their player ID.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gaming-code.mintlify.site/_mintlify/api/og/v2?division=Wallet+API\u0026amp;title=Get+Balance\u0026amp;description=Retrieves+the+current+balance+of+a+player+based+on+their+player+ID.\u0026amp;theme=e5ed9adb1acc63d397db9eeb\u0026amp;signature=30f792cdc8d9b0c01818c2fce5e150e235bc5b4a95ea72921660330d547e0df2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gaming-code/ezkwD0VtIVcEgzcu/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"RGS\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.game-services.work/wallet/balance\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/wallet/balance.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.game-services.work/#organization\",\"name\":\"RGS\",\"url\":\"https://docs.game-services.work\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.game-services.work#website\",\"name\":\"RGS\",\"url\":\"https://docs.game-services.work\",\"publisher\":{\"@id\":\"https://docs.game-services.work/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.game-services.work/wallet/balance#webpage\",\"url\":\"https://docs.game-services.work/wallet/balance\",\"name\":\"Get Balance\",\"description\":\"Retrieves the current balance of a player based on their player ID.\",\"dateModified\":\"2026-05-05T11:29:34.865Z\",\"isPartOf\":{\"@id\":\"https://docs.game-services.work#website\"},\"breadcrumb\":{\"@id\":\"https://docs.game-services.work/wallet/balance#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.game-services.work/wallet/balance#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Wallet API\",\"item\":\"https://docs.game-services.work/wallet/player\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Balance\",\"item\":\"https://docs.game-services.work/wallet/balance\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.game-services.work/wallet/balance#apireference\",\"headline\":\"Get Balance\",\"name\":\"Get Balance\",\"description\":\"Retrieves the current balance of a player based on their player ID.\",\"url\":\"https://docs.game-services.work/wallet/balance\",\"mainEntityOfPage\":{\"@id\":\"https://docs.game-services.work/wallet/balance#webpage\"},\"dateModified\":\"2026-05-05T11:29:34.865Z\",\"publisher\":{\"@id\":\"https://docs.game-services.work/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.game-services.work#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"RGS\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"RGS\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/wallet/balance.md","siteName":"RGS","nav":{"global":null,"tabs":[{"tab":"Public And Wallet API","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/start/introduction"},{"title":"Wallet API Overview","href":"/start/wallet-overview"},{"title":"RGS Public API Overview","href":"/start/rgs-overview"}]},{"group":"Wallet API","pages":[{"title":"Get Player Session","api":"Get /session","description":"Opens player game session for provided player token and game UUID.","href":"/wallet/player"},{"title":"Get Balance","api":"Get /balance","href":"/wallet/balance"},{"title":"Credit Debit","api":"POST /credit-debit","description":"Credits the creditAmount from the player's balance and debits the debitAmount to the player's balance.","href":"/wallet/creditdebit"},{"title":"Debit","api":"POST /debit","href":"/wallet/debit"},{"title":"Rollback","api":"POST /credit/rollback","href":"/wallet/rollback"},{"title":"Tournament Prize","api":"POST /tournament-prize","href":"/wallet/tournament"}]},{"group":"RGS Public API","pages":[{"title":"Game Launch","api":"Get /platform/api/game/launch","href":"/rgs/launch"},{"title":"Game Demo Launch","api":"Get /platform/api/game/launch/demo","href":"/rgs/demo-launch"},{"title":"Get Software Providers","api":"Get /platform/api/software-providers","href":"/rgs/software"},{"title":"Get Games","api":"Get /platform/api/games","href":"/rgs/games"},{"title":"Get Languages","api":"Get /platform/api/languages","href":"/rgs/languages"},{"title":"Get Currencies","api":"Get /platform/api/currencies","href":"/rgs/currencies"},{"title":"Get Game History","api":"Get /platform/game-history-path","href":"/rgs/game-history"}]},{"group":"Wallet Test","pages":[{"title":"Wallet Certification Suite","api":"GET /tbs/test","href":"/tests/run_tests"}]}]},{"tab":"Internal API","pages":[{"title":"Internal API","href":"/start/introduction-bo"}]},{"tab":"Jackpot Values Generator","pages":[{"title":"Jackpot Values Generator","href":"/tools/jackpot-values-generator"}]}]},"basePath":"","title":"Get Balance - RGS","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js"]}