Update item
Change extracted fields of an item, such as supplier, category, date or total.
MCP tool dext_write → update_item
write
Updates the fields you pass and leaves the rest. Dext moves an item to Ready once Category, Supplier and Total amount are filled. The change reaches no one and is undone with another update, so it runs without asking.
Parameters
| Name | Type | Description |
|---|---|---|
| item_id string required | string | Item ID from list_items. |
| supplier string | string | Supplier or customer name. |
| category string | string | Category name as in Dext. |
| date date | date | Document date. |
| document_reference string | string | Invoice or receipt number. |
| description string | string | Item description. |
| total_amount number | number | Total amount including tax. |
| tax_amount number | number | Tax amount. |
| paid boolean | boolean | Paid toggle. |
| payment_method string | string | Payment method name as in Dext. |
| publish_to string | string | Publish destination, a connected accounting software. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dext_write",
"arguments": {
"operation": "update_item",
"arguments": {
"item_id": "it_7f3a10",
"category": "Office supplies",
"supplier": "Staples Inc"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"item_id": "it_7f3a10",
"status": "ready",
"category": "Office supplies",
"supplier": "Staples Inc",
"total_amount": 84.5
},
"isError": false
}