Skip to main content
POST
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;
  • 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.

Authorizations

Authorization
string
header
required

Token JWT obtido via /v1/auth/token

Body

application/json
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"

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"

Response

Saque solicitado com sucesso

data
object | null
message
string | null
error
object | null