Error: {"Type":null,"Title":"Unauthorized","Status":401,"Detail":"AuthenticationUnsuccessful","Instance":"6d0d949b-0bd3-4911-bc12-7fff1b835e08","Extensions":{}}
XeroOAuth Object
(
[_xero_defaults] => Array
(
[xero_url] => https://api.xero.com/
[site] => https://api.xero.com
[authorize_url] => https://api.xero.com/oauth/Authorize
[signature_method] => HMAC-SHA1
)
[_xero_consumer_options] => Array
(
[request_token_path] => oauth/RequestToken
[access_token_path] => oauth/AccessToken
[authorize_path] => oauth/Authorize
)
[_action] =>
[_nonce_chars] =>
[params] => Array
(
)
[headers] => Array
(
[Accept] => application/xml
[Content-Length] => 0
[Expect] =>
)
[auto_fixed_time] =>
[buffer] =>
[request_params] => Array
(
)
[_xero_curl_options] => Array
(
[curl_connecttimeout] => 30
[curl_timeout] => 20
[curl_ssl_verifypeer] => 2
[curl_cainfo] => /var/www/sites/figero-dev/vendor/xero/xerooauth-php/certs/ca-bundle.crt
[curl_followlocation] =>
[curl_ssl_verifyhost] => 2
[curl_proxy] =>
[curl_proxyuserpwd] =>
[curl_encoding] =>
[curl_verbose] => 1
)
[config] => Array
(
[xero_url] => https://api.xero.com/
[site] => https://api.xero.com
[authorize_url] => https://api.xero.com/oauth/Authorize
[signature_method] => HMAC-SHA1
[request_token_path] => oauth/RequestToken
[access_token_path] => oauth/AccessToken
[authorize_path] => oauth/Authorize
[curl_connecttimeout] => 30
[curl_timeout] => 20
[curl_ssl_verifypeer] => 2
[curl_cainfo] => /var/www/sites/figero-dev/vendor/xero/xerooauth-php/certs/ca-bundle.crt
[curl_followlocation] =>
[curl_ssl_verifyhost] => 2
[curl_proxy] =>
[curl_proxyuserpwd] =>
[curl_encoding] =>
[curl_verbose] => 1
[application_type] => Public
[oauth_callback] => http://localhost/XeroOAuth-PHP/public.php
[user_agent] => Xero-OAuth-PHP Public
[consumer_key] => YOURCONSUMERKEY
[shared_secret] => YOURSECRET
[core_version] => 2.0
[payroll_version] => 1.0
[file_version] => 1.0
[host] => https://api.xero.com/oauth/
[multipart] =>
)
[method] => GET
[url] => https://api.xero.com/oauth/RequestToken
[sign] => Array
(
[parameters] => Array
(
[oauth_callback] => http://localhost/XeroOAuth-PHP/public.php
[oauth_consumer_key] => YOURCONSUMERKEY
[oauth_nonce] => 0CkEk
[oauth_signature_method] => HMAC-SHA1
[oauth_timestamp] => 1769734593
[oauth_version] => 1.0
[oauth_signature] => nJsaKqQioicNP+FZLJk/dJlgWWo=
)
[signature] => nJsaKqQioicNP%2BFZLJk%2FdJlgWWo%3D
[signed_url] => https://api.xero.com/oauth/RequestToken?oauth_callback=http%3A%2F%2Flocalhost%2FXeroOAuth-PHP%2Fpublic.php&oauth_consumer_key=YOURCONSUMERKEY&oauth_nonce=0CkEk&oauth_signature=nJsaKqQioicNP%2BFZLJk%2FdJlgWWo%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1769734593&oauth_version=1.0
[header] => OAuth oauth_callback="http%3A%2F%2Flocalhost%2FXeroOAuth-PHP%2Fpublic.php", oauth_consumer_key="YOURCONSUMERKEY", oauth_nonce="0CkEk", oauth_signature="nJsaKqQioicNP%2BFZLJk%2FdJlgWWo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1769734593", oauth_version="1.0"
[sbs] => GET&https%3A%2F%2Fapi.xero.com%2Foauth%2FRequestToken&oauth_callback%3Dhttp%253A%252F%252Flocalhost%252FXeroOAuth-PHP%252Fpublic.php%26oauth_consumer_key%3DYOURCONSUMERKEY%26oauth_nonce%3D0CkEk%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1769734593%26oauth_version%3D1.0
)
[format] => xml
[response] => Array
(
[headers] => Array
(
[content_type] => application/json
[content_length] => 153
[www_authenticate] => Bearer
[xero_correlation_id] => 6d0d949b-0bd3-4911-bc12-7fff1b835e08
[server] => tpzgw-c
[expires] => Fri, 30 Jan 2026 00:56:33 GMT
[cache_control] => max-age=0, no-cache, no-store
[pragma] => no-cache
[date] => Fri, 30 Jan 2026 00:56:33 GMT
[x_client_tls_ver] => tls1.3
)
[code] => 401
[response] => {"Type":null,"Title":"Unauthorized","Status":401,"Detail":"AuthenticationUnsuccessful","Instance":"6d0d949b-0bd3-4911-bc12-7fff1b835e08","Extensions":{}}
[info] => Array
(
[url] => https://api.xero.com/oauth/RequestToken?oauth_callback=http%3A%2F%2Flocalhost%2FXeroOAuth-PHP%2Fpublic.php&oauth_consumer_key=YOURCONSUMERKEY&oauth_nonce=0CkEk&oauth_signature=nJsaKqQioicNP%2BFZLJk%2FdJlgWWo%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1769734593&oauth_version=1.0
[content_type] => application/json
[http_code] => 401
[header_size] => 337
[request_size] => 837
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.133
[namelookup_time] => 0.001951
[connect_time] => 0.003014
[pretransfer_time] => 0.012414
[size_upload] => 0
[size_download] => 153
[speed_download] => 1150
[speed_upload] => 0
[download_content_length] => 153
[upload_content_length] => -1
[starttransfer_time] => 0.132834
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 23.72.37.168
[certinfo] => Array
(
)
[primary_port] => 443
[local_ip] => 172.31.8.210
[local_port] => 36244
[http_version] => 3
[protocol] => 2
[ssl_verifyresult] => 0
[scheme] => HTTPS
[appconnect_time_us] => 12351
[connect_time_us] => 3014
[namelookup_time_us] => 1951
[pretransfer_time_us] => 12414
[redirect_time_us] => 0
[starttransfer_time_us] => 132834
[total_time_us] => 133000
[request_header] => GET /oauth/RequestToken?oauth_callback=http%3A%2F%2Flocalhost%2FXeroOAuth-PHP%2Fpublic.php&oauth_consumer_key=YOURCONSUMERKEY&oauth_nonce=0CkEk&oauth_signature=nJsaKqQioicNP%2BFZLJk%2FdJlgWWo%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1769734593&oauth_version=1.0 HTTP/2
Host: api.xero.com
user-agent: Xero-OAuth-PHP Public
accept-encoding: deflate, gzip, br
accept: application/xml
content-length: 0
tracestate: 6724123@nr=0-0-6724123-458196360-a44394513450a298-6b96db6728103dc4-1-1.694789-1769734593861
newrelic: eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiNjcyNDEyMyIsImFwIjoiNDU4MTk2MzYwIiwiaWQiOiJhNDQzOTQ1MTM0NTBhMjk4IiwidHIiOiI2Yjk2ZGI2NzI4MTAzZGM0IiwidHgiOiI2Yjk2ZGI2NzI4MTAzZGM0IiwicHIiOjEuNjk0NzksInNhIjp0cnVlLCJ0aSI6MTc2OTczNDU5Mzg2MX19
traceparent: 00-00000000000000006b96db6728103dc4-a44394513450a298-01
)
[format] => xml
)
)