🔍 Teste de Autenticação EFI

Teste 1: URL básica

URL: https://cobrancas.api.efipay.com.br/v1/authorize

Teste 2: Dados

Data: grant_type=client_credentials

Teste 3: Authorization Header

Authorization: Basic Q2xpZW50X0lkX2ZhM2I0NGVjNjcxMDliYjUxNzNjYWJlYjdlNzNjNTBkYTkwNTY1OTU6Q2xpZW50X1NlY3JldF9kY2E1NWZlYTgwNjg1ZjhjZTQyMDFhNGY3ZTJhOGNkNzVjNzZlMTI5

Teste 4: Requisição cURL (Formato Correto)

JSON Data: {"grant_type":"client_credentials","client_id":"Client_Id_fa3b44ec67109bb5173cabeb7e73c50da9056595","client_secret":"Client_Secret_dca55fea80685f8ce4201a4f7e2a8cd75c76e129"}
HTTP Code: 200
cURL Error: Nenhum
Response: {"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjUxOTY2MzgsImV4cCI6MTc2NTE5NzIzOCwiZGF0YSI6eyJrZXlfaWQiOjI2ODUzNzMsInR5cGUiOiJhY2Nlc3NUb2tlbiIsImlkIjoiMDQ5ZWM0ZGUtYzYxMi00ZDk2LWJkOGEtNTdiYzNjYWZhMzhmK2Q3MDc3YTNjLWU3YjQtNGJkMS1hMDU0LWJjYjYxOGM5MjFkMCJ9fQ.P3qc6i5TESWjeYTJ82F_UBbqVThCau7KRRftTPo84c4","refresh_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjUxOTY2MzgsImV4cCI6MTc2NTE5NzgzOCwiZGF0YSI6eyJrZXlfaWQiOjI2ODUzNzMsInR5cGUiOiJyZWZyZXNoVG9rZW4iLCJpZCI6IjA0OWVjNGRlLWM2MTItNGQ5Ni1iZDhhLTU3YmMzY2FmYTM4ZitmM2VjYTAzNS00MjQzLTRjYTYtOGM0OC03YzA1MDY3ZDYwNWYifX0.8TNGLe_0E_wL0Qn2kot72DUVb4326V9xYzezIYev7D4","expires_in":600,"expire_at":"1765197238530","token_type":"Bearer"}
Info: Array ( [url] => https://cobrancas.api.efipay.com.br/v1/authorize [content_type] => application/json; charset=utf-8 [http_code] => 200 [header_size] => 282 [request_size] => 130 [filetime] => -1 [ssl_verify_result] => 20 [redirect_count] => 0 [total_time] => 0.305766 [namelookup_time] => 0.034815 [connect_time] => 0.065596 [pretransfer_time] => 0.105117 [size_upload] => 173 [size_download] => 704 [speed_download] => 2302 [speed_upload] => 565 [download_content_length] => 704 [upload_content_length] => 173 [starttransfer_time] => 0.105127 [redirect_time] => 0 [redirect_url] => [primary_ip] => 2606:4700::6812:1a8a [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => 2804:1b30:1:0:2cbd:14ff:fe70:3afb [local_port] => 44220 [http_version] => 3 [protocol] => 2 [ssl_verifyresult] => 0 [scheme] => HTTPS [appconnect_time_us] => 104953 [connect_time_us] => 65596 [namelookup_time_us] => 34815 [pretransfer_time_us] => 105117 [redirect_time_us] => 0 [starttransfer_time_us] => 105127 [total_time_us] => 305766 [effective_method] => POST )

Teste 5: Método GET (para testar conectividade)

GET HTTP Code: 404
GET cURL Error: Nenhum
GET Response: {"code":404,"error":"invalid_request","error_description":"Not Found"}...