getAllAccountingItems
Retrieve all accounting items (charges, payments, etc.) from the Mews MCP server using specific filters like IDs, date ranges, or states. At least one filter is required to fetch the data.
Instructions
Returns all accounting items (charges, payments, etc.) based on filter parameters. REQUIRED: At least one of the following filters must be specified: AccountingItemIds, RebatedItemIds, ClosedUtc, ConsumedUtc, or UpdatedUtc.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
AccountingCategoryIds | No | Filter by accounting category IDs | |
AccountingItemIds | No | Filter by specific item IDs (one of the required filters) | |
BillIds | No | Filter by bill IDs | |
ClosedUtc | No | Date range filter for when items were closed (one of the required filters) | |
ConsumedUtc | No | Date range filter for item consumption (one of the required filters) | |
CreatedUtc | No | Date range filter for item creation | |
CustomerIds | No | Filter by customer IDs | |
Limitation | No | Pagination settings | |
RebatedItemIds | No | Filter by rebated item IDs (one of the required filters) | |
States | No | Filter by item states | |
UpdatedUtc | No | Date range filter for when items were last updated (one of the required filters) |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"AccountingCategoryIds": {
"description": "Filter by accounting category IDs",
"items": {
"type": "string"
},
"maxItems": 1000,
"type": "array"
},
"AccountingItemIds": {
"description": "Filter by specific item IDs (one of the required filters)",
"items": {
"type": "string"
},
"maxItems": 1000,
"type": "array"
},
"BillIds": {
"description": "Filter by bill IDs",
"items": {
"type": "string"
},
"maxItems": 1000,
"type": "array"
},
"ClosedUtc": {
"description": "Date range filter for when items were closed (one of the required filters)",
"properties": {
"EndUtc": {
"description": "End of closed date range (ISO 8601)",
"type": "string"
},
"StartUtc": {
"description": "Start of closed date range (ISO 8601)",
"type": "string"
}
},
"type": "object"
},
"ConsumedUtc": {
"description": "Date range filter for item consumption (one of the required filters)",
"properties": {
"EndUtc": {
"description": "End of consumption date range (ISO 8601)",
"type": "string"
},
"StartUtc": {
"description": "Start of consumption date range (ISO 8601)",
"type": "string"
}
},
"type": "object"
},
"CreatedUtc": {
"description": "Date range filter for item creation",
"properties": {
"EndUtc": {
"description": "End of creation date range (ISO 8601)",
"type": "string"
},
"StartUtc": {
"description": "Start of creation date range (ISO 8601)",
"type": "string"
}
},
"type": "object"
},
"CustomerIds": {
"description": "Filter by customer IDs",
"items": {
"type": "string"
},
"maxItems": 1000,
"type": "array"
},
"Limitation": {
"description": "Pagination settings",
"properties": {
"Count": {
"description": "Maximum number of items to return",
"type": "number"
},
"Cursor": {
"description": "Pagination cursor for next page",
"type": "string"
}
},
"type": "object"
},
"RebatedItemIds": {
"description": "Filter by rebated item IDs (one of the required filters)",
"items": {
"type": "string"
},
"maxItems": 1000,
"type": "array"
},
"States": {
"description": "Filter by item states",
"items": {
"type": "string"
},
"type": "array"
},
"UpdatedUtc": {
"description": "Date range filter for when items were last updated (one of the required filters)",
"properties": {
"EndUtc": {
"description": "End of update date range (ISO 8601)",
"type": "string"
},
"StartUtc": {
"description": "Start of update date range (ISO 8601)",
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}