...
O campo com número da chave do SAT ou chave da NFC-e, é o campo IdInvoiceKey, que no final da venda será populado e passado para o parceiro
A API também envia Na tag TaxDocument, seráenviado os campos relacionado ao tipo de documento fiscal que foi emitido no PDV na tag TaxDocument :
Tag | Descrição |
---|---|
Document | XML da nota (NF-e, NFCE ou SAT) |
IdDocument | Número da nota (NF-e, NFCE ou SAT) |
KindDocument | Modelo do documento fiscal |
SerialNumber | Série do documento fiscal |
URL | Url QrCode do documento eleltrônico |
Com o PDV na operação Finalização da venda, a notificação da API trará o Operation com valor cotEndSale, informará também as informações da venda e dos itens.
...
{
"Version": 1,
"Event": "cetBefore",
"Execution": "cetContinue",
"ID": "001212000628810",
"Operation": "cotEndSale",
"ParkingTicket": null,
"Pay": null,
"Response": "",
"Sale": {
"Discount": 0.0,
"DiscountCodes": [],
"Header": {
"AccountingDate": "2020-12-28T00:00:00",
"DateTimeIssue": "2020-12-28T11:13:48",
"IdDocument": 628810,
"CooDocument": 527,
"IdStore": 1,
"IdTerminal": 212,
"IdUser": 2,
"Identification": [
{
"IdentificationType" : citInternal,
"Document" : LCpfCnpj,
"DocumentType" : 11111111111,
"PartnerCode" := 0
}
],
"Status": "sttValid"
},
"ID": "001212000628810",
"Increase": 0.0,
"Items": [
{
"BarCode": "255",
"CaptionPacking": "KG",
"Description": "SALADA MISTA kg",
"DiscountPrice": 1.98,
"IncreasePrice": 0.0,
"InternalCode": "255",
"ItemNumber": 1,
"PackingQuantity": 1.0,
"PartitionDiscount": [
{
"DiscountAmount": 1.0,
"PartnerCode": 20,
"Price": 0.99,
"PromotionCode": 24,
"PromotionCode "IncreDiscType": 24 2
},
{
"DiscountAmount": 1.0,
"PartnerCode": 20,
"Price": 0.99,
"PromotionCodeIncreDiscType": 1
}
],
"PartitionIncrease": [],
"Quantity": 2.0,
"SellerCode": 0,
"IdSegment": 3,
"OrderNumber": 1526,
"Status": "sttValid",
"TotalPrice": 17.82,
"UnitPrice": 9.9
}
],
"Messages": {
"Customer": [],
"User": []
},
"PartitionDiscount": [],
"PartitionIncrease": [],
"PaymentChange": null,
"Payments": [
{
"AuthorizationCode": "",
"Discount": 0.0,
"ExpirationDateCard": "",
"FirstDigitCard": "",
"FlagCard": "",
"IdWallet": "",
"Increase": 0.0,
"InstallmentAmount": 0,
"ItemNumber": 1,
"LastDigitCard": "",
"NetworkCard": "",
"OwnerCard": "",
"PartitionDiscount": [],
"PartitionIncrease": [],
"PaymentNumber": 1,
"PaymentType": "cptMoney",
"Total": 17.82,
"TransactionCanceledCode": "",
"TransactionCode": "",
"TypeWallet": ""
}
],
"SolidaryChange": null,
"TaxDocument": {
"Document": "",
"IdDocument": 689,
"KindDocument": "65",
"SerialNumber": "412",
"URL": ""
}
"Total": 17.82,
"VouchersPrint": [],
"IdInvoiceKey" : "29210214200166000166657020000001019138217110"
}
}