...
TIdentificationType | Descrição do tipo de identificação |
---|---|
citInternal, | Identificação interna |
citInvoice | Identificação fiscal (Nota fiscal paulista e outros) |
citReward | Identificação de recompensas, parceiros, etc. |
citOther | Outras identificações |
citUnknown | Desconhecido |
Acrescentamos mais duas informações na Items:
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
...
{
"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,
"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
},
{
"DiscountAmount": 1.0,
"PartnerCode": 20,
"Price": 0.99,
"PromotionCode": 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,
"Total": 17.82,
"VouchersPrint": [],
"IdInvoiceKey" : "29210214200166000166657020000001019138217110"
}
}