AvaTax-REST-V2-PHP-SDK
AvaTax-REST-V2-PHP-SDK copied to clipboard
x-correlation-id noting being returned causing LogObject Error
On Friday 13th 2024 at approximately 4pm GMT
Separate websites using the Avatax SDK suddenly failed on the checkout due to a missing API Response header called: x-correlation-id
Var dumping the response showed no header value called x-correlation-id, and scanning the code i could not find anywhere that sends this header in the initial request.
I'm not 100% on this but i suspect Avalera API response has suddenly stopping including the x-correlation-id.
This is the function in LogObject.php:
private function populateCommonResponseInfo($response) { $this-> populateTotalExecutionTime(); $this-> headerCorrelationId = $response-> getHeader('x-correlation-id')[0]; $this-> statusCode = $response-> getStatusCode(); }