MagnusPay
MagnusPay
POST/wallet/withdraw

Criar Saque

Solicita um saque via PIX para uma chave informada.

Request Body

ParâmetroTipo
amount*number
pixKey*string
pixKeyType*string
verificationCodestring

Exemplo de Request

curlbash
curl -X POST "https://api.magnuspay.com.br/wallet/withdraw" \
  -H "X-API-Key: magnus_sua_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 500.00,
    "pixKey": "12345678900",
    "pixKeyType": "CPF"
  }'

Resposta de Sucesso

201 Createdjson
{
  "success": true,
  "message": "Saque solicitado",
  "data": {
    "transactionId": "507f1f77bcf86cd799439011",
    "externalId": "txn_abc123",
    "status": "PENDING",
    "message": "Saque solicitado"
  }
}