Returns all available exchange rates among currencies of the Enterprise .
[PlatformAddress]/api/connector/v1/exchangeRates/getAll
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0"
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
{
"ExchangeRates" : [
{
"SourceCurrency" : "EUR" ,
"TargetCurrency" : "GBP" ,
"Value" : 0.85053421
} ,
{
"SourceCurrency" : "GBP" ,
"TargetCurrency" : "EUR" ,
"Value" : 1.17573165
}
]
}
Property
Type
Contract
Description
ExchangeRates
array of Exchange rate
required
The available exchange rates.
Property
Type
Contract
Description
SourceCurrency
string
required
ISO-4217 code of the source Currency .
TargetCurrency
string
required
ISO-4217 code of the target Currency .
Value
number
required
The exchange rate from the source currency to the target currency.
Returns all cashiers in the enterprise.
[PlatformAddress]/api/connector/v1/cashiers/getAll
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0"
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
{
"Cashiers" : [
{
"Id" : "9a36e3fa-2299-474b-a8a2-5ea4da317abc" ,
"IsActive" : true ,
"Name" : "Main Cashier"
}
]
}
Property
Type
Contract
Description
Cashiers
array of Cashier
required
Cashiers in the enterprise.
Property
Type
Contract
Description
Id
string
required
Unique identifier of the cashier.
IsActive
boolean
required
Whether the cashier is still active.
Name
string
required
Name of the cashier.
Get all cashier transactions
Returns all cashier transactions created within the specified interval.
[PlatformAddress]/api/connector/v1/cashierTransactions/getAll
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"CreatedUtc" : {
"StartUtc" : "2020-01-05T00:00:00Z" ,
"EndUtc" : "2020-01-10T00:00:00Z"
}
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
CreatedUtc
Time interval
required, max length 3 months
Interval in which the Transaction was created.
{
"CashierTransactions" : [
{
"Amount" : {
"Currency" : "EUR" ,
"Value" : 100
} ,
"CashierId" : "9a36e3fa-2299-474b-a8a2-5ea4da317abc" ,
"CreatedUtc" : "2017-01-10T00:00:00Z" ,
"Id" : "177740c3-fec9-4338-a224-a3b03a35b3e1" ,
"Notes" : "Cash payment EUR" ,
"Number" : "47" ,
"PaymentId" : "a68ef257-2fbc-4a4f-85de-59d808cef657"
}
]
}
Property
Type
Contract
Description
CashierTransactions
array of Cashier transaction
required
Cashier transactions created in the interval.
Property
Type
Contract
Description
Id
string
required
Unique identifier of the transaction.
CashierId
string
required
Unique identifier of the Cashier .
PaymentId
string
optional
Unique identifier of the corresponding payment Accounting item .
CreatedUtc
string
required
Creation date and time of the transaction.
Number
string
required
Number of the transaction.
Notes
string
optional
Additional notes of the transaction.
Amount
Currency value
required
Value of the transaction.
Get all accounting categories
Returns all accounting categories of the enterprise associated with the connector integration.
[PlatformAddress]/api/connector/v1/accountingCategories/getAll
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0"
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
{
"AccountingCategories" : [
{
"Classification" : "Accommodation" ,
"Code" : "345" ,
"CostCenterCode" : "2589" ,
"ExternalCode" : "3010" ,
"Id" : "0cf7aa90-736f-43e9-a7dc-787704548d86" ,
"IsActive" : true ,
"LedgerAccountCode" : "311100" ,
"Name" : "Accommodation" ,
"PostingAccountCode" : "602020"
} ,
{
"Classification" : null ,
"Code" : "100" ,
"CostCenterCode" : "2589" ,
"ExternalCode" : "ABVG" ,
"Id" : "0b9560fb-055d-47d3-a6d4-e579c44ca558" ,
"IsActive" : true ,
"LedgerAccountCode" : "311100" ,
"Name" : "Alcoholic Beverage" ,
"PostingAccountCode" : "602020"
}
]
}
Property
Type
Contract
Description
AccountingCategories
array of Accounting category
required
Accounting categories of the enterprise.
Property
Type
Contract
Description
Id
string
required
Unique identifier of the category.
IsActive
boolean
required
Whether the accounting category is still active.
Name
string
required
Name of the category.
Code
string
optional
Code of the category within Mews.
Classification
string Accounting category classification
optional
Classification of the accounting category allowing cross-enterprise reporting.
ExternalCode
string
optional
Code of the category in external systems.
LedgerAccountCode
string
optional
Code of the ledger account (double entry accounting).
PostingAccountCode
string
optional
Code of the posting account (double entry accounting).
CostCenterCode
string
optional
Code of cost center.
Accounting category classification
Accommodation
FoodAndBeverage
Taxes
Payments
ExternalRevenue
SundryIncome
Wellness
Sport
Technology
Facilities
Events
Tourism
...
Returns all accounting items of the enterprise that were consumed (posted) or will be consumed within the specified interval. If the Currency is specified, costs of the items are converted to that currency.
[PlatformAddress]/api/connector/v1/accountingItems/getAll
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"StartUtc" : "2017-01-01T00:00:00Z" ,
"EndUtc" : "2017-02-01T00:00:00Z" ,
"ItemIds" : [
"e654f217-d1b5-46be-a820-e93ba568dfac"
]
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
TimeFilter
string Accounting item time filter
optional
Time filter of the interval. If not specified, items Consumed in the interval are returned.
StartUtc
string
optional, max length 1 months
Start of the interval in UTC timezone in ISO 8601 format. Required if ItemIds are not specified.
EndUtc
string
optional, max length 1 months
End of the interval in UTC timezone in ISO 8601 format. Required if ItemIds are not specified.
ItemIds
array of string
optional, max 1000 items
Unique identifiers of the Accounting items. Required if StartUtc and EndUtc are not specified.
Currency
string
optional
ISO-4217 code of the Currency the item costs should be converted to.
Extent
Accounting item extent
required
Extent of data to be returned. E.g. it is possible to specify that together with the accounting items, credit card transactions should be also returned.
States
array of string Accounting state
optional
States the accounting items should be in. If not specified, accounting items in Open or Closed states are returned.
Accounting item time filter
Consumed - items consumed in the interval.
Closed - items whose bills have been closed in the interval.
Property
Type
Contract
Description
AccountingItems
bool
optional
Whether the response should contain Accounting item s.
CreditCardTransactions
bool
optional
Whether the response should contain Credit card transaction s of the accounting items.
Open - Accounting items which carry a non-zero value, are open, and have not been closed on a bill or invoice.
Closed - Accounting items which carry a non-zero value and have been closed on a bill or invoice.
Inactive - Accounting items which are either of zero value and have not been canceled, if the state of the payment item is Pending or Failed, or items of optional reservations. Until the reservation is confirmed, all its accounting items are Inactive.
Canceled - Accounting items which have been canceled, regardless of whether the item is of zero value
{
"AccountingItems" : [
{
"Id" : "89b93f7c-5c63-4de2-bd17-ec5fee5e3120" ,
"CustomerId" : "2a1a4315-7e6f-4131-af21-402cec59b8b9" ,
"OrderId" : "810b8c3a-d358-4378-84a9-534c830016fc" ,
"ServiceId" : "bd26d8db-86da-4f96-9efc-e5a4654a4a94" ,
"ProductId" : null ,
"BillId" : null ,
"InvoiceId" : null ,
"AccountingCategoryId" : "4ac8ce68-5732-4f1d-bf0d-e557072c926f" ,
"CreditCardId" : null ,
"Type" : "ServiceRevenue" ,
"SubType" : "CustomItem" ,
"Name" : "Caramel, Pepper & Chilli Popcorn" ,
"Notes" : null ,
"ConsumptionUtc" : "2016-07-27T12:48:39Z" ,
"ClosedUtc" : "2017-02-41T10:41:54Z" ,
"State" : "Closed" ,
"SubState" : null ,
"Amount" : {
"Currency" : "GBP" ,
"NetValue" : 2.08 ,
"GrossValue" : 2.5 ,
"TaxValues" : [
{
"Code" : "UK-S" ,
"Value" : 0.42
}
]
}
}
] ,
"CreditCardTransactions" : null
}
Property
Type
Contract
Description
AccountingItems
array of Accounting item
optional
The accounting items.
CreditCardTransactions
array of Credit card transaction
optional
The credit card payment transactions.
Property
Type
Contract
Description
Id
string
required
Unique identifier of the item.
CustomerId
string
required
Unique identifier of the Customer whose account the item belongs to.
OrderId
string
optional
Unique identifier of the order (or Reservation which is a special type of order) the item belongs to.
ServiceId
string
optional
Unique identifier of the Service the item belongs to.
ProductId
string
optional
Unique identifier of the Product .
BillId
string
optional
Unique identifier of the bill the item is assigned to.
InvoiceId
string
optional
Unique identifier of the invoiced Bill the item is receivable for.
AccountingCategoryId
string
optional
Unique identifier of the Accounting category the item belongs to.
CreditCardId
string
optional
Unique identifier of the Credit card the item is associated to.
Type
string Accounting item type
required
Type of the item.
SubType
string Accounting item subtype
required
subtype of the item. Note that the subtype depends on the Type of the item.
Name
string
required
Name of the item.
Notes
string
optional
Additional notes.
ConsumptionUtc
string
required
Date and time of the item consumption in UTC timezone in ISO 8601 format.
ClosedUtc
string
optional
Date and time of the item bill closure in UTC timezone in ISO 8601 format.
State
string Accounting state
required
State of the accounting item.
SubState
string Accounting item substate
optional
Substate of the item. Note that the substate depends on the Type of the item.
Amount
Amount value
required
Item's amout, negative amount represents either rebate or a payment.
ServiceRevenue
ProductRevenue
AdditionalRevenue
Payment
Revenue subtypes
CancellationFee
Rebate
Deposit
ExchangeRateDifference
CustomItem
Surcharge
SurchargeDiscount
SpaceOrder
ProductOrder
Other
Payment subtypes
CreditCard
Invoice
Cash
Unspecified
BadDebts
WireTransfer
ExchangeRateDifference
ExchangeRoundingDifference
BankCharges
Cheque
Other
Payment substates
Pending
Verifying
Charged
Canceled
Failed
Property
Type
Contract
Description
Currency
string
required
ISO-4217 code of the Currency .
Value
number
optional
Amount in the currency.
Property
Type
Contract
Description
Currency
string
required
ISO-4217 code of the Currency .
NetValue
number
optional
Net value in case the item is taxed.
GrossValue
number
optional
Gross value including all taxes.
TaxValues
array of Tax Value
optional
The tax values applied.
For most amounts, precision of values depends on TaxPrecision of Enterprise or Currency precision. But in some cases, precision can be higher.
Property
Type
Contract
Description
Code
number
required
Code corresponding to tax type.
Value
number
required
Amount of tax applied.
Property
Type
Contract
Description
Id
string
required
Unique identifier of the credit card transaction.
PaymentId
string
required
Unique identifier of the Accounting item .
ChargedAmount
Amount
required
Charged amount of the transaction.
SettledAmount
Amount
optional
Settled amount of the transaction.
Fee
Amount
optional
Fee of the transaction.
SettlementId
string
optional
Identifier of the settlement.
SettledUtc
string
optional
Settlement date and time in UTC timezone in ISO 8601 format.
Updates specified accounting items. Allows to change to which account or bill the item is assigned to.
[PlatformAddress]/api/connector/v1/accountingItems/update
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"AccountingItemUpdates" : [
{
"AccountingItemId" : "ee425738-8112-446f-b764-abd7007ba880" ,
"AccountId" : {
"Value" : "a5786a7b-a388-43cc-a838-abd7007b5ff7"
} ,
"BillId" : {
"Value" : "30b4b0c2-5e9c-4247-91d3-abd8005e2a0a"
}
} ,
{
"AccountingItemId" : "0a0c3367-8b43-4327-ab2f-abd700e7f64f" ,
"AccountId" : null ,
"BillId" : {
"Value" : "b9402ab6-07d4-436f-b682-abdd00d077ea"
}
}
]
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
AccountingItemUpdates
array of Accounting item update
required
List of requested updates.
Property
Type
Contract
Description
AccountingItemId
string
required
Unique identifier of the Accounting item .
AccountId
String update value
optional
Unique identifier of the account (for example Customer ) the item is assigned to (or null if the assigned account should not be updated). If defined, valid account identifier must be provided.
BillId
String update value
required
Unique identifier of the Bill the items is assigned to. It's possible to assign item to bill belonging to another account, in that case both AccountId and BillId must be provided.
{
"AccountingItems" : [
{
"Id" : "ee425738-8112-446f-b764-abd7007ba880" ,
"CustomerId" : "a5786a7b-a388-43cc-a838-abd7007b5ff7" ,
"OrderId" : "5cb9dc38-642d-412a-a7eb-abd7007b9ecb" ,
"ServiceId" : "bc69c610-f0f8-4645-8bb3-ab3a00c97c1e" ,
"ProductId" : null ,
"BillId" : "30b4b0c2-5e9c-4247-91d3-abd8005e2a0a" ,
"InvoiceId" : null ,
"AccountingCategoryId" : "13cd6f3a-be61-4ce3-9a19-ab3a00b98f49" ,
"CreditCardId" : null ,
"Type" : "ProductRevenue" ,
"SubType" : "Surcharge" ,
"Name" : "Service / Product" ,
"Notes" : null ,
"ConsumptionUtc" : "2020-06-11T07:29:00Z" ,
"ClosedUtc" : null ,
"State" : "Open" ,
"Amount" : {
"Value" : 52.8 ,
"Net" : 48.0 ,
"Tax" : 4.8 ,
"TaxRate" : 0.1 ,
"Currency" : "USD" ,
"NetValue" : 48.0 ,
"GrossValue" : 52.8 ,
"TaxValues" : [
{
"Code" : "US-DC-I" ,
"Value" : 4.8
}
]
}
}
]
}
Property
Type
Contract
Description
AccountingItems
array of Accounting item
optional
The updated accounting items.
Returns all bills, possibly filtered by customers, identifiers and other filters.
[PlatformAddress]/api/connector/v1/bills/getAll
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"BillIds" : [
"e654f217-d1b5-46be-a820-e93ba568dfac"
] ,
"CustomerIds" : [
"fe795f96-0b64-445b-89ed-c032563f2bac"
] ,
"State" : "Closed" ,
"ClosedUtc" : {
"StartUtc" : "2020-02-05T00:00:00Z" ,
"EndUtc" : "2020-02-10T00:00:00Z"
} ,
"CreatedUtc" : {
"StartUtc" : "2020-02-05T00:00:00Z" ,
"EndUtc" : "2020-02-10T00:00:00Z"
} ,
"DueUtc" : null ,
"PaidUtc" : null ,
"Extent" : {
"Items" : false
}
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
BillIds
array of string
optional, max 1000 items
Unique identifiers of the Bill s. Required if no other filter is provided.
CustomerIds
array of string
optional, max 1000 items
Unique identifiers of the Customer s.
State
string
optional
Bill state the bills should be in. If not specified Open and Closed bills are returned.
ClosedUtc
Time interval
optional, max length 3 months
Interval in which the Bill was closed.
CreatedUtc
Time interval
optional, max length 3 months
Interval in which the Bill was created.
DueUtc
Time interval
optional , max length 3 months
Interval in which the Bill is due to be paid.
PaidUtc
Time interval
optional, max length 3 months
Interval in which the Bill was paid.
Extent
Bill extent
required
Extent of data to be returned. E.g. it is possible to specify that together with the bills, payments and revenue items should be also returned.
Property
Type
Contract
Description
Items
bool
required
Whether the response should contain payments and revenue items.
{
"Bills" : [
{
"Id" : "26afba60-06c3-455b-92db-0e3983be0b1d" ,
"AccountId" : "fe795f96-0b64-445b-89ed-c032563f2bac" ,
"CustomerId" : "fe795f96-0b64-445b-89ed-c032563f2bac" ,
"CompanyId" : null ,
"CounterId" : null ,
"State" : "Closed" ,
"Type" : "Invoice" ,
"Number" : "29" ,
"VariableSymbol" : null ,
"CreatedUtc" : "2017-01-31T10:48:06Z" ,
"IssuedUtc" : "2017-01-31T10:58:06Z" ,
"TaxedUtc" : null ,
"PaidUtc" : null ,
"DueUtc" : null ,
"Notes" : "" ,
"Options" : {
"DisplayCustomer" : true ,
"DisplayTaxation" : true ,
"TrackReceivable" : true ,
"DisplayCid" : false ,
"Rebated" : false
} ,
"Payments" : [ ] ,
"Revenue" : [ ] ,
"AssigneeData" : {
"Discriminator" : "BillCustomerData" ,
"Value" : {
"ItalianFiscalCode" : null
}
}
}
]
}
Property
Type
Contract
Description
Bills
array of Bill
required
The filtered bills.
Property
Type
Contract
Description
Id
string
required
Unique identifier of the bill.
AccountId
string
required
Unique identifier of the account (for example Customer ) the bill is issued to.
CustomerId
string
optional
Unique identifier of the Customer the bill is issued to.
CompanyId
string
optional
Unique identifier of the Company the bill is issued to.
CounterId
string
optional
Unique identifier of the bill Counter.
State
string Bill state
required
State of the bill.
Type
string Bill type
required
Type of the bill.
Number
string
required
Number of the bill.
VariableSymbol
string
optional
Variable symbol of the bill.
CreatedUtc
string
required
Date and time of the bill creation in UTC timezone in ISO 8601 format.
IssuedUtc
string
required
Date and time of the bill issuance in UTC timezone in ISO 8601 format.
TaxedUtc
string
optional
Taxation date of the bill in UTC timezone in ISO 8601 format.
PaidUtc
string
optional
Date when the bill was paid in UTC timezone in ISO 8601 format.
DueUtc
string
optional
Bill due date and time in UTC timezone in ISO 8601 format.
Notes
string
optional
Additional notes.
Options
Bill options
required
Options of the bill.
Revenue
array of Accounting item
required
The revenue items on the bill.
Payments
array of Accounting item
required
The payments on the bill.
AssigneeData
Bill assignee data
optional
Additional information about assignee of the bill. Persisted at the time of closing of the bill.
A bill is either a Receipt which means that it has been fully paid, or Invoice that is supposed to be paid in the future.
Receipt - the bill has already been fully paid.
Invoice - the bill is supposed to be paid in the future. Before closing it is balanced with an invoice payment.
Property
Type
Contract
Description
DisplayCustomer
boolean
required
Display customer information on a bill.
DisplayTaxation
boolean
required
Display taxation detail on a bill.
TrackReceivable
boolean
required
Tracking of payments is enabled for bill, only applicable for Invoice.
DisplayCid
boolean
required
Display CID number on bill, only applicable for Invoice.
Rebated
boolean
required
Bill has been rebated.
Bill assignee data discriminator
BillCustomerData - Assignee data specific to a customer.
BillCompanyData - Assignee data specific to a company.
Property
Type
Contract
Description
ItalianFiscalCode
string
optional
Italian fiscal code.
Property
Type
Contract
Description
Creates new empty bill assigned to specified account.
[PlatformAddress]/api/connector/v1/bills/add
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"Bills" : [
{
"AccountId" : "a5786a7b-a388-43cc-a838-abd7007b5ff7"
}
]
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
Bills
array of Bill parameters
required, max 1000 items
Information about bills to be created.
Property
Type
Contract
Description
AccountId
string
required
Unique identifier of the account (for example Customer ) the bill is issued to.
{
"Bills" : [
{
"Id" : "177966b7-f3d9-42b7-ba49-abd80057329b" ,
"AccountId" : "fe795f96-0b64-445b-89ed-c032563f2bac" ,
"CustomerId" : "a5786a7b-a388-43cc-a838-abd7007b5ff7" ,
"CompanyId" : null ,
"CounterId" : null ,
"State" : "Open" ,
"Type" : "Receipt" ,
"Number" : null ,
"VariableSymbol" : null ,
"CreatedUtc" : "2020-06-12T05:17:28Z" ,
"IssuedUtc" : null ,
"TaxedUtc" : null ,
"PaidUtc" : null ,
"DueUtc" : null ,
"Notes" : null ,
"Revenue" : [ ] ,
"Payments" : [ ]
}
]
}
Property
Type
Contract
Description
Bills
array of Bill
required
The created bills.
Removes selected bills. Bill must be empty, otherwise it's not possible to delete it.
[PlatformAddress]/api/connector/v1/bills/delete
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"BillIds" : [
"177966b7-f3d9-42b7-ba49-abd80057329b"
]
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
BillIds
array of string
required
Unique identifiers of the Bill s to be deleted.
Closes a bill so no further modification to it is possible.
[PlatformAddress]/api/connector/v1/bills/close
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"BillId" : "44eba542-193e-47c7-8077-abd7008eb206" ,
"Type" : "Receipt" ,
"BillCounterId" : "84b25778-c1dd-48dc-8c00-ab3a00b6df14" ,
"FiscalMachineId" : null ,
"Options" : {
"DisplayCustomer" : {
"Value" : false
} ,
"DisplayTaxation" : null
} ,
"TaxedDate" : {
"Value" : "2020-07-07"
} ,
"DueDate" : {
"Value" : "2020-07-14"
} ,
"VariableSymbol" : {
"Value" : "5343"
} ,
"TaxIdentifier" : {
"Value" : "446768"
} ,
"Notes" : {
"Value" : "Bill closing note"
}
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
BillId
string
required
Unique identifier of the Bill to be closed.
Type
string Bill type
required
Specifies the mode bill should be closed in.
BillCounterId
string
optional
Unique identifier of the Counter to be used for closing. Default one is used when no value is provided.
FiscalMachineId
string
optional
Unique identifier of the Fiscal Machine to be used for closing. Default one is used when no value is provided.
Options
Bill options parameters
optional
Options of the bill. If not provided both DisplayCustomer and DisplayTaxation are set by default.
TaxedDate
String update value
optional
Date of consumption for tax purposes. Can be used only with Bill type Invoice.
DueDate
String update value
optional
Deadline when Bill is due to be paid. Can be used only with Bill type Invoice.
VariableSymbol
String update value
optional
Optional unique identifier of requested payment. Can be used only with Bill type Invoice.
TaxIdentifier
String update value
optional
Tax identifier of account to be put on a bill.
Notes
String update value
optional
Notes to be attached to bill.
Address
Address parameters
optional
Address of the account to be displayed on bill. Overrides the default one taken from account profile.
Property
Type
Contract
Description
DisplayCustomer
Bool update value
required
Display customer information on a bill.
DisplayTaxation
Bool update value
required
Display taxation detail on a bill.
{
"Bills" : [
{
"Id" : "44eba542-193e-47c7-8077-abd7008eb206" ,
"CustomerId" : "7eaf9da6-7229-454a-8cb0-abd700804bd2" ,
"CompanyId" : null ,
"CounterId" : "84b25778-c1dd-48dc-8c00-ab3a00b6df14" ,
"State" : "Closed" ,
"Type" : "Receipt" ,
"Number" : "84" ,
"VariableSymbol" : null ,
"CreatedUtc" : "2020-06-11T08:39:32Z" ,
"IssuedUtc" : "2020-06-25T08:49:38Z" ,
"TaxedUtc" : "2020-06-25" ,
"PaidUtc" : null ,
"DueUtc" : null ,
"Notes" : null ,
"Options" : {
"DisplayCustomer" : false ,
"DisplayTaxation" : true ,
"TrackReceivable" : false ,
"DisplayCid" : false ,
"Rebated" : false
} ,
"Revenue" : [ ] ,
"Payments" : [ ]
}
]
}
Property
Type
Contract
Description
Bills
array of Bill
required
The closed bill.
Creates a PDF version of the specified bill. In case it's not possible to return PDF immediately, you must retry the call later while providing the unique event identifier that is returned from the first invocation.
[PlatformAddress]/api/connector/v1/bills/getPdf
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"BillId" : "44eba542-193e-47c7-8077-abd7008eb206" ,
"BillPrintEventId" : null
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
BillId
string
required
Unique identifier of the Bill to be printed.
BillPrintEventId
string
optional
Unique identifier of the Bill print event returned by previous invocation.
{
"BillId" : "44eba542-193e-47c7-8077-abd7008eb206" ,
"Result" : {
"Discriminator" : "BillPdfFile" ,
"Value" : {
"Base64Data" : "JVBER....."
}
}
}
Property
Type
Contract
Description
BillId
string
required
The unique identifier of printed Bill .
Result
object Bill PDF result
required
The result of operation.
Bill PDF result discriminator
BillPdfFile - PDF version of a Bill was successfully created, Value is Bill PDF file .
BillPrintEvent - PDF version of a Bill couldn't be created at this moment (for example bill haven't been reported to authorities yet), Value is Bill print event .
Property
Type
Contract
Description
Base64Data
string
required
BASE64 encoded PDF file.
Property
Type
Contract
Description
BillPrintEventId
string
required
Unique identifier of print event. Must be used in retry calls to retrieve the PDF.
Returns all outlet items of the enterprise that were consumed (posted) or will be consumed within the specified interval. If the Currency is specified, costs of the items are converted to that currency.
[PlatformAddress]/api/connector/v1/outletItems/getAll
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"ConsumedUtc" : {
"StartUtc" : "2020-01-05T00:00:00Z" ,
"EndUtc" : "2020-01-10T00:00:00Z"
} ,
"ClosedUtc" : {
"StartUtc" : "2020-01-05T00:00:00Z" ,
"EndUtc" : "2020-01-10T00:00:00Z"
} ,
"Currency" : "EUR"
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
ConsumedUtc
Time interval
optional, max length 3 months
Interval in which the Outlet item was consumed. Required if no other filter is provided.
ClosedUtc
Time interval
optional, max length 3 months
Interval in which the Outlet bill was closed.
Currency
string
optional
ISO-4217 code of the Currency the item costs should be converted to.
{
"OutletItems" : [
{
"Id" : "f29821b7-1659-4c96-a8c7-3725d0f1509b" ,
"BillId" : "5c82a9bd-729c-4f80-af48-a56ab3aebbf6" ,
"AccountingCategoryId" : "1131ddd1-fa2b-4150-bbf6-7fce94941f65" ,
"Type" : "Revenue" ,
"Name" : "sample revenue item" ,
"UnitCount" : 4 ,
"UnitAmount" : {
"Currency" : "EUR" ,
"GrossValue" : 11 ,
"NetValue" : 11 ,
"TaxValues" : [ ]
} ,
"CreatedUtc" : "2018-07-25T12:47:11Z" ,
"ConsumedUtc" : "2018-07-26T12:19:07Z" ,
"Notes" : null
} ,
{
"Id" : "dfec07c6-e278-4ed0-932f-41bbd1f38039" ,
"BillId" : "7bdd3b53-7bb3-419d-8ff2-c9bde65d0c7e" ,
"AccountingCategoryId" : "7EDAB816-BF4E-40CC-8936-7BC0B222908D" ,
"Type" : "Payment" ,
"Name" : "sample payment item" ,
"UnitCount" : 77 ,
"UnitAmount" : {
"Currency" : "EUR" ,
"GrossValue" : 2 ,
"NetValue" : 2
"TaxValues" : [ ]
} ,
"CreatedUtc" : "2018-07-25T16:25:28Z" ,
"ConsumedUtc" : "2018-07-26T10:11:08Z" ,
"Notes" : null
}
] ,
"OutletBills" : [
{
"Id" : "5c82a9bd-729c-4f80-af48-a56ab3aebbf6" ,
"OutletId" : "c9f09414-2fdf-41d6-bdb1-12158b01048e" ,
"Number" : "1305" ,
"ClosedUtc" : "2018-07-26T12:19:07Z" ,
"Notes" : null
} ,
{
"Id" : "7bdd3b53-7bb3-419d-8ff2-c9bde65d0c7e" ,
"OutletId" : "E0A29D6D-411E-4302-AA6D-9289935C5F14" ,
"Number" : "1306" ,
"ClosedUtc" : "2018-07-26T10:19:02Z" ,
"Notes" : null
}
]
}
Property
Type
Contract
Description
OutletItems
array of Outlet item
required
The outlet items.
OutletBills
array of Outlet bill
required
The outlet bills of the items.
Property
Type
Contract
Description
Id
string
required
Unique identifier of the item.
BillId
string
required
Unique identifier of the Outlet bill the item belongs to.
AccountingCategoryId
string
optional
Unique identifier of the Accounting category the item belongs to.
Type
string Outlet item type
required
Type of the item.
Name
string
required
Name of the item.
UnitCount
number
required
Unit count of the item.
UnitAmount
Amount
required
Unit amount of the item.
CreatedUtc
string
optional
Date and time of the item creation in UTC timezone in ISO 8601 format.
ConsumedUtc
string
required
Date and time of the item consumption in UTC timezone in ISO 8601 format.
Notes
string
optional
Additional notes.
Revenue
NonRevenue
Payment
Property
Type
Contract
Description
Id
string
required
Unique identifier of the bill.
OutletId
string
required
Unique identifier of the Outlet where the bill was issued.
Number
string
required
Number of the bill.
ClosedUtc
string
required
Date and time of the bill closure in UTC timezone in ISO 8601 format.
Notes
string
optional
Additional notes on the bill.
Returns all credit cards, possibly filtered by identifiers, Customer s or other filters.
[PlatformAddress]/api/connector/v1/creditCards/getAll
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"CreditCardIds" : [
"f1d94a32-b4be-479b-9e47-a9fcb03d5196"
] ,
"CustomerIds" : [
"5cbbd97d-5f19-4010-9abf-ab0400a3366a"
]
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
CreditCardIds
array of string
optional, max 1000 items
Unique identifiers of the Credit card s. Required if no other filter is provided.
CustomerIds
array of string
optional, max 1000 items
Unique identifiers of the Customer s.
{
"CreditCards" : [
{
"CreatedUtc" : "2018-05-24T13:45:29Z" ,
"CustomerId" : "a3c90426-43f2-4b53-8482-446dfc724bd2" ,
"Expiration" : "2020-11" ,
"Format" : "Physical" ,
"Id" : "f1d94a32-b4be-479b-9e47-a9fcb03d5196" ,
"IsActive" : true ,
"Kind" : "Gateway" ,
"ObfuscatedNumber" : "************1111" ,
"State" : "Enabled" ,
"Type" : "Visa"
}
]
}
Property
Type
Contract
Description
CreditCards
array of Credit card s
required
The credit cards.
Property
Type
Contract
Description
Id
string
required
Unique identifier of the credit card.
CustomerId
string
required
Unique identifier of the credit card owner .
CreatedUtc
string
required
Creation date and time of the credit card in UTC timezone in ISO 8601 format.
Expiration
string
optional
Expiration of the credit card in format MM/YYYY.
IsActive
boolean
required
Whether the credit card is still active.
ObfuscatedNumber
string
optinal
Obfuscated credit card number. At most first six digits and last four digits can be specified, otherwise the digits are replaced with *.
Format
string Credit card format
required
Format of the credit card.
Kind
string Credit card kind
required
Kind of the credit card.
State
string Credit card state
required
State of the credit card.
Type
string Credit card type
required
Type of the credit card.
MasterCard, Visa, Amex, Maestro, Discover, VPay, ...
Creates payment for specified customer credit card and charges the credit card via a gateway. Note that the kind of the card has to be Gateway.
[PlatformAddress]/api/connector/v1/creditCards/charge
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"CreditCardId" : "866d3f51-5b8b-4e8f-a3af-5b84768c522d" ,
"Amount" : {
"GrossValue" : 5 ,
"Currency" : "EUR"
} ,
"AccountingCategoryId" : null ,
"Notes" : null ,
"ReceiptIdentifier" : null
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
CreditCardId
string
required
Unique identifier of the Credit card .
Amount
Amount value
required
Amount of the credit card payment.
AccountingCategoryId
string
optional
Unique identifier of the Accounting category .
ReceiptIdentifier
string
optional
Identifier of the payment receipt.
Notes
string
optional
Additional payment notes.
{
"PaymentId" : "98753f51-5b8b-4e8f-a3af-5b8476865983"
}
Property
Type
Contract
Description
PaymentId
string
required
Unique identifier of the payment Accounting item .
Add tokenized credit card
Adds a new tokenized credit card to the specified customer. To be able to use this operation special permission has to be granted during certification.
[PlatformAddress]/api/connector/v1/creditCards/addTokenized
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"CustomerId" : "e98995b0-140a-4208-bbeb-b77f2c43d6ee" ,
"CreditCardData" : {
"StorageData" : "190510170631533875" ,
"ObfuscatedNumber" : "41111********1111" ,
"Expiration" : "2025-10"
}
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
CustomerId
string
required
Unique identifier of the Customer .
CreditCardData
Credit card data
required
Credit card details provided by PCI provider.
Property
Type
Contract
Description
StorageData
string
required
Identifier of credit card data in PCI storage (transactionId).
ObfuscatedNumber
string
required
Obfuscated credit card number. At most first six digits and last four digits can be specified, otherwise the digits are replaced with *.
Expiration
string
required
Expiration of the credit card in format yyyy-MM.
{
"CreditCardId" : "ee2209ce-71c6-4e3a-978f-aac700c82c7b"
}
Property
Type
Contract
Description
CreditCardId
string
required
Unique identifier of the Credit card .
Get all preauthorizations by customers
Returns all preauthorizations of specified customers.
[PlatformAddress]/api/connector/v1/preauthorizations/getAllByCustomers
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"CustomerIds" : [
"e98995b0-140a-4208-bbeb-b77f2c43d6ee"
]
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
CustomerIds
array of string
required, max 1000 items
Unique identifier of the Customer .
{
"Preauthorizations" : [
{
"Amount" : {
"Currency" : "EUR" ,
"NetValue" : null ,
"GrossValue" : 10 ,
"TaxValues" : [ ]
} ,
"Code" : null ,
"CreditCardId" : "e417dfe8-c813-4938-837b-36081199ce88" ,
"CustomerId" : "20725048-b6ec-40f0-9d0a-7e5273d8b861" ,
"Id" : "2d93962f-067f-45a6-b7c4-bc4b9d899456" ,
"IsActive" : false ,
"State" : "Cancelled"
} ,
{
"Amount" : {
"Currency" : "EUR" ,
"NetValue" : null ,
"GrossValue" : 22 ,
"TaxValues" : [ ]
} ,
"Code" : null ,
"CreditCardId" : "41fa39ab-4b12-4816-95a3-d06cdbbdcb69" ,
"CustomerId" : "20725048-b6ec-40f0-9d0a-7e5273d8b861" ,
"Id" : "ad44411a-1efc-46b6-b903-ec5fa7842000" ,
"IsActive" : true ,
"ReceiptIdentifier" : null ,
"SequenceCode" : null ,
"State" : "Charged"
}
]
}
Property
Type
Contract
Description
Preauthorizations
array of Preauthorization
required
Preauthorizations of the specified Customers .
Property
Type
Contract
Description
Id
string
required
Unique identifier of the preauthorization.
CreditCardId
string
required
Unique identifier of the credit card.
Amount
Amount value
required
Value of the preauthorization.
State
string Preauthorization State
required
State of the preauthorization.
Code
string
optional
Code of the preauthorization.
Chargeable - Created and prepared for the charging.
Expired - A preauthorization that is not charged and expired.
Cancelled - A preauthorization that was canceled before charging.
Charged - Charged preauthorization.
Adds a new credit card payment to a bill of the specified customer. Note that the payment is added to open bill of the customer, either to the specified one or the default one. So the bill has to be later settled in Mews. So e.g. payment terminal integration should use this operation to post payments taken through the terminal.
[PlatformAddress]/api/connector/v1/payments/addCreditCard
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"CustomerId" : "35d4b117-4e60-44a3-9580-c582117eff98" ,
"Amount" : {
"Currency" : "GBP" ,
"GrossValue" : 100
} ,
"CreditCard" : {
"Type" : "Visa" ,
"Number" : "411111******1111" ,
"Expiration" : "12/2016" ,
"Name" : "John Smith"
} ,
"AccountingCategoryId" : null ,
"ReceiptIdentifier" : "123456" ,
"Notes" : "Terminal A"
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
CustomerId
string
required
Unique identifier of the Customer .
BillId
string
optional
Unique identifier of an open bill of the customer where to assign the payment.
Amount
Amount value
required
Amount of the credit card payment.
CreditCard
Credit card
required
Credit card details.
AccountingCategoryId
string
optional
Unique identifier of an Accounting category to be assigned to the credit card payment.
ReceiptIdentifier
string
optional
Identifier of the payment receipt.
Notes
string
optional
Additional payment notes.
Property
Type
Contract
Description
Type
string
required
Type of the credit card, one of: Visa, MasterCard, Amex, Discover, DinersClub, Jcb, EnRoute, Maestro, UnionPay.
Number
string
required
Obfuscated credit card number. At most first six digits and last four digits can be specified, the digits in between should be replaced with *. It is possible to provide even more obfuscated number or just last four digits. Never provide full credit card number . For example 411111******1111.
Expiration
string
optional
Expiration of the credit card in format MM/YYYY, e.g. 12/2016 or 04/2017.
Name
string
required
Name of the card holder.
{
"CreditCardId" : "ee2209ce-71c6-4e3a-978f-aac700c82c7b"
}
Property
Type
Contract
Description
CreditCardId
string
required
Unique identifier of the Credit card .
Adds a new external payment to a bill of the specified customer. An external payment represents a payment that is tracked outside of the system.
[PlatformAddress]/api/connector/v1/payments/addExternal
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"CustomerId" : "35d4b117-4e60-44a3-9580-c582117eff98" ,
"Amount" : {
"Currency" : "GBP" ,
"GrossValue" : 100
} ,
"Type" : "Cash" ,
"AccountingCategoryId" : null ,
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
CustomerId
string
required
Unique identifier of the Customer .
BillId
string
optional
Unique identifier of an open bill of the customer where to assign the payment.
Amount
Amount value
required
Amount of the external card payment.
Type
string External payment type
optional
Type of the external payment.
AccountingCategoryId
string
optional
Unique identifier of an Accounting category to be assigned to the external payment.
Notes
string
optional
Additional payment notes.
Cash
CreditCard
Invoice
WireTransfer
Bacs
{
"ExternalPaymentId" : "4ee05b77-ae21-46e8-8418-ac1c009dfb2b"
}
Property
Type
Contract
Description
ExternalPaymentId
string
required
Unique identifier of the payment Accounting item .
Adds a new alternative payment to a specified customer.
[PlatformAddress]/api/connector/v1/payments/addAlternative
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"CustomerId" : "35d4b117-4e60-44a3-9580-c582117eff98" ,
"Method" : "Ideal" ,
"RedirectUrl" : "https://mews.com" ,
"Amount" : {
"Currency" : "GBP" ,
"GrossValue" : 100
} ,
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
CustomerId
string
required
Unique identifier of the Customer .
Method
string Alternative payment method
required
Payment method to use for the alternative payment.
RedirectUrl
string
required
URL where the customer will be redirected after completing their payment.
Amount
Amount value
required
Amount of the alternative payment.
Alternative payment methods
{
"PaymentId" : "3ae3976f-8f22-4936-a4e8-abf800bd7278" ,
"NextAction" : {
"Discriminator" : "RedirectToUrl" ,
"Value" : "https://sample-payment-gateway.com/redirect/authenticate/unFR1tjshd9OGDaSSyCeVEbO"
}
}
Property
Type
Contract
Description
PaymentId
string
required
Unique identifier of the created payment.
NextAction
object Alternative payment next action
required
Next action to take in order to complete the payment.
Alternative payment next action
Payment next action discriminator
RedirectToUrl - Redirect customer to a URL where they can complete their payment.
Adds new outlet bills with their items.
[PlatformAddress]/api/connector/v1/outletBills/add
{
"ClientToken" : "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D" ,
"AccessToken" : "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D" ,
"Client" : "Sample Client 1.0.0" ,
"Bills" : [
{
"OutletId" : "7700469f-7667-4ebd-a1c0-10380afc9bd0" ,
"Number" : "1257" ,
"ClosedUtc" : "2017-01-01T00:00:00Z" ,
"Items" : [
{
"Type" : "Payment" ,
"Name" : "Cash payment" ,
"UnitCount" : 1 ,
"UnitAmount" : {
"Currency" : "GBP" ,
"GrossValue" : - 25 ,
"TaxCodes" : [
"UK-S"
]
} ,
"ConsumedUtc" : "2017-01-01T00:00:00Z"
} ,
{
"Type" : "Revenue" ,
"Name" : "Beer" ,
"UnitCount" : 10 ,
"UnitAmount" : {
"Currency" : "GBP" ,
"GrossValue" : 2.50 ,
"TaxCodes" : [
"UK-S"
]
} ,
"ConsumedUtc" : "2017-01-01T00:00:00Z" ,
"AccountingCategoryId" : null
}
]
}
]
}
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
Bills
array of Outlet bill parameters
required
The new outlet bills.
Property
Type
Contract
Description
OutletId
string
required
Unique identifier of the Outlet where the bill was issued.
Number
string
required
Number of the bill.
Notes
string
optional
Additional notes on the bill.
ClosedUtc
string
required
Date and time of the bill closure in UTC timezone in ISO 8601 format.
Items
array of Outlet item parameters
required
The items on the bill.
Property
Type
Contract
Description
Type
string Outlet item type
optional
Type of the item.
Name
string
required
Name of the item.
UnitCount
number
required
Unit count of the item.
UnitAmount
Amount
required
Unit amount of the item.
ConsumedUtc
string
required
Date and time of the item consumption in UTC timezone in ISO 8601 format.
Notes
string
optional
Additional notes of the item.
AccountingCategoryId
string
optional
Unique identifier of an Accounting category to be assigned to the item.
{
"OutletBillIds" : [
"f2ee1bd2-dd55-4cd3-bab1-ab6800bf0301"
]
}
Property
Type
Contract
Description
OutletBillIds
array of string
required
Array of unique identifiers of the added Outlet bills .