Pretty sure this one
export interface QuickBooksError {
fault?: {
error?: Array<{
Message?: string;
Detail?: string;
code?: string;
element?: string;
}>;
type?: string;
};
message?: string;
[key: string]: any;
}
should be
export interface QuickBooksError {
Fault?: {
Error?: Array<{
Message?: string;
Detail?: string;
code?: string;
element?: string;
}>;
type?: string;
};
message?: string;
[key: string]: any;
}
So Fault and Error (instead of fault and error)
According to the documentation in QB.
https://developer.intuit.com/app/developer/qbo/docs/develop/troubleshooting/error-codes
Pretty sure this one
export interface QuickBooksError {
fault?: {
error?: Array<{
Message?: string;
Detail?: string;
code?: string;
element?: string;
}>;
type?: string;
};
message?: string;
[key: string]: any;
}
should be
export interface QuickBooksError {
Fault?: {
Error?: Array<{
Message?: string;
Detail?: string;
code?: string;
element?: string;
}>;
type?: string;
};
message?: string;
[key: string]: any;
}
So Fault and Error (instead of fault and error)
According to the documentation in QB.
https://developer.intuit.com/app/developer/qbo/docs/develop/troubleshooting/error-codes