private function validateXmlResponse($responseBody)
    {
        $data = simplexml_load_string($responseBody);

        if (isset($data->error_type)) {
            throw new \Exception($data->error_message);
        }

        return $responseBody;
    }