Last active
August 3, 2021 17:17
-
-
Save jovanimoura/8c05cedd775cd5025aa42304a37e60d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parâmetros da Requisição: | |
{"company_id":110,"name_partner":"Dirceu","amount_tax":0,"lines":[{"product_id":66,"default_code":"5CM","qty":1,"price":9.1,"components":[{"product_id":null,"default_code":"MLKI","qty":1},{"product_id":null,"default_code":"CTP1","qty":1},{"product_id":null,"default_code":"NRMT","qty":1}]}],"statement_ids":{"journal_id":0,"amount":9.1,"note":"256855","card_type":"visa_electron","installment":0},"email":null,"user_id":0,"pricelist_id":0,"partner_id":0,"cnpj_cpf":false,"payment_type":"CONTACTLESS_EMV"} | |
# Retorno: | |
Diário 1034 não existe ou não está definido nas configurações do POS. | |
# Justificativa | |
# Por algum motivo a requisição não está enviando o diário (journal_id == 0); | |
# Quando enviado com o diário obtivemos o seguinte retorno em produção: | |
# 200 Success: | |
{'ticket': '#1900007', 'pos_order_id': 1900008, 'nfce': {'data_emissao': '2021-08-03 17:10:05', 'numero_controle': 57771640, 'chave_nfe': '35210841672420000100650010000000011577716407', 'serie_documento': '1', 'numero': 1, 'protocolo_nfe': '135210411637827', 'data_autorizacao': '2021-08-03T14:10:10-03:00', 'qrcode': 'https://www.nfce.fazenda.sp.gov.br/qrcode?p=35210841672420000100650010000000011577716407|2|1|1|eb31102f2faa4e3cf95162e963c448e4fa8e815d', 'valor_estimado_tributos': 0.0}, 'homologacao': False} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment