{
"data": null,
"message": null,
"error": {
"message": "Erro ao processar o saque. Tente novamente.",
"code": "internal_error"
}
}
Creates a cashout from the available balance to a PIX key or a previously registered and verified crypto wallet.Provide exactly one destination:
pixKeyType + pixKey for a PIX cashout;
payoutAccountId for a PIX cashout to a cashout account already registered and active in the dashboard;
cryptoPayoutAccountId for an XGate crypto cashout.
The merchant is identified by the API token. The active XGate crypto configuration is selected automatically; no acquirer identifier is required.
Crypto wallets must be registered and verified in the Safefy panel before requesting a cashout. The API does not accept an arbitrary wallet address in the request body.
This endpoint requires credential permission cashouts.write.
If cashouts.allowAnyPixKey is disabled, arbitrary PIX destination keys are not allowed.
Always use withdrawNowAvailable from GET /v1/balance.
If requiresFullWithdrawalNow is true, the cashout amount must be exactly withdrawNowAvailable.
Choose the settlement group
The balance can be split into settlement groups. The settlementGroupId field is optional:
Without settlementGroupId: nothing changes. The group is selected automatically and the amount follows withdrawNowAvailable.
With settlementGroupId: the cashout comes from that group, and the amount can go up to that group’s available.
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.
Errors
HTTP
Code
When
What to do
404
settlement_group_not_found
The id does not exist or belongs to another account
Get the balance again and use a current id
400
settlement_group_unavailable
The group does not accept cashouts right now
Pick another group or send without settlementGroupId
400
insufficient_balance
The amount is above the group’s available
Lower the amount or pick another group
404
payout_account_not_found
The payoutAccountId does not exist, is inactive or belongs to another account
Check the cashout account in the dashboard
settlementGroupId cannot be combined with cryptoPayoutAccountId: the request is rejected with a validation error (400).
Authorizations
Authorization
string
header
required
Token JWT obtido via /v1/auth/token
Body
application/json
Option 1
Option 2
Option 3
amount
integer<int64>
required
Valor do saque em centavos. Exemplo: R$ 500,00 = 50000.
Example:
50000
pixKeyType
enum<string>
required
Tipo da chave PIX de destino.
Available options:
CPF,
CNPJ,
Email,
Phone,
Random
Example:
"CPF"
pixKey
string
required
Chave PIX de destino.
Example:
"12345678901"
payoutAccountId
string<uuid> | null
ID de uma conta de saque PIX cadastrada e ativa no painel. Alternativa a pixKeyType/pixKey; exclusivo com eles e com cryptoPayoutAccountId.
Example:
"5b7c1e2a-3d4f-4a6b-8c9d-0e1f2a3b4c5d"
cryptoPayoutAccountId
string<uuid> | null
ID de uma carteira cripto ativa e verificada. Exclusivo com pixKeyType/pixKey; a XGate é selecionada automaticamente.
Example:
"8d08f5d2-c6f6-4df9-b42f-6944aec3b177"
externalId
string | null
ID externo no seu sistema para referencia cruzada.
Example:
"saque_001"
callbackUrl
string | null
URL para receber webhooks de atualizacao de status do saque.
Example:
"https://seusite.com.br/webhook/cashout"
settlementGroupId
string<uuid> | null
Opcional. Grupo de liquidacao de onde o saque sai: use um id de balance.settlementGroups consultado logo antes do saque. Sem o campo, o grupo e escolhido automaticamente. Nao pode ser usado com cryptoPayoutAccountId.
Example:
"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b"
Response
Saque solicitado com sucesso
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/cashouts/create","slug":"/en/api-reference/cashouts/create","pageMetadata":{"title":"Create cashout","description":"Request a PIX or crypto wallet withdrawal","openapi":"api-reference/openapi.json POST /v1/cashouts","href":"/en/api-reference/cashouts/create"},"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: \"Request a PIX or crypto wallet withdrawal\"\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`,ol:`ol`,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,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,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:[_jsx(_components.p,{children:`Creates a cashout from the available balance to a PIX key or a previously registered and verified crypto wallet.`}),`\n`,_jsx(_components.p,{children:`Provide exactly one destination:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pixKeyType`}),` + `,_jsx(_components.code,{children:`pixKey`}),` for a PIX cashout;`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`payoutAccountId`}),` for a PIX cashout to a cashout account already registered and active in the dashboard;`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`cryptoPayoutAccountId`}),` for an XGate crypto cashout.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The merchant is identified by the API token. The active XGate crypto configuration is selected automatically; no acquirer identifier is required.`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Crypto wallets must be registered and verified in the Safefy panel before requesting a cashout. The API does not accept an arbitrary wallet address in the request body.`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint requires credential permission `,_jsx(_components.code,{children:`cashouts.write`}),`.\nIf `,_jsx(_components.code,{children:`cashouts.allowAnyPixKey`}),` is disabled, arbitrary PIX destination keys are not allowed.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Always use `,_jsx(_components.code,{children:`withdrawNowAvailable`}),` from `,_jsx(_components.a,{href:`/en/api-reference/balance/get`,children:_jsx(_components.code,{children:`GET /v1/balance`})}),`.\nIf `,_jsx(_components.code,{children:`requiresFullWithdrawalNow`}),` is `,_jsx(_components.code,{children:`true`}),`, the cashout amount must be exactly `,_jsx(_components.code,{children:`withdrawNowAvailable`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`choose-the-settlement-group`,children:`Choose the settlement group`}),`\n`,_jsxs(_components.p,{children:[`The balance can be split into `,_jsx(_components.a,{href:`/en/api-reference/balance/get`,children:`settlement groups`}),`. The `,_jsx(_components.code,{children:`settlementGroupId`}),` field is `,_jsx(_components.strong,{children:`optional`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Without `,_jsx(_components.code,{children:`settlementGroupId`}),`:`]}),` nothing changes. The group is selected automatically and the amount follows `,_jsx(_components.code,{children:`withdrawNowAvailable`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`With `,_jsx(_components.code,{children:`settlementGroupId`}),`:`]}),` the cashout comes from that group, and the amount can go up to that group’s `,_jsx(_components.code,{children:`available`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`step-by-step`,children:`Step by step`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Call `,_jsx(_components.a,{href:`/en/api-reference/balance/get`,children:_jsx(_components.code,{children:`GET /v1/balance`})}),`.`]}),`\n`,_jsxs(_components.li,{children:[`In `,_jsx(_components.code,{children:`balance.settlementGroups`}),`, pick the group and take its `,_jsx(_components.code,{children:`id`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Right after that, create the cashout sending that `,_jsx(_components.code,{children:`id`}),` as `,_jsx(_components.code,{children:`settlementGroupId`}),`:`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50000`}),_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:` \"pixKeyType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Email\"`}),_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:` \"pixKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"finance@company.com\"`}),_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:` \"settlementGroupId\"`}),_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\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\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`,_jsx(_components.li,{children:_jsx(_components.strong,{children:`Do not use the list position or the name “Group 1” as an identifier.`})}),`\n`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`When`}),_jsx(_components.th,{children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`settlement_group_not_found`})}),_jsx(_components.td,{children:`The id does not exist or belongs to another account`}),_jsx(_components.td,{children:`Get the balance again and use a current id`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`settlement_group_unavailable`})}),_jsx(_components.td,{children:`The group does not accept cashouts right now`}),_jsxs(_components.td,{children:[`Pick another group or send without `,_jsx(_components.code,{children:`settlementGroupId`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_balance`})}),_jsxs(_components.td,{children:[`The amount is above the group’s `,_jsx(_components.code,{children:`available`})]}),_jsx(_components.td,{children:`Lower the amount or pick another group`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`payout_account_not_found`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`payoutAccountId`}),` does not exist, is inactive or belongs to another account`]}),_jsx(_components.td,{children:`Check the cashout account in the dashboard`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`settlementGroupId`}),` cannot be combined with `,_jsx(_components.code,{children:`cryptoPayoutAccountId`}),`: the request is rejected with a validation error (`,_jsx(_components.code,{children:`400`}),`).`]})]})}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":"Create cashout","description":"Request a PIX or crypto wallet withdrawal","openapi":"api-reference/openapi.json POST /v1/cashouts","href":"/en/api-reference/cashouts/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Choose the settlement group","slug":"choose-the-settlement-group","depth":2,"children":[{"title":"Step by step","slug":"step-by-step","depth":3,"children":[]},{"title":"Errors","slug":"errors","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Saques"],"summary":"Solicitar saque","description":"Request a PIX or crypto wallet withdrawal","operationId":"createCashout","requestBody":"0c5060f8-9c88-47fd-912f-7b3bd45826aa","responses":{"201":"e35c8fcf-cd48-4591-8605-3a1bacc74048","400":"cea44c1a-f121-4fe6-8e1f-b13c428b6436","401":"1dae6a10-9c06-4342-a70a-981e2796fec0","500":"0df06f0e-9ab1-4792-bb93-0461388ef596"},"method":"post","type":"path","servers":["ad42bb95-9ee9-43f3-8b75-5b69e2293265"],"security":["d07cda11-4db3-44ec-8c53-a5a5d3b18ae3"],"path":"/v1/cashouts","baseUrlOptions":["https://api-payment.safefypay.com.br"],"title":"Solicitar saque","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go","java"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.oneOf.0.amount":50000,"body.oneOf.0.pixKeyType":"CPF","body.oneOf.0.pixKey":"123.456.789-09","body.oneOf.0.externalId.oneOf.0":"saque_001","body.oneOf.0.callbackUrl.oneOf.0":"https://seusite.com.br/webhook/cashout"},{"body.oneOf.2.amount":50000,"body.oneOf.2.cryptoPayoutAccountId.oneOf.0":"8d08f5d2-c6f6-4df9-b42f-6944aec3b177","body.oneOf.2.externalId.oneOf.0":"saque_crypto_001","body.oneOf.2.callbackUrl.oneOf.0":"https://seusite.com.br/webhook/cashout"}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["amount","pixKeyType","pixKey"],"properties":{"amount":{"type":"integer","format":"int64","description":"Valor do saque em centavos. Exemplo: R$ 500,00 = 50000.","example":50000,"isRequired":true,"uniqueKey":"oneOf.0.amount","typeLabel":"integer\u003cint64>"},"pixKeyType":{"type":"string","enum":["CPF","CNPJ","Email","Phone","Random"],"description":"Tipo da chave PIX de destino.","example":"CPF","isRequired":true,"uniqueKey":"oneOf.0.pixKeyType","typeLabel":"enum\u003cstring>"},"pixKey":{"type":"string","description":"Chave PIX de destino.","example":"12345678901","isRequired":true,"uniqueKey":"oneOf.0.pixKey","typeLabel":"string"},"payoutAccountId":{"oneOf":[{"type":"string","format":"uuid","description":"ID de uma conta de saque PIX cadastrada e ativa no painel. Alternativa a pixKeyType/pixKey; exclusivo com eles e com cryptoPayoutAccountId.","example":"5b7c1e2a-3d4f-4a6b-8c9d-0e1f2a3b4c5d","uniqueKey":"oneOf.0.payoutAccountId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID de uma conta de saque PIX cadastrada e ativa no painel. Alternativa a pixKeyType/pixKey; exclusivo com eles e com cryptoPayoutAccountId.","example":"5b7c1e2a-3d4f-4a6b-8c9d-0e1f2a3b4c5d","uniqueKey":"oneOf.0.payoutAccountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.payoutAccountId","typeLabel":"string\u003cuuid> | null"},"cryptoPayoutAccountId":{"oneOf":[{"type":"string","format":"uuid","description":"ID de uma carteira cripto ativa e verificada. Exclusivo com pixKeyType/pixKey; a XGate é selecionada automaticamente.","example":"8d08f5d2-c6f6-4df9-b42f-6944aec3b177","uniqueKey":"oneOf.0.cryptoPayoutAccountId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID de uma carteira cripto ativa e verificada. Exclusivo com pixKeyType/pixKey; a XGate é selecionada automaticamente.","example":"8d08f5d2-c6f6-4df9-b42f-6944aec3b177","uniqueKey":"oneOf.0.cryptoPayoutAccountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.cryptoPayoutAccountId","typeLabel":"string\u003cuuid> | null"},"externalId":{"oneOf":[{"type":"string","description":"ID externo no seu sistema para referencia cruzada.","example":"saque_001","uniqueKey":"oneOf.0.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo no seu sistema para referencia cruzada.","example":"saque_001","uniqueKey":"oneOf.0.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.externalId","typeLabel":"string | null"},"callbackUrl":{"oneOf":[{"type":"string","description":"URL para receber webhooks de atualizacao de status do saque.","example":"https://seusite.com.br/webhook/cashout","uniqueKey":"oneOf.0.callbackUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL para receber webhooks de atualizacao de status do saque.","example":"https://seusite.com.br/webhook/cashout","uniqueKey":"oneOf.0.callbackUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.callbackUrl","typeLabel":"string | null"},"settlementGroupId":{"oneOf":[{"type":"string","format":"uuid","description":"Opcional. Grupo de liquidacao de onde o saque sai: use um id de balance.settlementGroups consultado logo antes do saque. Sem o campo, o grupo e escolhido automaticamente. Nao pode ser usado com cryptoPayoutAccountId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b","uniqueKey":"oneOf.0.settlementGroupId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Opcional. Grupo de liquidacao de onde o saque sai: use um id de balance.settlementGroups consultado logo antes do saque. Sem o campo, o grupo e escolhido automaticamente. Nao pode ser usado com cryptoPayoutAccountId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b","uniqueKey":"oneOf.0.settlementGroupId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.settlementGroupId","typeLabel":"string\u003cuuid> | null"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["amount","payoutAccountId"],"properties":{"amount":{"type":"integer","format":"int64","description":"Valor do saque em centavos. Exemplo: R$ 500,00 = 50000.","example":50000,"isRequired":true,"uniqueKey":"oneOf.1.amount","typeLabel":"integer\u003cint64>"},"payoutAccountId":{"oneOf":[{"type":"string","format":"uuid","description":"ID de uma conta de saque PIX cadastrada e ativa no painel. Alternativa a pixKeyType/pixKey; exclusivo com eles e com cryptoPayoutAccountId.","example":"5b7c1e2a-3d4f-4a6b-8c9d-0e1f2a3b4c5d","isRequired":true,"uniqueKey":"oneOf.1.payoutAccountId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID de uma conta de saque PIX cadastrada e ativa no painel. Alternativa a pixKeyType/pixKey; exclusivo com eles e com cryptoPayoutAccountId.","example":"5b7c1e2a-3d4f-4a6b-8c9d-0e1f2a3b4c5d","isRequired":true,"uniqueKey":"oneOf.1.payoutAccountId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.payoutAccountId","typeLabel":"string\u003cuuid> | null"},"pixKeyType":{"type":"string","enum":["CPF","CNPJ","Email","Phone","Random"],"description":"Tipo da chave PIX de destino.","example":"CPF","uniqueKey":"oneOf.1.pixKeyType","typeLabel":"enum\u003cstring>"},"pixKey":{"type":"string","description":"Chave PIX de destino.","example":"12345678901","uniqueKey":"oneOf.1.pixKey","typeLabel":"string"},"cryptoPayoutAccountId":{"oneOf":[{"type":"string","format":"uuid","description":"ID de uma carteira cripto ativa e verificada. Exclusivo com pixKeyType/pixKey; a XGate é selecionada automaticamente.","example":"8d08f5d2-c6f6-4df9-b42f-6944aec3b177","uniqueKey":"oneOf.1.cryptoPayoutAccountId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID de uma carteira cripto ativa e verificada. Exclusivo com pixKeyType/pixKey; a XGate é selecionada automaticamente.","example":"8d08f5d2-c6f6-4df9-b42f-6944aec3b177","uniqueKey":"oneOf.1.cryptoPayoutAccountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.cryptoPayoutAccountId","typeLabel":"string\u003cuuid> | null"},"externalId":{"oneOf":[{"type":"string","description":"ID externo no seu sistema para referencia cruzada.","example":"saque_001","uniqueKey":"oneOf.1.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo no seu sistema para referencia cruzada.","example":"saque_001","uniqueKey":"oneOf.1.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.externalId","typeLabel":"string | null"},"callbackUrl":{"oneOf":[{"type":"string","description":"URL para receber webhooks de atualizacao de status do saque.","example":"https://seusite.com.br/webhook/cashout","uniqueKey":"oneOf.1.callbackUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL para receber webhooks de atualizacao de status do saque.","example":"https://seusite.com.br/webhook/cashout","uniqueKey":"oneOf.1.callbackUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.callbackUrl","typeLabel":"string | null"},"settlementGroupId":{"oneOf":[{"type":"string","format":"uuid","description":"Opcional. Grupo de liquidacao de onde o saque sai: use um id de balance.settlementGroups consultado logo antes do saque. Sem o campo, o grupo e escolhido automaticamente. Nao pode ser usado com cryptoPayoutAccountId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b","uniqueKey":"oneOf.1.settlementGroupId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Opcional. Grupo de liquidacao de onde o saque sai: use um id de balance.settlementGroups consultado logo antes do saque. Sem o campo, o grupo e escolhido automaticamente. Nao pode ser usado com cryptoPayoutAccountId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b","uniqueKey":"oneOf.1.settlementGroupId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.settlementGroupId","typeLabel":"string\u003cuuid> | null"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["amount","cryptoPayoutAccountId"],"properties":{"amount":{"type":"integer","format":"int64","description":"Valor do saque em centavos. Exemplo: R$ 500,00 = 50000.","example":50000,"isRequired":true,"uniqueKey":"oneOf.2.amount","typeLabel":"integer\u003cint64>"},"cryptoPayoutAccountId":{"oneOf":[{"type":"string","format":"uuid","description":"ID de uma carteira cripto ativa e verificada. Exclusivo com pixKeyType/pixKey; a XGate é selecionada automaticamente.","example":"8d08f5d2-c6f6-4df9-b42f-6944aec3b177","isRequired":true,"uniqueKey":"oneOf.2.cryptoPayoutAccountId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID de uma carteira cripto ativa e verificada. Exclusivo com pixKeyType/pixKey; a XGate é selecionada automaticamente.","example":"8d08f5d2-c6f6-4df9-b42f-6944aec3b177","isRequired":true,"uniqueKey":"oneOf.2.cryptoPayoutAccountId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.2.cryptoPayoutAccountId","typeLabel":"string\u003cuuid> | null"},"pixKeyType":{"type":"string","enum":["CPF","CNPJ","Email","Phone","Random"],"description":"Tipo da chave PIX de destino.","example":"CPF","uniqueKey":"oneOf.2.pixKeyType","typeLabel":"enum\u003cstring>"},"pixKey":{"type":"string","description":"Chave PIX de destino.","example":"12345678901","uniqueKey":"oneOf.2.pixKey","typeLabel":"string"},"payoutAccountId":{"oneOf":[{"type":"string","format":"uuid","description":"ID de uma conta de saque PIX cadastrada e ativa no painel. Alternativa a pixKeyType/pixKey; exclusivo com eles e com cryptoPayoutAccountId.","example":"5b7c1e2a-3d4f-4a6b-8c9d-0e1f2a3b4c5d","uniqueKey":"oneOf.2.payoutAccountId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID de uma conta de saque PIX cadastrada e ativa no painel. Alternativa a pixKeyType/pixKey; exclusivo com eles e com cryptoPayoutAccountId.","example":"5b7c1e2a-3d4f-4a6b-8c9d-0e1f2a3b4c5d","uniqueKey":"oneOf.2.payoutAccountId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.payoutAccountId","typeLabel":"string\u003cuuid> | null"},"externalId":{"oneOf":[{"type":"string","description":"ID externo no seu sistema para referencia cruzada.","example":"saque_001","uniqueKey":"oneOf.2.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo no seu sistema para referencia cruzada.","example":"saque_001","uniqueKey":"oneOf.2.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.externalId","typeLabel":"string | null"},"callbackUrl":{"oneOf":[{"type":"string","description":"URL para receber webhooks de atualizacao de status do saque.","example":"https://seusite.com.br/webhook/cashout","uniqueKey":"oneOf.2.callbackUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL para receber webhooks de atualizacao de status do saque.","example":"https://seusite.com.br/webhook/cashout","uniqueKey":"oneOf.2.callbackUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.callbackUrl","typeLabel":"string | null"},"settlementGroupId":{"oneOf":[{"type":"string","format":"uuid","description":"Opcional. Grupo de liquidacao de onde o saque sai: use um id de balance.settlementGroups consultado logo antes do saque. Sem o campo, o grupo e escolhido automaticamente. Nao pode ser usado com cryptoPayoutAccountId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b","uniqueKey":"oneOf.2.settlementGroupId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Opcional. Grupo de liquidacao de onde o saque sai: use um id de balance.settlementGroups consultado logo antes do saque. Sem o campo, o grupo e escolhido automaticamente. Nao pode ser usado com cryptoPayoutAccountId.","example":"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b","uniqueKey":"oneOf.2.settlementGroupId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.settlementGroupId","typeLabel":"string\u003cuuid> | null"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"pix-inline":{"title":"pix-inline","summary":"Usando chave PIX","value":{"amount":50000,"pixKeyType":"CPF","pixKey":"123.456.789-09","externalId":"saque_001","callbackUrl":"https://seusite.com.br/webhook/cashout"}},"crypto-wallet":{"title":"crypto-wallet","summary":"Usando carteira cripto verificada","value":{"amount":50000,"cryptoPayoutAccountId":"8d08f5d2-c6f6-4df9-b42f-6944aec3b177","externalId":"saque_crypto_001","callbackUrl":"https://seusite.com.br/webhook/cashout"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"e35c8fcf-cd48-4591-8605-3a1bacc74048":{"description":"Saque solicitado com sucesso","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID unico do saque","example":"b2c3d4e5-f6a7-8901-bcde-f23456789012","uniqueKey":"data.oneOf.0.id","typeLabel":"string\u003cuuid>"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"saque_001","uniqueKey":"data.oneOf.0.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo informado","example":"saque_001","uniqueKey":"data.oneOf.0.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.externalId","typeLabel":"string | null"},"amount":{"type":"integer","format":"int64","description":"Valor solicitado (centavos)","example":50000,"uniqueKey":"data.oneOf.0.amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada (centavos)","example":200,"uniqueKey":"data.oneOf.0.fee","typeLabel":"integer\u003cint64>"},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido (centavos)","example":49800,"uniqueKey":"data.oneOf.0.netAmount","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"Moeda","example":"BRL","uniqueKey":"data.oneOf.0.currency","typeLabel":"string"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Rejected","Cancelled"],"description":"Status do saque","example":"Pending","uniqueKey":"data.oneOf.0.status","typeLabel":"enum\u003cstring>"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox","uniqueKey":"data.oneOf.0.environment","typeLabel":"enum\u003cstring>"},"pix":{"type":"object","properties":{"pixKeyType":{"oneOf":[{"type":"string","description":"Tipo da chave PIX","example":"CPF","uniqueKey":"data.oneOf.0.pix.pixKeyType.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tipo da chave PIX","example":"CPF","uniqueKey":"data.oneOf.0.pix.pixKeyType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.pixKeyType","typeLabel":"string | null"},"pixKey":{"oneOf":[{"type":"string","description":"Chave PIX (mascarada)","example":"***456789**","uniqueKey":"data.oneOf.0.pix.pixKey.oneOf.0","typeLabel":"string"},{"type":"null","description":"Chave PIX (mascarada)","example":"***456789**","uniqueKey":"data.oneOf.0.pix.pixKey.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.pixKey","typeLabel":"string | null"},"endToEndId":{"oneOf":[{"type":"string","description":"ID da transacao PIX","example":null,"uniqueKey":"data.oneOf.0.pix.endToEndId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID da transacao PIX","example":null,"uniqueKey":"data.oneOf.0.pix.endToEndId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.endToEndId","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.0.pix","typeLabel":"object"},"crypto":{"oneOf":[{"type":"object","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef","uniqueKey":"data.oneOf.0.crypto.oneOf.0.walletAddress","typeLabel":"string"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20","uniqueKey":"data.oneOf.0.crypto.oneOf.0.networkSymbol","typeLabel":"string"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT","uniqueKey":"data.oneOf.0.crypto.oneOf.0.cryptoSymbol","typeLabel":"string"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null,"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null,"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.0.crypto.oneOf.0","typeLabel":"object"},{"type":"null","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}},"uniqueKey":"data.oneOf.0.crypto.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.crypto","typeLabel":"object | null"},"requestedAt":{"type":"string","format":"date-time","description":"Data da solicitacao","example":"2025-01-15T16:00:00Z","uniqueKey":"data.oneOf.0.requestedAt","typeLabel":"string\u003cdate-time>"},"processedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data do inicio do processamento","example":null,"uniqueKey":"data.oneOf.0.processedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data do inicio do processamento","example":null,"uniqueKey":"data.oneOf.0.processedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.processedAt","typeLabel":"string\u003cdate-time> | null"},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data da conclusao","example":null,"uniqueKey":"data.oneOf.0.completedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data da conclusao","example":null,"uniqueKey":"data.oneOf.0.completedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.completedAt","typeLabel":"string\u003cdate-time> | null"},"failureReason":{"oneOf":[{"type":"string","description":"Motivo da falha","example":null,"uniqueKey":"data.oneOf.0.failureReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Motivo da falha","example":null,"uniqueKey":"data.oneOf.0.failureReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.failureReason","typeLabel":"string | null"},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T16:00:00Z","uniqueKey":"data.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"type":"string","format":"uuid","description":"ID unico do saque","example":"b2c3d4e5-f6a7-8901-bcde-f23456789012"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"saque_001"},{"type":"null","description":"ID externo informado","example":"saque_001"}]},"amount":{"type":"integer","format":"int64","description":"Valor solicitado (centavos)","example":50000},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada (centavos)","example":200},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido (centavos)","example":49800},"currency":{"type":"string","description":"Moeda","example":"BRL"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Rejected","Cancelled"],"description":"Status do saque","example":"Pending"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox"},"pix":{"type":"object","properties":{"pixKeyType":{"oneOf":[{"type":"string","description":"Tipo da chave PIX","example":"CPF"},{"type":"null","description":"Tipo da chave PIX","example":"CPF"}]},"pixKey":{"oneOf":[{"type":"string","description":"Chave PIX (mascarada)","example":"***456789**"},{"type":"null","description":"Chave PIX (mascarada)","example":"***456789**"}]},"endToEndId":{"oneOf":[{"type":"string","description":"ID da transacao PIX","example":null},{"type":"null","description":"ID da transacao PIX","example":null}]}}},"crypto":{"oneOf":[{"type":"object","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}}},{"type":"null","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}}}]},"requestedAt":{"type":"string","format":"date-time","description":"Data da solicitacao","example":"2025-01-15T16:00:00Z"},"processedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data do inicio do processamento","example":null},{"type":"null","format":"date-time","description":"Data do inicio do processamento","example":null}]},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data da conclusao","example":null},{"type":"null","format":"date-time","description":"Data da conclusao","example":null}]},"failureReason":{"oneOf":[{"type":"string","description":"Motivo da falha","example":null},{"type":"null","description":"Motivo da falha","example":null}]},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T16: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":{"id":"b2c3d4e5-f6a7-8901-bcde-f23456789012","externalId":"saque_001","amount":50000,"fee":200,"netAmount":49800,"currency":"BRL","status":"Pending","environment":"Sandbox","pix":{"pixKeyType":"CPF","pixKey":"***456789**","endToEndId":null},"crypto":null,"requestedAt":"2025-01-15T16:00:00Z","processedAt":null,"completedAt":null,"failureReason":null,"createdAt":"2025-01-15T16:00:00Z"},"message":"Saque solicitado com sucesso.","error":null},"examples":{"Example":{"title":"Example","value":{"data":{"id":"b2c3d4e5-f6a7-8901-bcde-f23456789012","externalId":"saque_001","amount":50000,"fee":200,"netAmount":49800,"currency":"BRL","status":"Pending","environment":"Sandbox","pix":{"pixKeyType":"CPF","pixKey":"***456789**","endToEndId":null},"crypto":null,"requestedAt":"2025-01-15T16:00:00Z","processedAt":null,"completedAt":null,"failureReason":null,"createdAt":"2025-01-15T16:00:00Z"},"message":"Saque solicitado com sucesso.","error":null}}},"exampleType":"examples"}},"exampleType":"examples"},"cea44c1a-f121-4fe6-8e1f-b13c428b6436":{"description":"Dados invalidos ou saldo insuficiente","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID unico do saque","example":"b2c3d4e5-f6a7-8901-bcde-f23456789012","uniqueKey":"data.oneOf.0.id","typeLabel":"string\u003cuuid>"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"saque_001","uniqueKey":"data.oneOf.0.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo informado","example":"saque_001","uniqueKey":"data.oneOf.0.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.externalId","typeLabel":"string | null"},"amount":{"type":"integer","format":"int64","description":"Valor solicitado (centavos)","example":50000,"uniqueKey":"data.oneOf.0.amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada (centavos)","example":200,"uniqueKey":"data.oneOf.0.fee","typeLabel":"integer\u003cint64>"},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido (centavos)","example":49800,"uniqueKey":"data.oneOf.0.netAmount","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"Moeda","example":"BRL","uniqueKey":"data.oneOf.0.currency","typeLabel":"string"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Rejected","Cancelled"],"description":"Status do saque","example":"Pending","uniqueKey":"data.oneOf.0.status","typeLabel":"enum\u003cstring>"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox","uniqueKey":"data.oneOf.0.environment","typeLabel":"enum\u003cstring>"},"pix":{"type":"object","properties":{"pixKeyType":{"oneOf":[{"type":"string","description":"Tipo da chave PIX","example":"CPF","uniqueKey":"data.oneOf.0.pix.pixKeyType.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tipo da chave PIX","example":"CPF","uniqueKey":"data.oneOf.0.pix.pixKeyType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.pixKeyType","typeLabel":"string | null"},"pixKey":{"oneOf":[{"type":"string","description":"Chave PIX (mascarada)","example":"***456789**","uniqueKey":"data.oneOf.0.pix.pixKey.oneOf.0","typeLabel":"string"},{"type":"null","description":"Chave PIX (mascarada)","example":"***456789**","uniqueKey":"data.oneOf.0.pix.pixKey.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.pixKey","typeLabel":"string | null"},"endToEndId":{"oneOf":[{"type":"string","description":"ID da transacao PIX","example":null,"uniqueKey":"data.oneOf.0.pix.endToEndId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID da transacao PIX","example":null,"uniqueKey":"data.oneOf.0.pix.endToEndId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.endToEndId","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.0.pix","typeLabel":"object"},"crypto":{"oneOf":[{"type":"object","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef","uniqueKey":"data.oneOf.0.crypto.oneOf.0.walletAddress","typeLabel":"string"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20","uniqueKey":"data.oneOf.0.crypto.oneOf.0.networkSymbol","typeLabel":"string"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT","uniqueKey":"data.oneOf.0.crypto.oneOf.0.cryptoSymbol","typeLabel":"string"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null,"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null,"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.0.crypto.oneOf.0","typeLabel":"object"},{"type":"null","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}},"uniqueKey":"data.oneOf.0.crypto.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.crypto","typeLabel":"object | null"},"requestedAt":{"type":"string","format":"date-time","description":"Data da solicitacao","example":"2025-01-15T16:00:00Z","uniqueKey":"data.oneOf.0.requestedAt","typeLabel":"string\u003cdate-time>"},"processedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data do inicio do processamento","example":null,"uniqueKey":"data.oneOf.0.processedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data do inicio do processamento","example":null,"uniqueKey":"data.oneOf.0.processedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.processedAt","typeLabel":"string\u003cdate-time> | null"},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data da conclusao","example":null,"uniqueKey":"data.oneOf.0.completedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data da conclusao","example":null,"uniqueKey":"data.oneOf.0.completedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.completedAt","typeLabel":"string\u003cdate-time> | null"},"failureReason":{"oneOf":[{"type":"string","description":"Motivo da falha","example":null,"uniqueKey":"data.oneOf.0.failureReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Motivo da falha","example":null,"uniqueKey":"data.oneOf.0.failureReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.failureReason","typeLabel":"string | null"},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T16:00:00Z","uniqueKey":"data.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"type":"string","format":"uuid","description":"ID unico do saque","example":"b2c3d4e5-f6a7-8901-bcde-f23456789012"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"saque_001"},{"type":"null","description":"ID externo informado","example":"saque_001"}]},"amount":{"type":"integer","format":"int64","description":"Valor solicitado (centavos)","example":50000},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada (centavos)","example":200},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido (centavos)","example":49800},"currency":{"type":"string","description":"Moeda","example":"BRL"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Rejected","Cancelled"],"description":"Status do saque","example":"Pending"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox"},"pix":{"type":"object","properties":{"pixKeyType":{"oneOf":[{"type":"string","description":"Tipo da chave PIX","example":"CPF"},{"type":"null","description":"Tipo da chave PIX","example":"CPF"}]},"pixKey":{"oneOf":[{"type":"string","description":"Chave PIX (mascarada)","example":"***456789**"},{"type":"null","description":"Chave PIX (mascarada)","example":"***456789**"}]},"endToEndId":{"oneOf":[{"type":"string","description":"ID da transacao PIX","example":null},{"type":"null","description":"ID da transacao PIX","example":null}]}}},"crypto":{"oneOf":[{"type":"object","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}}},{"type":"null","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}}}]},"requestedAt":{"type":"string","format":"date-time","description":"Data da solicitacao","example":"2025-01-15T16:00:00Z"},"processedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data do inicio do processamento","example":null},{"type":"null","format":"date-time","description":"Data do inicio do processamento","example":null}]},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data da conclusao","example":null},{"type":"null","format":"date-time","description":"Data da conclusao","example":null}]},"failureReason":{"oneOf":[{"type":"string","description":"Motivo da falha","example":null},{"type":"null","description":"Motivo da falha","example":null}]},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T16: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":"Saldo insuficiente para realizar o saque.","code":"insufficient_balance"}},"examples":{"Example":{"title":"Example","value":{"data":null,"message":null,"error":{"message":"Saldo insuficiente para realizar o saque.","code":"insufficient_balance"}}}},"exampleType":"examples"}},"exampleType":"examples"},"1dae6a10-9c06-4342-a70a-981e2796fec0":{"description":"Nao autorizado","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID unico do saque","example":"b2c3d4e5-f6a7-8901-bcde-f23456789012","uniqueKey":"data.oneOf.0.id","typeLabel":"string\u003cuuid>"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"saque_001","uniqueKey":"data.oneOf.0.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo informado","example":"saque_001","uniqueKey":"data.oneOf.0.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.externalId","typeLabel":"string | null"},"amount":{"type":"integer","format":"int64","description":"Valor solicitado (centavos)","example":50000,"uniqueKey":"data.oneOf.0.amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada (centavos)","example":200,"uniqueKey":"data.oneOf.0.fee","typeLabel":"integer\u003cint64>"},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido (centavos)","example":49800,"uniqueKey":"data.oneOf.0.netAmount","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"Moeda","example":"BRL","uniqueKey":"data.oneOf.0.currency","typeLabel":"string"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Rejected","Cancelled"],"description":"Status do saque","example":"Pending","uniqueKey":"data.oneOf.0.status","typeLabel":"enum\u003cstring>"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox","uniqueKey":"data.oneOf.0.environment","typeLabel":"enum\u003cstring>"},"pix":{"type":"object","properties":{"pixKeyType":{"oneOf":[{"type":"string","description":"Tipo da chave PIX","example":"CPF","uniqueKey":"data.oneOf.0.pix.pixKeyType.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tipo da chave PIX","example":"CPF","uniqueKey":"data.oneOf.0.pix.pixKeyType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.pixKeyType","typeLabel":"string | null"},"pixKey":{"oneOf":[{"type":"string","description":"Chave PIX (mascarada)","example":"***456789**","uniqueKey":"data.oneOf.0.pix.pixKey.oneOf.0","typeLabel":"string"},{"type":"null","description":"Chave PIX (mascarada)","example":"***456789**","uniqueKey":"data.oneOf.0.pix.pixKey.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.pixKey","typeLabel":"string | null"},"endToEndId":{"oneOf":[{"type":"string","description":"ID da transacao PIX","example":null,"uniqueKey":"data.oneOf.0.pix.endToEndId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID da transacao PIX","example":null,"uniqueKey":"data.oneOf.0.pix.endToEndId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.endToEndId","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.0.pix","typeLabel":"object"},"crypto":{"oneOf":[{"type":"object","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef","uniqueKey":"data.oneOf.0.crypto.oneOf.0.walletAddress","typeLabel":"string"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20","uniqueKey":"data.oneOf.0.crypto.oneOf.0.networkSymbol","typeLabel":"string"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT","uniqueKey":"data.oneOf.0.crypto.oneOf.0.cryptoSymbol","typeLabel":"string"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null,"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null,"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.0.crypto.oneOf.0","typeLabel":"object"},{"type":"null","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}},"uniqueKey":"data.oneOf.0.crypto.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.crypto","typeLabel":"object | null"},"requestedAt":{"type":"string","format":"date-time","description":"Data da solicitacao","example":"2025-01-15T16:00:00Z","uniqueKey":"data.oneOf.0.requestedAt","typeLabel":"string\u003cdate-time>"},"processedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data do inicio do processamento","example":null,"uniqueKey":"data.oneOf.0.processedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data do inicio do processamento","example":null,"uniqueKey":"data.oneOf.0.processedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.processedAt","typeLabel":"string\u003cdate-time> | null"},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data da conclusao","example":null,"uniqueKey":"data.oneOf.0.completedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data da conclusao","example":null,"uniqueKey":"data.oneOf.0.completedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.completedAt","typeLabel":"string\u003cdate-time> | null"},"failureReason":{"oneOf":[{"type":"string","description":"Motivo da falha","example":null,"uniqueKey":"data.oneOf.0.failureReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Motivo da falha","example":null,"uniqueKey":"data.oneOf.0.failureReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.failureReason","typeLabel":"string | null"},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T16:00:00Z","uniqueKey":"data.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"type":"string","format":"uuid","description":"ID unico do saque","example":"b2c3d4e5-f6a7-8901-bcde-f23456789012"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"saque_001"},{"type":"null","description":"ID externo informado","example":"saque_001"}]},"amount":{"type":"integer","format":"int64","description":"Valor solicitado (centavos)","example":50000},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada (centavos)","example":200},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido (centavos)","example":49800},"currency":{"type":"string","description":"Moeda","example":"BRL"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Rejected","Cancelled"],"description":"Status do saque","example":"Pending"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox"},"pix":{"type":"object","properties":{"pixKeyType":{"oneOf":[{"type":"string","description":"Tipo da chave PIX","example":"CPF"},{"type":"null","description":"Tipo da chave PIX","example":"CPF"}]},"pixKey":{"oneOf":[{"type":"string","description":"Chave PIX (mascarada)","example":"***456789**"},{"type":"null","description":"Chave PIX (mascarada)","example":"***456789**"}]},"endToEndId":{"oneOf":[{"type":"string","description":"ID da transacao PIX","example":null},{"type":"null","description":"ID da transacao PIX","example":null}]}}},"crypto":{"oneOf":[{"type":"object","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}}},{"type":"null","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}}}]},"requestedAt":{"type":"string","format":"date-time","description":"Data da solicitacao","example":"2025-01-15T16:00:00Z"},"processedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data do inicio do processamento","example":null},{"type":"null","format":"date-time","description":"Data do inicio do processamento","example":null}]},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data da conclusao","example":null},{"type":"null","format":"date-time","description":"Data da conclusao","example":null}]},"failureReason":{"oneOf":[{"type":"string","description":"Motivo da falha","example":null},{"type":"null","description":"Motivo da falha","example":null}]},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T16: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"},"0df06f0e-9ab1-4792-bb93-0461388ef596":{"description":"Erro interno","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID unico do saque","example":"b2c3d4e5-f6a7-8901-bcde-f23456789012","uniqueKey":"data.oneOf.0.id","typeLabel":"string\u003cuuid>"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"saque_001","uniqueKey":"data.oneOf.0.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo informado","example":"saque_001","uniqueKey":"data.oneOf.0.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.externalId","typeLabel":"string | null"},"amount":{"type":"integer","format":"int64","description":"Valor solicitado (centavos)","example":50000,"uniqueKey":"data.oneOf.0.amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada (centavos)","example":200,"uniqueKey":"data.oneOf.0.fee","typeLabel":"integer\u003cint64>"},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido (centavos)","example":49800,"uniqueKey":"data.oneOf.0.netAmount","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"Moeda","example":"BRL","uniqueKey":"data.oneOf.0.currency","typeLabel":"string"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Rejected","Cancelled"],"description":"Status do saque","example":"Pending","uniqueKey":"data.oneOf.0.status","typeLabel":"enum\u003cstring>"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox","uniqueKey":"data.oneOf.0.environment","typeLabel":"enum\u003cstring>"},"pix":{"type":"object","properties":{"pixKeyType":{"oneOf":[{"type":"string","description":"Tipo da chave PIX","example":"CPF","uniqueKey":"data.oneOf.0.pix.pixKeyType.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tipo da chave PIX","example":"CPF","uniqueKey":"data.oneOf.0.pix.pixKeyType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.pixKeyType","typeLabel":"string | null"},"pixKey":{"oneOf":[{"type":"string","description":"Chave PIX (mascarada)","example":"***456789**","uniqueKey":"data.oneOf.0.pix.pixKey.oneOf.0","typeLabel":"string"},{"type":"null","description":"Chave PIX (mascarada)","example":"***456789**","uniqueKey":"data.oneOf.0.pix.pixKey.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.pixKey","typeLabel":"string | null"},"endToEndId":{"oneOf":[{"type":"string","description":"ID da transacao PIX","example":null,"uniqueKey":"data.oneOf.0.pix.endToEndId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID da transacao PIX","example":null,"uniqueKey":"data.oneOf.0.pix.endToEndId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.pix.endToEndId","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.0.pix","typeLabel":"object"},"crypto":{"oneOf":[{"type":"object","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef","uniqueKey":"data.oneOf.0.crypto.oneOf.0.walletAddress","typeLabel":"string"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20","uniqueKey":"data.oneOf.0.crypto.oneOf.0.networkSymbol","typeLabel":"string"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT","uniqueKey":"data.oneOf.0.crypto.oneOf.0.cryptoSymbol","typeLabel":"string"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null,"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null,"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.crypto.oneOf.0.transactionId","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.0.crypto.oneOf.0","typeLabel":"object"},{"type":"null","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}},"uniqueKey":"data.oneOf.0.crypto.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.crypto","typeLabel":"object | null"},"requestedAt":{"type":"string","format":"date-time","description":"Data da solicitacao","example":"2025-01-15T16:00:00Z","uniqueKey":"data.oneOf.0.requestedAt","typeLabel":"string\u003cdate-time>"},"processedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data do inicio do processamento","example":null,"uniqueKey":"data.oneOf.0.processedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data do inicio do processamento","example":null,"uniqueKey":"data.oneOf.0.processedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.processedAt","typeLabel":"string\u003cdate-time> | null"},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data da conclusao","example":null,"uniqueKey":"data.oneOf.0.completedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data da conclusao","example":null,"uniqueKey":"data.oneOf.0.completedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.completedAt","typeLabel":"string\u003cdate-time> | null"},"failureReason":{"oneOf":[{"type":"string","description":"Motivo da falha","example":null,"uniqueKey":"data.oneOf.0.failureReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Motivo da falha","example":null,"uniqueKey":"data.oneOf.0.failureReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.failureReason","typeLabel":"string | null"},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T16:00:00Z","uniqueKey":"data.oneOf.0.createdAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"type":"string","format":"uuid","description":"ID unico do saque","example":"b2c3d4e5-f6a7-8901-bcde-f23456789012"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"saque_001"},{"type":"null","description":"ID externo informado","example":"saque_001"}]},"amount":{"type":"integer","format":"int64","description":"Valor solicitado (centavos)","example":50000},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada (centavos)","example":200},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido (centavos)","example":49800},"currency":{"type":"string","description":"Moeda","example":"BRL"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Rejected","Cancelled"],"description":"Status do saque","example":"Pending"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox"},"pix":{"type":"object","properties":{"pixKeyType":{"oneOf":[{"type":"string","description":"Tipo da chave PIX","example":"CPF"},{"type":"null","description":"Tipo da chave PIX","example":"CPF"}]},"pixKey":{"oneOf":[{"type":"string","description":"Chave PIX (mascarada)","example":"***456789**"},{"type":"null","description":"Chave PIX (mascarada)","example":"***456789**"}]},"endToEndId":{"oneOf":[{"type":"string","description":"ID da transacao PIX","example":null},{"type":"null","description":"ID da transacao PIX","example":null}]}}},"crypto":{"oneOf":[{"type":"object","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}}},{"type":"null","description":"Destino de saque cripto via XGate. O endereço é sempre mascarado.","properties":{"walletAddress":{"type":"string","description":"Endereço da carteira mascarado.","example":"0x1234…cdef"},"networkSymbol":{"type":"string","description":"Rede blockchain do saque.","example":"BEP-20"},"cryptoSymbol":{"type":"string","description":"Criptomoeda liquidada.","example":"USDT"},"transactionId":{"oneOf":[{"type":"string","description":"ID da transação retornado pela XGate, quando disponível.","example":null},{"type":"null","description":"ID da transação retornado pela XGate, quando disponível.","example":null}]}}}]},"requestedAt":{"type":"string","format":"date-time","description":"Data da solicitacao","example":"2025-01-15T16:00:00Z"},"processedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data do inicio do processamento","example":null},{"type":"null","format":"date-time","description":"Data do inicio do processamento","example":null}]},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data da conclusao","example":null},{"type":"null","format":"date-time","description":"Data da conclusao","example":null}]},"failureReason":{"oneOf":[{"type":"string","description":"Motivo da falha","example":null},{"type":"null","description":"Motivo da falha","example":null}]},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T16: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":"Erro ao processar o saque. Tente novamente.","code":"internal_error"}},"examples":{"Example":{"title":"Example","value":{"data":null,"message":null,"error":{"message":"Erro ao processar o saque. Tente novamente.","code":"internal_error"}}}},"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":"Create cashout - Safefy Pay","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/api-reference/cashouts/create","matchLevel":1},"en":{"href":"/en/api-reference/cashouts/create","matchLevel":0}}},"lastModified":"2026-10-05T19:37:02.495Z","originalFileLocation":"en/api-reference/cashouts/create.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=\"Request a PIX or crypto wallet withdrawal\">\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=\"Create cashout - Safefy Pay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Request a PIX or crypto wallet withdrawal\">\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/cashouts/create\">\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=Cashouts\u0026amp;title=Create+cashout\u0026amp;description=Request+a+PIX+or+crypto+wallet+withdrawal\u0026amp;theme=0ad0c3184b06c52d6e48184f\u0026amp;signature=f30cf552959dd83b46022ebcf50c467d1d3dddf7d260b87584e14a81d49bb848\">\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=\"Create cashout - Safefy Pay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Request a PIX or crypto wallet withdrawal\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://safefypay.mintlify.site/_mintlify/api/og/v2?division=Cashouts\u0026amp;title=Create+cashout\u0026amp;description=Request+a+PIX+or+crypto+wallet+withdrawal\u0026amp;theme=0ad0c3184b06c52d6e48184f\u0026amp;signature=f30cf552959dd83b46022ebcf50c467d1d3dddf7d260b87584e14a81d49bb848\">\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/cashouts/create\">\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/cashouts/create.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.safefypay.com.br/en/api-reference/cashouts/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.safefypay.com.br/api-reference/cashouts/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.safefypay.com.br/api-reference/cashouts/create\">\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/cashouts/create#webpage\",\"url\":\"https://docs.safefypay.com.br/en/api-reference/cashouts/create\",\"name\":\"Create cashout\",\"description\":\"Request a PIX or crypto wallet withdrawal\",\"dateModified\":\"2026-10-05T19:37:02.495Z\",\"isPartOf\":{\"@id\":\"https://docs.safefypay.com.br#website\"},\"breadcrumb\":{\"@id\":\"https://docs.safefypay.com.br/en/api-reference/cashouts/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.safefypay.com.br/en/api-reference/cashouts/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cashouts\",\"item\":\"https://docs.safefypay.com.br/en/api-reference/cashouts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create cashout\",\"item\":\"https://docs.safefypay.com.br/en/api-reference/cashouts/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.safefypay.com.br/en/api-reference/cashouts/create#apireference\",\"headline\":\"Create cashout\",\"name\":\"Create cashout\",\"description\":\"Request a PIX or crypto wallet withdrawal\",\"url\":\"https://docs.safefypay.com.br/en/api-reference/cashouts/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.safefypay.com.br/en/api-reference/cashouts/create#webpage\"},\"dateModified\":\"2026-10-05T19:37:02.495Z\",\"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/cashouts/create.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/cashouts/create"}]},{"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","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","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","description":"Webhook events sent for cashout status changes","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","description":"Create a PIX cashout account through the API","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":"Create cashout - 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"]}