diff --git a/src/ErrorInfo.cs b/src/ErrorInfo.cs
index 2e9f6fdb..03038ed7 100644
--- a/src/ErrorInfo.cs
+++ b/src/ErrorInfo.cs
@@ -10,9 +10,14 @@ namespace Avalara.AvaTax.RestClient
public class ErrorInfo
{
///
- /// Type of error that occurred
+ /// Type of error that occurred.
///
- public ErrorCodeId? code { get; set; }
+ ///
+ /// This value is captured as a string so that if the server adds new error codes it will still parse.
+ ///
+ /// You can compare this value to the ErrorCodeId enumeration.
+ ///
+ public String code { get; set; }
///
/// Short one-line message to summaryize what went wrong
@@ -22,7 +27,10 @@ public class ErrorInfo
///
/// What object or service caused the error?
///
- public ErrorTargetCode? target { get; set; }
+ ///
+ /// This value is captured as a string so that if the server adds new error targets it will still parse.
+ ///
+ public String target { get; set; }
///
/// Array of detailed error messages
diff --git a/src/models/ErrorDetail.cs b/src/models/ErrorDetail.cs
index 048300a7..13289bf6 100644
--- a/src/models/ErrorDetail.cs
+++ b/src/models/ErrorDetail.cs
@@ -25,7 +25,10 @@ public class ErrorDetail
///
/// Name of the error or message.
///
- public ErrorCodeId? code { get; set; }
+ ///
+ /// This value is captured as a string so that if the server adds new error codes it will still parse.
+ ///
+ public String code { get; set; }
///
/// Unique ID number referring to this error or message.