{ "operationId": "fiscalMachineCommands_getAll", "method": "POST", "path": "/api/connector/v1/fiscalMachineCommands/getAll", "summary": "Get all fiscal machine commands", "requestExamples": [ { "contentType": "application/json", "example": { "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D", "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D", "Client": "Sample Client 1.0.0", "DeviceIds": [ "d117866d-78de-4459-9077-42d7ea0120e3", "7dafffff-a727-4917-a203-bd53995f21bf" ], "States": [ "Processed", "Processing" ], "UpdatedUtc": { "StartUtc": "2025-01-10T00:00:00Z", "EndUtc": "2025-01-17T00:00:00Z" }, "EnterpriseIds": [ "3fa85f64-5717-4562-b3fc-2c963f66afa6", "4d0201db-36f5-428b-8d11-4f0a65e960cc" ], "Limitation": { "Count": 100 } } } ], "responseExamples": [ { "status": "200", "contentType": "application/json", "example": { "Commands": [ { "Id": "aa20961f-6d9e-4b35-ad25-071213530aec", "State": "Processing", "CreatedUtc": "2025-01-15T14:30:00Z", "Creator": { "Discriminator": "Enterprise", "EnterpriseProfile": { "ProfileId": "3cd637ef-4728-47f9-8fb1-afb900c9cdcf" } }, "FiscalMachineId": "FM-001", "ApiUrl": "https://fiscal-machine.example.com/api", "FiscalMachineData": "{\"printerPort\": \"COM1\", \"baudRate\": 9600}", "TaxIdentifier": "12345678901", "Device": { "Id": "d117866d-78de-4459-9077-42d7ea0120e3", "Type": "FiscalMachine", "Name": "Fiscal Printer FP-001", "Identifier": null }, "Bill": { "Id": "ea087d64-3901-4eee-b0b7-9fce4c58a005", "Name": "Hotel Invoice #1001", "EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "AccountId": "fadd5bb6-b428-45d5-94f8-fd0d89fece6d", "AccountType": "Customer", "AssociatedAccountIds": null, "CounterId": null, "State": "Closed", "Type": "Invoice", "Number": "1001", "VariableSymbol": "VS001", "CreatedUtc": "2025-01-15T10:00:00Z", "UpdatedUtc": "2025-01-15T14:25:00Z", "IssuedUtc": "2025-01-15T14:25:00Z", "TaxedUtc": "2025-01-15T14:25:00Z", "PaidUtc": null, "DueUtc": "2025-01-29T23:59:59Z", "LastReminderDateUtc": null, "PurchaseOrderNumber": "PO-2025-001", "Notes": "Hotel accommodation services", "Options": null, "Owner": null, "AssociatedAccountsData": null, "EnterpriseData": null, "CorrectionState": "Bill", "CorrectionType": null, "CorrectedBillId": null }, "CommandData": { "Discriminator": "ItalianFiscalMachineData", "ItalianFiscalMachineData": { "IsRefund": false, "RebatedReceiptNumber": null, "RebatedReceiptSequence": null, "RebatedReceiptDateTimeUtc": null, "PrinterSerialNumber": "FP001-123456" }, "ItalianFiscalMachinePayload": null } }, { "Id": "f2e8c456-1234-4567-89ab-cdef01234567", "State": "Processed", "CreatedUtc": "2025-01-15T13:15:00Z", "Creator": { "Discriminator": "Enterprise", "EnterpriseProfile": { "ProfileId": "3cd637ef-4728-47f9-8fb1-afb900c9cdcf" } }, "FiscalMachineId": "FM-002", "ApiUrl": "https://fiscal-machine-2.example.com/api", "FiscalMachineData": "{\"printerPort\": \"USB001\", \"certificatePath\": \"/etc/fiscal/cert.p12\"}", "TaxIdentifier": "98765432109", "Device": { "Id": "7dafffff-a727-4917-a203-bd53995f21bf", "Type": "FiscalMachine", "Name": "Fiscal Printer FP-002", "Identifier": null }, "Bill": { "Id": "12345678-1234-1234-1234-123456789012", "Name": "Restaurant Bill #2001", "EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "AccountId": "fadd5bb6-b428-45d5-94f8-fd0d89fece6d", "AccountType": "Customer", "AssociatedAccountIds": null, "CounterId": null, "State": "Closed", "Type": "Receipt", "Number": "2001", "VariableSymbol": "VS002", "CreatedUtc": "2025-01-15T12:30:00Z", "UpdatedUtc": "2025-01-15T13:10:00Z", "IssuedUtc": "2025-01-15T13:10:00Z", "TaxedUtc": "2025-01-15T13:10:00Z", "PaidUtc": "2025-01-15T13:10:00Z", "DueUtc": null, "LastReminderDateUtc": null, "PurchaseOrderNumber": null, "Notes": "Restaurant services - Table 15", "Options": null, "Owner": null, "AssociatedAccountsData": null, "EnterpriseData": null, "CorrectionState": "Bill", "CorrectionType": null, "CorrectedBillId": null }, "CommandData": { "Discriminator": "ItalianFiscalMachinePayload", "ItalianFiscalMachineData": null, "ItalianFiscalMachinePayload": { "Payload": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGZ2cF9kb2M+CiAgPGhlYWRlcj4KICAgIDx0aW1lc3RhbXA+MjAyNS0wMS0xNVQxMzoxMDowMFo8L3RpbWVzdGFtcD4KICA8L2hlYWRlcj4KICA8Ym9keT4KICAgIDxyZWNlaXB0X2RhdGE+U2FtcGxlIGZpc2NhbCByZWNlaXB0IGRhdGE8L3JlY2VpcHRfZGF0YT4KICA8L2JvZHk+CjwvZnZwX2RvYz4=" } } } ], "Cursor": "f2e8c456-1234-4567-89ab-cdef01234567" } } ] }