Mews Accountingitems Getall Example is an example object payload from Mews, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
operationIdmethodpathsummaryrequestExamplesresponseExamples
Example Payload
{
"operationId": "accountingItems_getAll",
"method": "POST",
"path": "/api/connector/v1/accountingItems/getAll",
"summary": "Get all accounting items",
"requestExamples": [
{
"contentType": "application/json",
"example": {
"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"
},
"UpdatedUtc": {
"StartUtc": "2020-01-05T00:00:00Z",
"EndUtc": "2020-01-10T00:00:00Z"
},
"ItemIds": [
"cb643cb7-8b6e-48a6-b67e-ad4c0041f550",
"44ca12b8-f009-455e-be91-ad4c013fcbc5"
],
"Extent": {
"OrderItems": true,
"PaymentItems": true,
"CreditCardTransactions": false
},
"States": [
"Open"
]
}
}
],
"responseExamples": [
{
"status": "200",
"contentType": "application/json",
"example": {
"OrderItems": [
{
"Id": "cb643cb7-8b6e-48a6-b67e-ad4c0041f550",
"AccountId": "77673c9d-0e31-4e90-9228-ad4b00a9fcdc",
"OrderId": "1103b431-998a-4b78-84de-ad4b00a9fd99",
"BillId": null,
"AccountingCategoryId": "d250149e-a29d-4c70-b607-a1759faf7320",
"UnitCount": 15,
"UnitAmount": {
"Currency": "EUR",
"NetValue": 8.4,
"GrossValue": 10.0,
"TaxValues": [
{
"Code": "DE-2020-1-I",
"Value": 1.6
}
],
"Breakdown": {
"Items": [
{
"TaxRateCode": "DE-2020-1-I",
"NetValue": 8.4,
"TaxValue": 1.6
}
]
}
},
"Amount": {
"Value": 150.0,
"Net": 126.05,
"Tax": 23.95,
"TaxRate": 19.0,
"Currency": "EUR",
"NetValue": 126.05,
"GrossValue": 150.0,
"TaxValues": [
{
"Code": "DE-2020-1-I",
"Value": 23.95
}
],
"Breakdown": {
"Items": [
{
"TaxRateCode": "DE-2020-1-I",
"NetValue": 126.05,
"TaxValue": 23.95
}
]
}
},
"OriginalAmount": {
"Value": 150.0,
"Net": 126.05,
"Tax": 23.95,
"TaxRate": 19.0,
"Currency": "EUR",
"NetValue": 126.05,
"GrossValue": 150.0,
"TaxValues": [
{
"Code": "DE-2020-1-I",
"Value": 23.95
}
],
"Breakdown": {
"Items": [
{
"TaxRateCode": "DE-2020-1-I",
"NetValue": 126.05,
"TaxValue": 23.95
}
]
}
},
"RevenueType": "Additional",
"CreatorProfileId": "3cd637ef-4728-47f9-8fb1-afb900c9cdcf",
"UpdaterProfileId": "122fc063-ec6e-4198-b8db-6b168a59ffae",
"CreatedUtc": "2021-06-19T00:00:00Z",
"UpdatedUtc": "2021-06-19T00:00:00Z",
"ConsumedUtc": "2021-06-19T04:00:08Z",
"CanceledUtc": null,
"ClosedUtc": null,
"StartUtc": null,
"AccountingState": "Open",
"Data": {
"Discriminator": "CancellationFee",
"Value": null
}
}
],
"PaymentItems": [
{
"Id": "44ca12b8-f009-455e-be91-ad4c013fcbc5",
"AccountId": "5da55e5c-18e5-48d8-9a0e-ac0600704c5c",
"BillId": null,
"AccountingCategoryId": "b89345c1-2814-4750-808d-aa7900ee464a",
"Amount": {
"Value": 850.0,
"Net": 850.0,
"Tax": 0.0,
"TaxRate": 0.0,
"Currency": "GBP",
"NetValue": 850.0,
"GrossValue": 850.0,
"TaxValues": [],
"Breakdown": {
"Items": [
{
"TaxRateCode": null,
"NetValue": 850.0,
"TaxValue": 0.0
}
]
}
},
"OriginalAmount": {
"Value": 850.0,
"Net": 850.0,
"Tax": 0.0,
"TaxRate": 0.0,
"Currency": "GBP",
"NetValue": 850.0,
"GrossValue": 850.0,
"TaxValues": [],
"Breakdown": {
"Items": [
{
"TaxRateCode": null,
"NetValue": 850.0,
"TaxValue": 0.0
}
]
}
},
"AmountDefault": null,
"Notes": "NORMAL0140",
"SettlementId": "po_1Lun9w4JpyDC38oQJQz7hAcx",
"ConsumedUtc": "2021-06-19T19:24:20Z",
"ClosedUtc": null,
"AccountingState": "Open",
"State": "Charged",
"Identifier": null,
"Data": {
"Discriminator": "Invoice",
"Value": {
"InvoiceId": "3c818013-d9de-47e9-bb2c-ad4c013f9ad3"
}
}
}
],
"CreditCardTransactions": null
}
}
]
}