igor (ico) wrote,
igor
ico

проверкачека

GET
proverkacheka.nalog.ru:8888
ssl proverkacheka.nalog.ru:9999 (thawte, *.nalog.ru :) )

/v1/inns/*/kkts/*/fss/[fn_number]/tickets/fiscal_document?fiscalSign=fiscal_document_attribute

поля:
Authorization: Basic encodeBase64('Nтелефона:пароль')
Device-Id: [string]
Device-OS: [string]
Version: 2
ClientVersion: 1.4.4.1
Host: proverkacheka.nalog.ru:ПОРТ
Connection: Keep-Alive
Accept-Encoding: gzip
User-Agent: okhttp/3.0.1


на выход жсон.

Или вот так:
EMAIL=email@example.ru
NAME=Name
PHONE=+79xxxxxxxxxx
curl -X POST -H "Content-Type: application/json; charset=UTF-8" \
https://proverkacheka.nalog.ru:9999/v1/mobile/users/signup -d \
"{\"email\":\"$EMAIL\", \"name\": \"$NAME\", \"phone\": \"$PHONE\"}" -i

-----------------------------------------------------------------
PHONE=+7xxxxxxxxxxx
PASS=xxxxxx
FN=xXXxxXXxxxxxxx
FDP=xxxxxxxxxxxx
FD=xxxxxx

DERVICEID=sdfgsVBSERVBsfvSdfvSDFGAFDbadvb
DEVICEOS=jopa

curl -H "Device-Id: $DERVICEID" -H "Device-OS: $DEVICEOS" \
"https://$PHONE:$PASS@proverkacheka.nalog.ru:9999/v1/inns/*/kkts/*/fss/$FN/ticke\
ts$FD?fiscalSign=$FDP&sendToEmail=no" -i


ссылка для https://habr.com/post/358966/
Tags: it
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments