🔍 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.eyJpYXQiOjE3NjUxODkzNzcsImV4cCI6MTc2NTE4OTk3NywiZGF0YSI6eyJrZXlfaWQiOjI2ODUzNzMsInR5cGUiOiJhY2Nlc3NUb2tlbiIsImlkIjoiYjQ4YjU5YzItYjYwMy00ZjI0LTkxOTQtYjFhYmNlYzJmMTY0KzUwOWJmZGMyLWE3NTktNGYwOS05MDQ2LTc5OTVkMDIxZDg1YyJ9fQ.EBagwrHuEOdemV7Sck5LWiWXnhXU5ookXVwpdPkKIZA","refresh_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjUxODkzNzcsImV4cCI6MTc2NTE5MDU3NywiZGF0YSI6eyJrZXlfaWQiOjI2ODUzNzMsInR5cGUiOiJyZWZyZXNoVG9rZW4iLCJpZCI6ImI0OGI1OWMyLWI2MDMtNGYyNC05MTk0LWIxYWJjZWMyZjE2NCthOGZhZGE5ZC1mNGZlLTQ2YmUtYjg4NS05MDE0MDdlNWNhYzkifX0.3TokRwmXcavzXXVgGs_D6V_tkHa6b8jJ8m7rUILBeAU","expires_in":600,"expire_at":"1765189977673","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.249564 [namelookup_time] => 0.001209 [connect_time] => 0.035277 [pretransfer_time] => 0.074924 [size_upload] => 173 [size_download] => 704 [speed_download] => 2820 [speed_upload] => 693 [download_content_length] => 704 [upload_content_length] => 173 [starttransfer_time] => 0.074927 [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] => 50318 [http_version] => 3 [protocol] => 2 [ssl_verifyresult] => 0 [scheme] => HTTPS [appconnect_time_us] => 74811 [connect_time_us] => 35277 [namelookup_time_us] => 1209 [pretransfer_time_us] => 74924 [redirect_time_us] => 0 [starttransfer_time_us] => 74927 [total_time_us] => 249564 [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"}...