Skip to content

IssuedEInvoicesApi: Get e-Invoice XML error #108

@pasqualefloccari

Description

@pasqualefloccari

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions