client()->post(self::API_URL, [ 'registrationNumber' => $registrationNumber, ]); if ($response->successful()) { return $response->json(); } if ($response->status() === 404) { return null; } $response->throw(); } private function client(): PendingRequest { return Http::withHeaders([ 'x-api-key' => $this->apiKey, 'Content-Type' => 'application/json', ])->timeout(30); } }