POST
/withdraw/qrcodeWITHDRAWSaque via QR Code
Requer permissão WITHDRAW no token.
Realiza um saque usando um QR Code Pix como destino. Se o QR Code for dinâmico (com valor embutido), o campo `amount` é ignorado. Se for estático (sem valor), `amount` é obrigatório.
Na resposta, o campo `withdrawQrCodeText` conterá o payload EMV enviado no campo `qrCode`. Os campos `withdrawPixKey` e `withdrawPixType` serão `null` para este tipo de saque.
Headers
| Authorization | Bearer <seu_token> |
| Content-Type | application/json |
Body da requisiçãoobrigatório
| Campo | Tipo | Descrição |
|---|---|---|
qrCode* | string | Payload Pix Copia e Cola do QR Code de destino |
amount | number | Obrigatório quando o QR Code não contém valor fixo |
callbackUrl | stringuri | — |
description | string | — |
clientReference | string | — |
Respostas
Saque criado com sucesso
| Campo | Tipo | Descrição |
|---|---|---|
id | string | — |
type | TransactionType | DEPOSITWITHDRAWCOMMISSION |
status | TransactionStatus | PENDINGCOMPLETEDCANCELEDWAITING_FOR_REFUNDREFUNDEDEXPIREDERROR |
amount | number | — |
serviceFeeCharged | number? | — |
clientReference | string? | — |
qrCodeText | string? | — |
qrCodeUrl | string? | — |
qrCodeBase64 | string? | — |
generatedName | string? | — |
generatedDocument | string? | — |
generatedEmail | string? | — |
payerName | string? | — |
payerDocument | string? | — |
payerInstitutionIspb | string? | — |
payerInstitutionName | string? | — |
receiverName | string? | — |
receiverDocument | string? | — |
receiverInstitutionIspb | string? | — |
receiverInstitutionName | string? | — |
withdrawPixKey | string? | Chave PIX usada no saque (preenchido em saque via chave) |
withdrawPixType | PixType? | Tipo da chave PIX (preenchido em saque via chave) cpfcnpjemailphoneevp |
withdrawQrCodeText | string? | Payload EMV Pix Copia e Cola usado no saque (preenchido em saque via QR Code) |
endToEndId | string? | — |
cancellationReason | string? | — |
paidAt | string?date-time | — |
refundEndToEndId | string? | — |
refundAmount | number? | — |
refundStatus | RefundStatus? | PENDINGCOMPLETEDCANCELED |
refundReason | RefundReason? | CUSTOMER_REQUESTDENY_COMPANY_DEPOSITINFRACTION |
refundDescription | string? | — |
refundedAt | string?date-time | — |
createdAt | stringdate-time | — |
updatedAt | stringdate-time | — |
Exemplos
curl "https://api.evopay.cash/v1/withdraw/qrcode" \
-X POST \
-H "Authorization: Bearer <seu_token>" \
-H "Content-Type: application/json" \
--data-raw '{
"qrCode": "exemplo",
"amount": 100,
"callbackUrl": "https://seu-servidor.com/webhook",
"description": "exemplo",
"clientReference": "exemplo"
}'