nav-gov-hu / Online-Invoice

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

[DEV support] queryTaxpayer "Feldolgozás sikertelen!" #1026

Closed fxdave closed 1 year ago

fxdave commented 1 year ago

Környezet / Environment [x] https://api-test.onlineszamla.nav.gov.hu

Hívott API operáció / called API operation [x] /queryTaxpayer

A kérés verziója / version of the request [x] 3.0

A requestId értéke / requestId value

26368560HUNKMPLX1

A probléma rövid és tömör leírása / Clear and concise description of the problem Ezzel próbálkozom:

curl \
    -iX POST \
    -H 'content-type: application/xml' \
    -H 'accept: application/xml' \
    -d '<?xml version="1.0" encoding="UTF-8"?><QueryTaxpayerRequest xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns="http://schemas.nav.gov.hu/OSA/3.0/api">
    <common:header>
        <common:requestId>26368560HUNKMPLX1</common:requestId>
        <common:timestamp>2023-01-02T21:45:01.055Z</common:timestamp>
        <common:requestVersion>3.0</common:requestVersion>
        <common:headerVersion>1.0</common:headerVersion>
    </common:header>
    <common:user>
        <common:login>1hdhwwwsqfhleaw</common:login>
        <common:passwordHash cryptoType="SHA-512">JELSZÓHASH</common:passwordHash>
        <common:taxNumber>69625589</common:taxNumber>
        <common:requestSignature cryptoType="SHA3-512">983682524ACCB5F39249814D03534AB6602E4E5486F9F66FE4982E514AA304B1177ED76DB7DBDE0307EBD9C2DA42D543471C97D64F7C372C19D934A4F50085B2</common:requestSignature>
    </common:user>
    <software>
        <softwareId>HU26368560HUNKMPLX</softwareId>
        <softwareName>HungarokomplexWebshop</softwareName>
        <softwareOperation>LOCAL_SOFTWARE</softwareOperation>
        <softwareMainVersion>1.0</softwareMainVersion>
        <softwareDevName>Rollout IT Ltd.</softwareDevName>
        <softwareDevContact>info@rolloutit.net</softwareDevContact>
        <softwareDevCountryCode>HU</softwareDevCountryCode>
        <softwareDevTaxNumber>26368560</softwareDevTaxNumber>
    </software>
    <taxNumber>26368560</taxNumber>
</QueryTaxpayerRequest>' \
    https://api-test.onlineszamla.nav.gov.hu/invoiceService/v3/queryTaxpayer

Ezt kapom rá:

HTTP/1.1 500 Internal Server Error
content-type: application/xml;charset=UTF-8
content-length: 1099
date: Mon, 02 Jan 2023 21:55:03 GMT
x-envoy-upstream-service-time: 51
Set-Cookie: NAVHVR=!DGZ8UhZuFKktvVmkB/bol5Jsagn1vr0krZmH6aIHCOEUJl6ptwKk7XdGsln8UJ4djDjBwsB8Nk/DNI9o8momdqPh9FmBsTMMNqKFomY=; path=/; Httponly; Secure
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Set-Cookie: TS0125bbd8=019b71d945640fe96c696379d196c11388f4854fa87228ba0086b37568b77a5802e94714d3a408d2befc625c4fe99e33527913d251; Path=/; Secure; HTTPOnly

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><GeneralErrorResponse xmlns="http://schemas.nav.gov.hu/OSA/3.0/api" xmlns:ns2="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns:ns3="http://schemas.nav.gov.hu/OSA/3.0/base" xmlns:ns4="http://schemas.nav.gov.hu/OSA/3.0/data"><ns2:header><ns2:requestId>26368560HUNKMPLX1</ns2:requestId><ns2:timestamp>2023-01-02T21:45:01.055Z</ns2:timestamp><ns2:requestVersion>3.0</ns2:requestVersion><ns2:headerVersion>1.0</ns2:headerVersion></ns2:header><ns2:result><ns2:funcCode>ERROR</ns2:funcCode><ns2:errorCode>OPERATION_FAILED</ns2:errorCode><ns2:message>Feldolgozás sikertelen!</ns2:message></ns2:result><software><softwareId>HU26368560HUNKMPLX</softwareId><softwareName>HungarokomplexWebshop</softwareName><softwareOperation>LOCAL_SOFTWARE</softwareOperation><softwareMainVersion>1.0</softwareMainVersion><softwareDevName>Rollout IT Ltd.</softwareDevName><softwareDevContact>info@rolloutit.net</softwareDevContact><softwareDevCountryCode>HU</softwareDevCountryCode><softwareDevTaxNumber>26368560</softwareDevTaxNumber></software></GeneralErrorResponse>

Mit csinálok rosszul?

NTCA-supporter commented 1 year ago

Szia @fxdave !

A passwordHash a problémás, csak 64 karakter hosszú. Vagy nem jó hash-t számolsz vagy nem küldöd be a teljeset.

Üdv

fxdave commented 1 year ago

Igaz, sha256-al számoltam valamiért. Köszönöm!