Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IssuedEInvoicesApi: Get e-Invoice XML error #108

Open
pasqualefloccari opened this issue Jan 1, 2025 · 0 comments
Open

IssuedEInvoicesApi: Get e-Invoice XML error #108

pasqualefloccari opened this issue Jan 1, 2025 · 0 comments

Comments

@pasqualefloccari
Copy link

Describe the bug
Async method GetEInvoiceXmlAsync returns null string while getting an XML related to an issued e-invoice. If the call is made with method GetEInvoiceXmlWithHttpInfoAsync we get the XML as RawContent and the error "There is an error in XML document (1, 40)".

Env info

  • C# version: 12.0
  • C# SDK version: 2.1.1

To Reproduce
Please, share with us (if applicable):

  • Example code

`var companyId = 1234567; // example
var documentId = 123456; // example

IssuedEInvoicesApi issuedEInvoicesApi = new(config);
return await issuedEInvoicesApi.GetEInvoiceXmlAsync(companyId, documentId, true);`

  • Error status and message: There is an error in XML document (1, 40)
  • Stacktrace: n/a
  • JSON representation of the request body: n/a, the request only includes QueryString parameters

Expected behavior
The method should return the XML.

Screenshots
Screenshot 2025-01-01 192851

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant