Returns the current balance of the authenticated merchant.All monetary values are in cents (e.g., 1500 = R$15.00).
Always use withdrawNowAvailable when creating a cashout. If requiresFullWithdrawalNow is true, your cashout request must use that exact amount.
Settlement groups
The available balance can be split into settlement groups. Each group is withdrawn separately. These are the same groups shown in the dashboard under Request cashout as “Group 1”, “Group 2” and so on.
Field
What it is
balance.settlementGroups
Groups with available balance
balance.settlementGroups[].id
Group id, to send as settlementGroupId when creating a cashout
balance.settlementGroups[].available
How much can be withdrawn from that group, in cents
available, withdrawNowAvailable and total are unchanged: they only show what a cashout without a group can withdraw. To see everything available, use availableTotal.
The group id is temporary.
Get the balance right before each cashout and use the id from that response.
Do not store the id for later. It can change or disappear when the group reaches zero or the account configuration changes.
Do not use the list position or the name “Group 1” as an identifier. The order changes when a group reaches zero.
A group with id: null cannot be selected. Its balance is withdrawn by a cashout without settlementGroupId.
To withdraw from a specific group, see Create cashout, section “Choose the settlement group”.
Authorizations
Authorization
string
header
required
Token JWT obtido via /v1/auth/token
Response
Dados do saldo
data
object | null
Show child attributes
message
string | null
error
object | null
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Safefy Pay","colors":{"primary":"#3b82f6","light":"#60a5fa","dark":"#2563eb"},"logo":{"light":"https://mintcdn.com/safefypay/-Bz3jDSg0a2tULm6/logo/light.svg?fit=max\u0026auto=format\u0026n=-Bz3jDSg0a2tULm6\u0026q=85\u0026s=582ff1fbb2198f44a03cf0083f79c7bb","dark":"https://mintcdn.com/safefypay/-Bz3jDSg0a2tULm6/logo/dark.svg?fit=max\u0026auto=format\u0026n=-Bz3jDSg0a2tULm6\u0026q=85\u0026s=1f5e52a5b2998f9bea22018d08bbe534"},"favicon":"https://mintcdn.com/safefypay/mnZdbRGEjZDQ6G9R/favicon.ico?fit=max\u0026auto=format\u0026n=mnZdbRGEjZDQ6G9R\u0026q=85\u0026s=f8e5a425e9e824c156b5b0065956b9f4","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript","go","java"],"prefill":true}},"background":{"color":{"light":"#f9f9f9","dark":"#161616"}},"navbar":{"links":[{"href":"mailto:suporte@safefypay.com.br","label":"Support"}],"primary":{"type":"button","label":"Access Dashboard","href":"https://app.safefypay.com.br"}},"footer":{"socials":{"instagram":"https://www.instagram.com/safefy_pay"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"/en/status"},{"anchor":"Support","icon":"life-ring","href":"mailto:suporte@safefypay.com.br"}]},"languages":[{"language":"pt-BR","href":""},{"language":"en","href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"safefypay","hasAudioNarration":false,"actualSubdomain":"safefypay","customDomains":["docs.safefypay.com.br"],"gitSource":{"type":"github","owner":"safefy-pay","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0053b257be3405ccaa0ca6","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"pt-BR","tag":"API","count":34},{"language":"en","tag":"API","count":34},{"language":"pt-BR","tag":"Documentação","count":14},{"language":"en","tag":"Documentation","count":14},{"language":"pt-BR","tag":"Transações","count":12},{"language":"en","tag":"Transactions","count":12},{"language":"pt-BR","tag":"Saques","count":8},{"language":"en","tag":"Cashouts","count":8},{"language":"pt-BR","tag":"Disputas","count":6},{"language":"en","tag":"Disputes","count":6},{"language":"pt-BR","tag":"Clientes","count":5},{"language":"pt-BR","tag":"Conceitos","count":5},{"language":"pt-BR","tag":"Introdução","count":5},{"language":"en","tag":"Customers","count":5},{"language":"en","tag":"Concepts","count":5},{"language":"en","tag":"Introduction","count":5},{"language":"pt-BR","tag":"Saldo","count":2},{"language":"pt-BR","tag":"Checkout e links","count":2},{"language":"en","tag":"Balance","count":2},{"language":"en","tag":"Checkout and links","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"en/api-reference/balance/get","slug":"/en/api-reference/balance/get","pageMetadata":{"title":"Get balance","description":"Retrieve the current merchant balance","openapi":"api-reference/openapi.json GET /v1/balance","href":"/en/api-reference/balance/get"},"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: \"Retrieve the current merchant balance\"\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={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Returns the current balance of the authenticated merchant.`}),`\n`,_jsxs(_components.p,{children:[`All monetary values are in `,_jsx(_components.strong,{children:`cents`}),` (e.g., `,_jsx(_components.code,{children:`1500`}),` = R$15.00).`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Always use `,_jsx(_components.code,{children:`withdrawNowAvailable`}),` when creating a cashout. If `,_jsx(_components.code,{children:`requiresFullWithdrawalNow`}),` is `,_jsx(_components.code,{children:`true`}),`, your cashout request must use that exact amount.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`settlement-groups`,children:`Settlement groups`}),`\n`,_jsxs(_components.p,{children:[`The available balance can be split into `,_jsx(_components.strong,{children:`settlement groups`}),`. Each group is withdrawn separately. These are the same groups shown in the dashboard under `,_jsx(_components.strong,{children:`Request cashout`}),` as “Group 1”, “Group 2” and so on.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`What it is`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`balance.settlementGroups`})}),_jsx(_components.td,{children:`Groups with available balance`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`balance.settlementGroups[].id`})}),_jsxs(_components.td,{children:[`Group id, to send as `,_jsx(_components.code,{children:`settlementGroupId`}),` when creating a cashout`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`balance.settlementGroups[].available`})}),_jsx(_components.td,{children:`How much can be withdrawn from that group, in cents`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`balance.availableTotal`})}),_jsx(_components.td,{children:`Sum of the available balance of all groups`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,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:`17`,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:` \"data\"`}),_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:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"available\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`786336`}),_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:` \"withdrawNowAvailable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`786336`}),_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:` \"requiresFullWithdrawalNow\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_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:` \"pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"reserved\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`786336`}),_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:` \"availableTotal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`838592`}),_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:` \"settlementGroups\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"available\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`786336`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0199b2c3-d4e5-7f6a-9b0c-1d2e3f4a5b6c\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"available\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`52256`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`available`}),`, `,_jsx(_components.code,{children:`withdrawNowAvailable`}),` and `,_jsx(_components.code,{children:`total`}),` are unchanged: they only show what a cashout `,_jsx(_components.strong,{children:`without`}),` a group can withdraw. To see everything available, use `,_jsx(_components.code,{children:`availableTotal`}),`.`]}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`The group id is temporary.`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Get the balance `,_jsx(_components.strong,{children:`right before each cashout`}),` and use the `,_jsx(_components.code,{children:`id`}),` from that response.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Do not store the id`}),` for later. It can change or disappear when the group reaches zero or the account configuration changes.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Do not use the list position or the name “Group 1” as an identifier.`}),` The order changes when a group reaches zero.`]}),`\n`,_jsxs(_components.li,{children:[`A group with `,_jsx(_components.code,{children:`id: null`}),` cannot be selected. Its balance is withdrawn by a cashout without `,_jsx(_components.code,{children:`settlementGroupId`}),`.`]}),`\n`]})]}),`\n`,_jsxs(_components.p,{children:[`To withdraw from a specific group, see `,_jsx(_components.a,{href:`/en/api-reference/cashouts/create`,children:`Create cashout`}),`, section “Choose the settlement group”.`]})]})}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","description":"Retrieve the current merchant balance","openapi":"api-reference/openapi.json GET /v1/balance","href":"/en/api-reference/balance/get"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Settlement groups","slug":"settlement-groups","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Saldo"],"summary":"Consultar saldo","description":"Retrieve the current merchant balance","operationId":"getBalance","responses":{"200":"b0a4dab8-fcf0-4bc1-8d2c-a57fdb2edb8a","401":"59c26c86-252f-4e73-8023-988aa7489500"},"method":"get","type":"path","servers":["ad42bb95-9ee9-43f3-8b75-5b69e2293265"],"security":["d07cda11-4db3-44ec-8c53-a5a5d3b18ae3"],"path":"/v1/balance","baseUrlOptions":["https://api-payment.safefypay.com.br"],"title":"Consultar saldo","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go","java"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[]},"dependencies":{"parameters":{},"responses":{"b0a4dab8-fcf0-4bc1-8d2c-a57fdb2edb8a":{"description":"Dados do saldo","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"object","properties":{"currency":{"type":"string","description":"Moeda","example":"BRL","uniqueKey":"data.oneOf.0.currency","typeLabel":"string"},"balance":{"type":"object","properties":{"available":{"type":"integer","format":"int64","description":"Saldo disponivel para saque agora, sem informar settlementGroupId (centavos). Igual a withdrawNowAvailable.","example":150000,"uniqueKey":"data.oneOf.0.balance.available","typeLabel":"integer\u003cint64>"},"withdrawNowAvailable":{"type":"integer","format":"int64","description":"Valor que pode ser sacado agora sem informar settlementGroupId (centavos). Use como referencia para o saque sem grupo.","example":150000,"uniqueKey":"data.oneOf.0.balance.withdrawNowAvailable","typeLabel":"integer\u003cint64>"},"requiresFullWithdrawalNow":{"type":"boolean","description":"Quando true, o saque sem settlementGroupId deve ser exatamente withdrawNowAvailable.","example":false,"uniqueKey":"data.oneOf.0.balance.requiresFullWithdrawalNow","typeLabel":"boolean"},"pending":{"type":"integer","format":"int64","description":"Saldo pendente de liquidacao (centavos)","example":25000,"uniqueKey":"data.oneOf.0.balance.pending","typeLabel":"integer\u003cint64>"},"reserved":{"type":"integer","format":"int64","description":"Saldo reservado (centavos)","example":0,"uniqueKey":"data.oneOf.0.balance.reserved","typeLabel":"integer\u003cint64>"},"total":{"type":"integer","format":"int64","description":"Saldo total (centavos)","example":175000,"uniqueKey":"data.oneOf.0.balance.total","typeLabel":"integer\u003cint64>"},"availableTotal":{"type":"integer","format":"int64","description":"Soma do disponivel de todos os grupos de liquidacao (centavos).","example":838592,"uniqueKey":"data.oneOf.0.balance.availableTotal","typeLabel":"integer\u003cint64>"},"settlementGroups":{"type":"array","description":"Grupos de liquidacao com saldo disponivel. Cada grupo e sacado separadamente. Os ids sao temporarios: consulte o saldo logo antes de cada saque e nunca guarde o id.","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"Id do grupo para enviar em settlementGroupId no saque. Pode mudar ou deixar de existir quando o grupo zera ou a configuracao da conta muda. Quando null, o grupo nao pode ser escolhido e so e sacado pelo saque sem settlementGroupId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b","uniqueKey":"data.oneOf.0.balance.settlementGroups.items.[INDEX].id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Id do grupo para enviar em settlementGroupId no saque. Pode mudar ou deixar de existir quando o grupo zera ou a configuracao da conta muda. Quando null, o grupo nao pode ser escolhido e so e sacado pelo saque sem settlementGroupId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b","uniqueKey":"data.oneOf.0.balance.settlementGroups.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.balance.settlementGroups.items.[INDEX].id","typeLabel":"string\u003cuuid> | null"},"available":{"type":"integer","format":"int64","description":"Saldo disponivel para saque neste grupo (centavos).","example":786336,"uniqueKey":"data.oneOf.0.balance.settlementGroups.items.[INDEX].available","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.oneOf.0.balance.settlementGroups.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.oneOf.0.balance.settlementGroups","typeLabel":"object[]"}},"uniqueKey":"data.oneOf.0.balance","typeLabel":"object"},"totals":{"type":"object","properties":{"lifetimeVolume":{"type":"integer","format":"int64","description":"Volume total recebido (centavos)","example":5000000,"uniqueKey":"data.oneOf.0.totals.lifetimeVolume","typeLabel":"integer\u003cint64>"},"lifetimePayouts":{"type":"integer","format":"int64","description":"Total de saques realizados (centavos)","example":4800000,"uniqueKey":"data.oneOf.0.totals.lifetimePayouts","typeLabel":"integer\u003cint64>"},"lifetimeRefunds":{"type":"integer","format":"int64","description":"Total de estornos (centavos)","example":50000,"uniqueKey":"data.oneOf.0.totals.lifetimeRefunds","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.oneOf.0.totals","typeLabel":"object"},"period":{"type":"object","properties":{"volumeToday":{"type":"integer","format":"int64","description":"Volume do dia atual (centavos)","example":100000,"uniqueKey":"data.oneOf.0.period.volumeToday","typeLabel":"integer\u003cint64>"},"volumeThisWeek":{"type":"integer","format":"int64","description":"Volume dos ultimos 7 dias (centavos)","example":500000,"uniqueKey":"data.oneOf.0.period.volumeThisWeek","typeLabel":"integer\u003cint64>"},"volumeThisMonth":{"type":"integer","format":"int64","description":"Volume dos ultimos 30 dias (centavos)","example":2000000,"uniqueKey":"data.oneOf.0.period.volumeThisMonth","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.oneOf.0.period","typeLabel":"object"},"updatedAt":{"type":"string","format":"date-time","description":"Ultima atualizacao","example":"2025-01-15T15:00:00Z","uniqueKey":"data.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"currency":{"type":"string","description":"Moeda","example":"BRL"},"balance":{"type":"object","properties":{"available":{"type":"integer","format":"int64","description":"Saldo disponivel para saque agora, sem informar settlementGroupId (centavos). Igual a withdrawNowAvailable.","example":150000},"withdrawNowAvailable":{"type":"integer","format":"int64","description":"Valor que pode ser sacado agora sem informar settlementGroupId (centavos). Use como referencia para o saque sem grupo.","example":150000},"requiresFullWithdrawalNow":{"type":"boolean","description":"Quando true, o saque sem settlementGroupId deve ser exatamente withdrawNowAvailable.","example":false},"pending":{"type":"integer","format":"int64","description":"Saldo pendente de liquidacao (centavos)","example":25000},"reserved":{"type":"integer","format":"int64","description":"Saldo reservado (centavos)","example":0},"total":{"type":"integer","format":"int64","description":"Saldo total (centavos)","example":175000},"availableTotal":{"type":"integer","format":"int64","description":"Soma do disponivel de todos os grupos de liquidacao (centavos).","example":838592},"settlementGroups":{"type":"array","description":"Grupos de liquidacao com saldo disponivel. Cada grupo e sacado separadamente. Os ids sao temporarios: consulte o saldo logo antes de cada saque e nunca guarde o id.","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"Id do grupo para enviar em settlementGroupId no saque. Pode mudar ou deixar de existir quando o grupo zera ou a configuracao da conta muda. Quando null, o grupo nao pode ser escolhido e so e sacado pelo saque sem settlementGroupId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b"},{"type":"null","format":"uuid","description":"Id do grupo para enviar em settlementGroupId no saque. Pode mudar ou deixar de existir quando o grupo zera ou a configuracao da conta muda. Quando null, o grupo nao pode ser escolhido e so e sacado pelo saque sem settlementGroupId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b"}]},"available":{"type":"integer","format":"int64","description":"Saldo disponivel para saque neste grupo (centavos).","example":786336}}}}}},"totals":{"type":"object","properties":{"lifetimeVolume":{"type":"integer","format":"int64","description":"Volume total recebido (centavos)","example":5000000},"lifetimePayouts":{"type":"integer","format":"int64","description":"Total de saques realizados (centavos)","example":4800000},"lifetimeRefunds":{"type":"integer","format":"int64","description":"Total de estornos (centavos)","example":50000}}},"period":{"type":"object","properties":{"volumeToday":{"type":"integer","format":"int64","description":"Volume do dia atual (centavos)","example":100000},"volumeThisWeek":{"type":"integer","format":"int64","description":"Volume dos ultimos 7 dias (centavos)","example":500000},"volumeThisMonth":{"type":"integer","format":"int64","description":"Volume dos ultimos 30 dias (centavos)","example":2000000}}},"updatedAt":{"type":"string","format":"date-time","description":"Ultima atualizacao","example":"2025-01-15T15:00:00Z"}},"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"message":{"oneOf":[{"type":"string","uniqueKey":"message.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"message.oneOf.1","typeLabel":"null"}],"uniqueKey":"message","typeLabel":"string | null"},"error":{"oneOf":[{"type":"object","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado.","uniqueKey":"error.oneOf.0.message","typeLabel":"string"},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized","uniqueKey":"error.oneOf.0.code","typeLabel":"string"}},"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado."},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized"}},"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":{"currency":"BRL","balance":{"available":150000,"pending":25000,"reserved":0,"total":175000},"totals":{"lifetimeVolume":5000000,"lifetimePayouts":4800000,"lifetimeRefunds":50000},"period":{"volumeToday":100000,"volumeThisWeek":500000,"volumeThisMonth":2000000},"updatedAt":"2025-01-15T15:00:00Z"},"message":null,"error":null},"examples":{"Example":{"title":"Example","value":{"data":{"currency":"BRL","balance":{"available":150000,"pending":25000,"reserved":0,"total":175000},"totals":{"lifetimeVolume":5000000,"lifetimePayouts":4800000,"lifetimeRefunds":50000},"period":{"volumeToday":100000,"volumeThisWeek":500000,"volumeThisMonth":2000000},"updatedAt":"2025-01-15T15:00:00Z"},"message":null,"error":null}}},"exampleType":"examples"}},"exampleType":"examples"},"59c26c86-252f-4e73-8023-988aa7489500":{"description":"Nao autorizado","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"object","properties":{"currency":{"type":"string","description":"Moeda","example":"BRL","uniqueKey":"data.oneOf.0.currency","typeLabel":"string"},"balance":{"type":"object","properties":{"available":{"type":"integer","format":"int64","description":"Saldo disponivel para saque agora, sem informar settlementGroupId (centavos). Igual a withdrawNowAvailable.","example":150000,"uniqueKey":"data.oneOf.0.balance.available","typeLabel":"integer\u003cint64>"},"withdrawNowAvailable":{"type":"integer","format":"int64","description":"Valor que pode ser sacado agora sem informar settlementGroupId (centavos). Use como referencia para o saque sem grupo.","example":150000,"uniqueKey":"data.oneOf.0.balance.withdrawNowAvailable","typeLabel":"integer\u003cint64>"},"requiresFullWithdrawalNow":{"type":"boolean","description":"Quando true, o saque sem settlementGroupId deve ser exatamente withdrawNowAvailable.","example":false,"uniqueKey":"data.oneOf.0.balance.requiresFullWithdrawalNow","typeLabel":"boolean"},"pending":{"type":"integer","format":"int64","description":"Saldo pendente de liquidacao (centavos)","example":25000,"uniqueKey":"data.oneOf.0.balance.pending","typeLabel":"integer\u003cint64>"},"reserved":{"type":"integer","format":"int64","description":"Saldo reservado (centavos)","example":0,"uniqueKey":"data.oneOf.0.balance.reserved","typeLabel":"integer\u003cint64>"},"total":{"type":"integer","format":"int64","description":"Saldo total (centavos)","example":175000,"uniqueKey":"data.oneOf.0.balance.total","typeLabel":"integer\u003cint64>"},"availableTotal":{"type":"integer","format":"int64","description":"Soma do disponivel de todos os grupos de liquidacao (centavos).","example":838592,"uniqueKey":"data.oneOf.0.balance.availableTotal","typeLabel":"integer\u003cint64>"},"settlementGroups":{"type":"array","description":"Grupos de liquidacao com saldo disponivel. Cada grupo e sacado separadamente. Os ids sao temporarios: consulte o saldo logo antes de cada saque e nunca guarde o id.","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"Id do grupo para enviar em settlementGroupId no saque. Pode mudar ou deixar de existir quando o grupo zera ou a configuracao da conta muda. Quando null, o grupo nao pode ser escolhido e so e sacado pelo saque sem settlementGroupId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b","uniqueKey":"data.oneOf.0.balance.settlementGroups.items.[INDEX].id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Id do grupo para enviar em settlementGroupId no saque. Pode mudar ou deixar de existir quando o grupo zera ou a configuracao da conta muda. Quando null, o grupo nao pode ser escolhido e so e sacado pelo saque sem settlementGroupId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b","uniqueKey":"data.oneOf.0.balance.settlementGroups.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.balance.settlementGroups.items.[INDEX].id","typeLabel":"string\u003cuuid> | null"},"available":{"type":"integer","format":"int64","description":"Saldo disponivel para saque neste grupo (centavos).","example":786336,"uniqueKey":"data.oneOf.0.balance.settlementGroups.items.[INDEX].available","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.oneOf.0.balance.settlementGroups.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.oneOf.0.balance.settlementGroups","typeLabel":"object[]"}},"uniqueKey":"data.oneOf.0.balance","typeLabel":"object"},"totals":{"type":"object","properties":{"lifetimeVolume":{"type":"integer","format":"int64","description":"Volume total recebido (centavos)","example":5000000,"uniqueKey":"data.oneOf.0.totals.lifetimeVolume","typeLabel":"integer\u003cint64>"},"lifetimePayouts":{"type":"integer","format":"int64","description":"Total de saques realizados (centavos)","example":4800000,"uniqueKey":"data.oneOf.0.totals.lifetimePayouts","typeLabel":"integer\u003cint64>"},"lifetimeRefunds":{"type":"integer","format":"int64","description":"Total de estornos (centavos)","example":50000,"uniqueKey":"data.oneOf.0.totals.lifetimeRefunds","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.oneOf.0.totals","typeLabel":"object"},"period":{"type":"object","properties":{"volumeToday":{"type":"integer","format":"int64","description":"Volume do dia atual (centavos)","example":100000,"uniqueKey":"data.oneOf.0.period.volumeToday","typeLabel":"integer\u003cint64>"},"volumeThisWeek":{"type":"integer","format":"int64","description":"Volume dos ultimos 7 dias (centavos)","example":500000,"uniqueKey":"data.oneOf.0.period.volumeThisWeek","typeLabel":"integer\u003cint64>"},"volumeThisMonth":{"type":"integer","format":"int64","description":"Volume dos ultimos 30 dias (centavos)","example":2000000,"uniqueKey":"data.oneOf.0.period.volumeThisMonth","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.oneOf.0.period","typeLabel":"object"},"updatedAt":{"type":"string","format":"date-time","description":"Ultima atualizacao","example":"2025-01-15T15:00:00Z","uniqueKey":"data.oneOf.0.updatedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"currency":{"type":"string","description":"Moeda","example":"BRL"},"balance":{"type":"object","properties":{"available":{"type":"integer","format":"int64","description":"Saldo disponivel para saque agora, sem informar settlementGroupId (centavos). Igual a withdrawNowAvailable.","example":150000},"withdrawNowAvailable":{"type":"integer","format":"int64","description":"Valor que pode ser sacado agora sem informar settlementGroupId (centavos). Use como referencia para o saque sem grupo.","example":150000},"requiresFullWithdrawalNow":{"type":"boolean","description":"Quando true, o saque sem settlementGroupId deve ser exatamente withdrawNowAvailable.","example":false},"pending":{"type":"integer","format":"int64","description":"Saldo pendente de liquidacao (centavos)","example":25000},"reserved":{"type":"integer","format":"int64","description":"Saldo reservado (centavos)","example":0},"total":{"type":"integer","format":"int64","description":"Saldo total (centavos)","example":175000},"availableTotal":{"type":"integer","format":"int64","description":"Soma do disponivel de todos os grupos de liquidacao (centavos).","example":838592},"settlementGroups":{"type":"array","description":"Grupos de liquidacao com saldo disponivel. Cada grupo e sacado separadamente. Os ids sao temporarios: consulte o saldo logo antes de cada saque e nunca guarde o id.","items":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"Id do grupo para enviar em settlementGroupId no saque. Pode mudar ou deixar de existir quando o grupo zera ou a configuracao da conta muda. Quando null, o grupo nao pode ser escolhido e so e sacado pelo saque sem settlementGroupId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b"},{"type":"null","format":"uuid","description":"Id do grupo para enviar em settlementGroupId no saque. Pode mudar ou deixar de existir quando o grupo zera ou a configuracao da conta muda. Quando null, o grupo nao pode ser escolhido e so e sacado pelo saque sem settlementGroupId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b"}]},"available":{"type":"integer","format":"int64","description":"Saldo disponivel para saque neste grupo (centavos).","example":786336}}}}}},"totals":{"type":"object","properties":{"lifetimeVolume":{"type":"integer","format":"int64","description":"Volume total recebido (centavos)","example":5000000},"lifetimePayouts":{"type":"integer","format":"int64","description":"Total de saques realizados (centavos)","example":4800000},"lifetimeRefunds":{"type":"integer","format":"int64","description":"Total de estornos (centavos)","example":50000}}},"period":{"type":"object","properties":{"volumeToday":{"type":"integer","format":"int64","description":"Volume do dia atual (centavos)","example":100000},"volumeThisWeek":{"type":"integer","format":"int64","description":"Volume dos ultimos 7 dias (centavos)","example":500000},"volumeThisMonth":{"type":"integer","format":"int64","description":"Volume dos ultimos 30 dias (centavos)","example":2000000}}},"updatedAt":{"type":"string","format":"date-time","description":"Ultima atualizacao","example":"2025-01-15T15:00:00Z"}},"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"},"message":{"oneOf":[{"type":"string","uniqueKey":"message.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"message.oneOf.1","typeLabel":"null"}],"uniqueKey":"message","typeLabel":"string | null"},"error":{"oneOf":[{"type":"object","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado.","uniqueKey":"error.oneOf.0.message","typeLabel":"string"},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized","uniqueKey":"error.oneOf.0.code","typeLabel":"string"}},"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado."},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized"}},"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":null,"message":null,"error":{"message":"Token invalido ou expirado.","code":"unauthorized"}},"examples":{"Example":{"title":"Example","value":{"data":null,"message":null,"error":{"message":"Token invalido ou expirado.","code":"unauthorized"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"d07cda11-4db3-44ec-8c53-a5a5d3b18ae3":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Token JWT obtido via /v1/auth/token","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"ad42bb95-9ee9-43f3-8b75-5b69e2293265":{"url":"https://api-payment.safefypay.com.br","description":"API de Pagamentos Safefy"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Token JWT obtido via /v1/auth/token","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Token JWT obtido via /v1/auth/token","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"safefypay","siteName":"Safefy Pay","title":"Get balance - Safefy Pay","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/api-reference/balance/get","matchLevel":1},"en":{"href":"/en/api-reference/balance/get","matchLevel":0}}},"lastModified":"2026-10-05T19:37:02.500Z","originalFileLocation":"en/api-reference/balance/get.mdx","locale":"en"},"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=\"Retrieve the current merchant balance\">\u003cmeta data-mint-head name=\"application-name\" content=\"Safefy Pay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_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/safefypay/Hujngn-PhWIpRrHV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_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/safefypay/Hujngn-PhWIpRrHV/_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/safefypay/Hujngn-PhWIpRrHV/_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/safefypay/Hujngn-PhWIpRrHV/_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/safefypay/Hujngn-PhWIpRrHV/_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/safefypay/Hujngn-PhWIpRrHV/_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/safefypay/Hujngn-PhWIpRrHV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get balance - Safefy Pay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve the current merchant balance\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Safefy Pay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.safefypay.com.br/en/api-reference/balance/get\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://safefypay.mintlify.site/_mintlify/api/og/v2?division=Balance\u0026amp;title=Get+balance\u0026amp;description=Retrieve+the+current+merchant+balance\u0026amp;theme=0ad0c3184b06c52d6e48184f\u0026amp;signature=cbb3e4df1ecda24a8d20223f535c937545a7ce40d2ba5f7466980ca74e95a572\">\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 - Safefy Pay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve the current merchant balance\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://safefypay.mintlify.site/_mintlify/api/og/v2?division=Balance\u0026amp;title=Get+balance\u0026amp;description=Retrieve+the+current+merchant+balance\u0026amp;theme=0ad0c3184b06c52d6e48184f\u0026amp;signature=cbb3e4df1ecda24a8d20223f535c937545a7ce40d2ba5f7466980ca74e95a572\">\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/safefypay/Hujngn-PhWIpRrHV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Safefy Pay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3b82f6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.safefypay.com.br/en/api-reference/balance/get\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/balance/get.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.safefypay.com.br/en/api-reference/balance/get\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.safefypay.com.br/api-reference/balance/get\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.safefypay.com.br/api-reference/balance/get\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.safefypay.com.br/#organization\",\"name\":\"Safefy Pay\",\"url\":\"https://docs.safefypay.com.br\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/safefypay/-Bz3jDSg0a2tULm6/logo/light.svg?fit=max\u0026auto=format\u0026n=-Bz3jDSg0a2tULm6\u0026q=85\u0026s=582ff1fbb2198f44a03cf0083f79c7bb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.safefypay.com.br#website\",\"name\":\"Safefy Pay\",\"url\":\"https://docs.safefypay.com.br\",\"publisher\":{\"@id\":\"https://docs.safefypay.com.br/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.safefypay.com.br/en/api-reference/balance/get#webpage\",\"url\":\"https://docs.safefypay.com.br/en/api-reference/balance/get\",\"name\":\"Get balance\",\"description\":\"Retrieve the current merchant balance\",\"dateModified\":\"2026-10-05T19:37:02.500Z\",\"isPartOf\":{\"@id\":\"https://docs.safefypay.com.br#website\"},\"breadcrumb\":{\"@id\":\"https://docs.safefypay.com.br/en/api-reference/balance/get#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.safefypay.com.br/en/api-reference/balance/get#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Balance\",\"item\":\"https://docs.safefypay.com.br/en/api-reference/balance\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get balance\",\"item\":\"https://docs.safefypay.com.br/en/api-reference/balance/get\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.safefypay.com.br/en/api-reference/balance/get#apireference\",\"headline\":\"Get balance\",\"name\":\"Get balance\",\"description\":\"Retrieve the current merchant balance\",\"url\":\"https://docs.safefypay.com.br/en/api-reference/balance/get\",\"mainEntityOfPage\":{\"@id\":\"https://docs.safefypay.com.br/en/api-reference/balance/get#webpage\"},\"dateModified\":\"2026-10-05T19:37:02.500Z\",\"publisher\":{\"@id\":\"https://docs.safefypay.com.br/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.safefypay.com.br#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Safefy Pay\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Safefy Pay\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/balance/get.md","siteName":"Safefy Pay","nav":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"/en/status"},{"anchor":"Support","icon":"life-ring","href":"mailto:suporte@safefypay.com.br"}]},"languages":[{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/api-reference/balance/get"}]},{"language":"en","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/en"}]},{"tab":"API","groups":[{"group":"Authentication","pages":[{"title":"Generate token","openapi":"api-reference/openapi.json POST /v1/auth/token","href":"/en/api-reference/auth/token"}]},{"group":"Customers","pages":[{"title":"Customer","href":"/en/api-reference/customers/index"},{"title":"Create customer","openapi":"api-reference/openapi.json POST /v1/customers","href":"/en/api-reference/customers/create"},{"title":"List customers","openapi":"api-reference/openapi.json GET /v1/customers","href":"/en/api-reference/customers/list"},{"title":"Get customer","openapi":"api-reference/openapi.json GET /v1/customers/{id}","href":"/en/api-reference/customers/get"},{"title":"Update customer","openapi":"api-reference/openapi.json PATCH /v1/customers/{id}","href":"/en/api-reference/customers/update"}]},{"group":"Transactions","pages":[{"title":"Transaction","href":"/en/api-reference/transactions/index"},{"title":"Transaction webhooks","href":"/en/api-reference/transactions/webhooks"},{"title":"Generating PIX QR Code","href":"/en/api-reference/transactions/qr-code"},{"title":"Create transaction","openapi":"api-reference/openapi.json POST /v1/transactions","href":"/en/api-reference/transactions/create"},{"title":"Tokenize card","openapi":"api-reference/openapi.json POST /v1/card-tokenize","href":"/en/api-reference/transactions/card-tokenize"},{"title":"International sales","href":"/en/api-reference/transactions/international"},{"title":"International sale methods","href":"/en/api-reference/transactions/international-methods"},{"title":"International card configuration","href":"/en/api-reference/transactions/international-card-config"},{"title":"Create international card payment","href":"/en/api-reference/transactions/international-card-payment"},{"title":"List transactions","openapi":"api-reference/openapi.json GET /v1/transactions","href":"/en/api-reference/transactions/list"},{"title":"Get transaction","openapi":"api-reference/openapi.json GET /v1/transactions/{transactionId}","href":"/en/api-reference/transactions/get"},{"title":"Simulate transaction","openapi":"api-reference/openapi.json POST /v1/transactions/{transactionId}/simulate","href":"/en/api-reference/transactions/simulate"}]},{"group":"Balance","pages":[{"title":"Balance","description":"Summary of the balance object returned by the API","href":"/en/api-reference/balance/index"},{"title":"Get balance","openapi":"api-reference/openapi.json GET /v1/balance","href":"/en/api-reference/balance/get"}]},{"group":"Disputes","pages":[{"title":"Dispute object","description":"MED or dispute case available to the authenticated merchant","href":"/en/api-reference/disputes/index"},{"title":"MED webhooks","href":"/en/api-reference/disputes/webhooks"},{"title":"List disputes","openapi":"api-reference/openapi.json GET /v1/disputes","href":"/en/api-reference/disputes/list"},{"title":"Get a dispute","openapi":"api-reference/openapi.json GET /v1/disputes/{id}","href":"/en/api-reference/disputes/get"},{"title":"Submit a dispute response","openapi":"api-reference/openapi.json PUT /v1/disputes/{id}/response","href":"/en/api-reference/disputes/respond"},{"title":"Add evidence","openapi":"api-reference/openapi.json POST /v1/disputes/{id}/evidences","href":"/en/api-reference/disputes/add-evidence"}]},{"group":"Cashouts","pages":[{"title":"Cashout","href":"/en/api-reference/cashouts/index"},{"title":"Cashout webhooks","href":"/en/api-reference/cashouts/webhooks"},{"title":"Create cashout","openapi":"api-reference/openapi.json POST /v1/cashouts","href":"/en/api-reference/cashouts/create"},{"title":"Create cashout account","openapi":"api-reference/openapi.json POST /v1/cashout-accounts","href":"/en/api-reference/cashouts/create-account"},{"title":"List cashouts","openapi":"api-reference/openapi.json GET /v1/cashouts","href":"/en/api-reference/cashouts/list"},{"title":"Get cashout","openapi":"api-reference/openapi.json GET /v1/cashouts/{id}","href":"/en/api-reference/cashouts/get"},{"title":"Cancel cashout","openapi":"api-reference/openapi.json POST /v1/cashouts/{id}/cancel","href":"/en/api-reference/cashouts/cancel"},{"title":"Simulate cashout","openapi":"api-reference/openapi.json POST /v1/cashouts/{id}/simulate","href":"/en/api-reference/cashouts/simulate"}]}]}]}]},"basePath":"","title":"Get balance - Safefy Pay","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}