openapi: 3.0.4
info:
title: BookingEngineApi Account notes Commands API
version: v1
servers:
- url: https://api.mews.com
tags:
- name: Commands
paths:
/api/connector/v1/commands/getAllByIds:
post:
tags:
- Commands
summary: Get all commands by ids
description: Returns all commands by their identifiers.
operationId: commands_getAllByIds
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceCommandFilterParameters'
example:
ClientToken: E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D
AccessToken: C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D
Client: Sample Client 1.0.0
CommandIds:
- aa20961f-6d9e-4b35-ad25-071213530aec
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceCommandResult'
example:
Commands:
- Id: aa20961f-6d9e-4b35-ad25-071213530aec
State: Pending
CreatedUtc: '2015-09-02T19:25:44Z'
Creator:
FirstName: Sample
LastName: User
ImageUrl: '...'
Device:
Id: 63efb573-fc58-4065-b687-9bdd51568529
Name: Test Printer
Type: Printer
Data:
CopyCount: 1
FileType: application/pdf
FileData: '...'
PrinterName: Printer
PrinterDriverName: ''
PrinterPortName: ''
'400':
description: Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'401':
description: Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'403':
description: Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'408':
description: Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see [Request timeouts](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-timeouts)
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'204':
description: Server has successfully fulfilled the request and there is no additional information to send back.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'429':
description: Error caused by too many requests sent in a given amount of time. Response contains `Retry-After` header indicating how long the user agent should wait before making a follow-up request. For more information, see [Request limits](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-limits).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'500':
description: Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our [documentation repository](https://github.com/MewsSystems/gitbook-connector-api).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
/api/connector/v1/commands/getAllActive:
post:
tags:
- Commands
summary: Get all commands
description: Returns all commands the are still active from the client application point of view. That means commands that are in either `Pending` or `Received` state.
operationId: commands_getAllActive
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GetAllActiveCommandsParameters'
example:
ClientToken: E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D
AccessToken: C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D
Client: Sample Client 1.0.0
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceCommandResult'
example:
Commands:
- Id: aa20961f-6d9e-4b35-ad25-071213530aec
State: Pending
CreatedUtc: '2015-09-02T19:25:44Z'
Creator:
FirstName: Sample
LastName: User
ImageUrl: '...'
Device:
Id: 63efb573-fc58-4065-b687-9bdd51568529
Name: Test Printer
Type: Printer
Data:
CopyCount: 1
FileType: application/pdf
FileData: '...'
PrinterName: Printer
PrinterDriverName: ''
PrinterPortName: ''
'400':
description: Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'401':
description: Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'403':
description: Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'408':
description: Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see [Request timeouts](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-timeouts)
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'204':
description: Server has successfully fulfilled the request and there is no additional information to send back.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'429':
description: Error caused by too many requests sent in a given amount of time. Response contains `Retry-After` header indicating how long the user agent should wait before making a follow-up request. For more information, see [Request limits](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-limits).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'500':
description: Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our [documentation repository](https://github.com/MewsSystems/gitbook-connector-api).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
/api/connector/v1/commands/addPrinter:
post:
tags:
- Commands
summary: Add printer command
description: Adds a new printer command representing printing of the specified document on a printer. Note this operation supports [Portfolio Access Tokens](https://mews-systems.gitbook.io/connector-api/concepts/multi-property).
operationId: commands_addPrinter
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PrinterCommandParameters'
example:
ClientToken: E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D
AccessToken: C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D
Client: Sample Client 1.0.0
PrinterId: d117866d-78de-4459-9077-42d7ea0120e3
EnterpriseId: 3fa85f64-5717-4562-b3fc-2c963f66afa6
CopyCount: 1
Data: JVBERi0xLjcKCjEgMCBvYmogICUgZW50cnkgcG9pbnQKPDwKICAvVHlwZSAvQ2F0YWxvZwogIC9QYWdlcyAyIDAgUgo+PgplbmRvYmoKCjIgMCBvYmoKPDwKICAvVHlwZSAvUGFnZXMKICAvTWVkaWFCb3ggWyAwIDAgMjAwIDIwMCBdCiAgL0NvdW50IDEKICAvS2lkcyBbIDMgMCBSIF0KPj4KZW5kb2JqCgozIDAgb2JqCjw8CiAgL1R5cGUgL1BhZ2UKICAvUGFyZW50IDIgMCBSCiAgL1Jlc291cmNlcyA8PAogICAgL0ZvbnQgPDwKICAgICAgL0YxIDQgMCBSIAogICAgPj4KICA+PgogIC9Db250ZW50cyA1IDAgUgo+PgplbmRvYmoKCjQgMCBvYmoKPDwKICAvVHlwZSAvRm9udAogIC9TdWJ0eXBlIC9UeXBlMQogIC9CYXNlRm9udCAvVGltZXMtUm9tYW4KPj4KZW5kb2JqCgo1IDAgb2JqICAlIHBhZ2UgY29udGVudAo8PAogIC9MZW5ndGggNDQKPj4Kc3RyZWFtCkJUCjcwIDUwIFRECi9GMSAxMiBUZgooSGVsbG8sIHdvcmxkISkgVGoKRVQKZW5kc3RyZWFtCmVuZG9iagoKeHJlZgowIDYKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDEwIDAwMDAwIG4gCjAwMDAwMDAwNzkgMDAwMDAgbiAKMDAwMDAwMDE3MyAwMDAwMCBuIAowMDAwMDAwMzAxIDAwMDAwIG4gCjAwMDAwMDAzODAgMDAwMDAgbiAKdHJhaWxlcgo8PAogIC9TaXplIDYKICAvUm9vdCAxIDAgUgo+PgpzdGFydHhyZWYKNDkyCiUlRU9G
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceCommandAddResult'
example:
CommandId: 2391a3df-1c61-4131-b6f8-c85b4234adcb
'400':
description: Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'401':
description: Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'403':
description: Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'408':
description: Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see [Request timeouts](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-timeouts)
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'204':
description: Server has successfully fulfilled the request and there is no additional information to send back.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'429':
description: Error caused by too many requests sent in a given amount of time. Response contains `Retry-After` header indicating how long the user agent should wait before making a follow-up request. For more information, see [Request limits](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-limits).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'500':
description: Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our [documentation repository](https://github.com/MewsSystems/gitbook-connector-api).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
/api/connector/v1/commands/addKeyCutter:
post:
tags:
- Commands
summary: Add key cutter command
description: Adds a new key cutter command representing cutting of a key for the specified reservation. Note this operation supports [Portfolio Access Tokens](https://mews-systems.gitbook.io/connector-api/concepts/multi-property).
operationId: commands_addKeyCutter
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/KeyCutterCommandParameters'
example:
ClientToken: E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D
AccessToken: C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D
Client: Sample Client 1.0.0
EnterpriseId: 3fa85f64-5717-4562-b3fc-2c963f66afa6
KeyCutterId: 7dafffff-a727-4917-a203-bd53995f21bf
ReservationId: be35b39e-ad7e-460a-8de9-4c7581e016a2
KeyCount: 1
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceCommandAddResult'
example:
CommandId: 2391a3df-1c61-4131-b6f8-c85b4234adcb
'400':
description: Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'401':
description: Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'403':
description: Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'408':
description: Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see [Request timeouts](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-timeouts)
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'204':
description: Server has successfully fulfilled the request and there is no additional information to send back.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'429':
description: Error caused by too many requests sent in a given amount of time. Response contains `Retry-After` header indicating how long the user agent should wait before making a follow-up request. For more information, see [Request limits](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-limits).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'500':
description: Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our [documentation repository](https://github.com/MewsSystems/gitbook-connector-api).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
/api/connector/v1/commands/addPaymentTerminal:
post:
tags:
- Commands
summary: Add payment command
description: "> ### Restricted!\r\n> This operation is part of a custom workflow for Mews partners such as POS systems to access Mews Payment Terminals.\r\n> See [Mews Payment Terminals](https://mews-systems.gitbook.io/connector-api/use-cases/mews-terminals).\r\n\r\nAdds a new Mews Payment Terminal command for taking a customer payment.\r\nThe operation instructs a specified terminal device to take a payment from a specified customer for a specified amount."
operationId: commands_addPaymentTerminal
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentTerminalCommandParameters'
example:
ClientToken: E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D
AccessToken: 7059D2C25BF64EA681ACAB3A00B859CC-D91BFF2B1E3047A3E0DEC1D57BE1382
Client: MyPOS 1.0
Type: Payment
TerminalId: be35b39e-ad7e-460a-8de9-4c7581e016a2
CustomerId: 35d4b117-4e60-44a3-9580-c582117eff98
BillId: null
Amount:
Currency: EUR
Value: 230
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceCommandAddResult'
example:
CommandId: 2391a3df-1c61-4131-b6f8-c85b4234adcb
'400':
description: Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'401':
description: Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'403':
description: Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'408':
description: Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see [Request timeouts](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-timeouts)
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'204':
description: Server has successfully fulfilled the request and there is no additional information to send back.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'429':
description: Error caused by too many requests sent in a given amount of time. Response contains `Retry-After` header indicating how long the user agent should wait before making a follow-up request. For more information, see [Request limits](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-limits).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'500':
description: Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our [documentation repository](https://github.com/MewsSystems/gitbook-connector-api).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
/api/connector/v1/commands/update:
post:
tags:
- Commands
summary: Update command
description: Updates state of a command.
operationId: commands_update
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceCommandUpdateParameters'
example:
ClientToken: E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D
AccessToken: C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D
Client: Sample Client 1.0.0
CommandId: aa20961f-6d9e-4b35-ad25-071213530aec
State: Processed
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Unit'
'400':
description: Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'401':
description: Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'403':
description: Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'408':
description: Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see [Request timeouts](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-timeouts)
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'204':
description: Server has successfully fulfilled the request and there is no additional information to send back.
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'429':
description: Error caused by too many requests sent in a given amount of time. Response contains `Retry-After` header indicating how long the user agent should wait before making a follow-up request. For more information, see [Request limits](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-limits).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
'500':
description: Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our [documentation repository](https://github.com/MewsSystems/gitbook-connector-api).
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectorApiExceptionResult'
/api/connector/v1/fiscalMachineCommands/getAll:
post:
tags:
- Commands
summary: Get all fiscal machine commands
description: Returns fiscal machine commands. The commands can be filtered either by unique command identifiers or by `Device` unique identifiers and command states. Note this operation supports [Portfolio Access Tokens](https://mews-systems.gitbook.io/connector-api/concepts/multi-property/).
operationId: fiscalMachineCommands_getAll
requestBody:
content:
application/json:
schema:
title: Get all commands filter parameters
oneOf:
- $ref: '#/components/schemas/CommandsGetAllFilterByCommandIdParameters'
- $ref: '#/components/schemas/CommandsGetAllFilterByStatesParameters'
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
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/FiscalMachineCommandDataV20250623Result'
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=
# --- truncated at 32 KB (119 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/mews-com/refs/heads/main/openapi/mews-com-commands-api-openapi.yml