cURL
curl --request GET \ --url https://gateway.3xpay.co/exchange/bank-accounts \ --header 'api_key: <api-key>' \ --header 'api_secret: <api-key>'
{ "success": true, "message": "<string>", "data": [ { "id": 123, "userId": 123, "type": "<string>", "name": "<string>", "pix_key": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } ], "pagination": { "total": 123, "page": 123, "pageSize": 123, "totalPages": 123, "hasNextPage": true, "hasPreviousPage": true } }
Lista todas as contas bancárias (PIX) do usuário autenticado
X-API-Key
curl --request GET \ --url "https://api.seudominio.com/exchange/bank-accounts?page=1&pageSize=10" \ --header 'X-API-Key: sua-api-key-aqui'
{ "success": true, "message": "Bank accounts retrieved successfully", "data": [ { "id": 1, "userId": 123, "type": "pix", "name": "Conta Principal PIX", "pix_key": "12345678900", "created_at": "2025-12-23T10:00:00.000Z", "updated_at": "2025-12-23T10:00:00.000Z" } ], "pagination": { "total": 25, "page": 1, "pageSize": 10, "totalPages": 3, "hasNextPage": true, "hasPreviousPage": false } }
Número da página
Itens por página
Filtro parcial por nome (case-insensitive)
Filtro parcial por chave PIX (case-insensitive)
Filtro exato por tipo de conta (ex: pix)
Contas bancárias listadas com sucesso
Indica se a operação foi bem-sucedida
Mensagem descritiva da operação
Lista de contas bancárias
Show child attributes