nav-gov-hu / Online-Invoice

Public repository of the Online Invoice System
Other
138 stars 52 forks source link

[Q&A] Be/kimenő számlák lekérdezése #1079

Closed Indoraptor1 closed 10 months ago

Indoraptor1 commented 10 months ago

Hogyan tudom lekérdezni egy adott indőintervallumban a be- és kimenő számlákat?

Indoraptor1 commented 10 months ago

Amivel próbálkoztam:

<page>1</page>
  <invoiceDirection>OUTBOUND</invoiceDirection>
  <invoiceQueryParams>
    <mandatoryQueryParams>
      <invoiceIssueDate>
        <dateFrom>2023-12-15</dateFrom>
        <dateTo>2023-12-31</dateTo>
      </invoiceIssueDate>
      <insDate>
        <dateTimeFrom>2023-12-15T19:53:37.573Z</dateTimeFrom>
        <dateTimeTo>2023-12-31T19:53:37.573Z</dateTimeTo>
      </insDate>
      <originalInvoiceNumber>1</originalInvoiceNumber>
    </mandatoryQueryParams>
  </invoiceQueryParams>
</QueryInvoiceDigestRequest>

Válasz:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:GeneralErrorResponse xmlns="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns:ns2="http://schemas.nav.gov.hu/OSA/3.0/api" xmlns:ns3="http://schemas.nav.gov.hu/OSA/3.0/base" xmlns:ns4="http://schemas.nav.gov.hu/OSA/3.0/data">
  <result>
    <funcCode>ERROR</funcCode>
    <errorCode>INVALID_REQUEST</errorCode>
    <message>Helytelen kérés!</message>
  </result>
  <ns2:technicalValidationMessages>
    <validationResultCode>ERROR</validationResultCode>
    <validationErrorCode>SCHEMA_VIOLATION</validationErrorCode>
    <message>Request body contains on line: [33] and column: [16] error: [cvc-complex-type.2.4.d: Invalid content was found starting with element 'insDate'. No child element is expected at this point.]</message>
  </ns2:technicalValidationMessages>
</ns2:GeneralErrorResponse>