GET
/transactionsListar Saques
Lista todas as transações (incluindo saques) com paginação. Filtre pelo campo type: "WITHDRAW" no resultado.
Query Parameters
| Parâmetro | Tipo |
|---|---|
page | number |
limit | number |
Exemplo de Request
curlbash
curl -X GET "https://api.magnuspay.com.br/transactions?page=1&limit=10" \
-H "X-API-Key: magnus_sua_api_key"Resposta de Sucesso
200 OKjson
{
"success": true,
"data": {
"transactions": [
{
"id": "507f1f77bcf86cd799439011",
"externalId": "txn_abc123",
"type": "WITHDRAW",
"status": "COMPLETED",
"amount": 500.00,
"fee": 0.50,
"netAmount": 499.50,
"pixKey": "12345678900",
"pixKeyType": "CPF",
"createdAt": "2024-01-15T14:00:00.000Z",
"completedAt": "2024-01-15T14:30:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 25,
"pages": 3
}
}
}