> ## Documentation Index > Fetch the complete documentation index at: https://help.narmi.com/llms.txt > Use this file to discover all available pages before exploring further. # Update transaction > Update fields for a specified transaction. Category and sub-category changes return 403 for a transaction shown with MX enrichment, whether or not `enrichment_view` is passed. All monetary values are represented in minor units, or the smallest unit of the currency with no decimal (e.g., cents). For example, $10.00 is represented as 1000. How can we improve these docs? Share your feedback. ## OpenAPI ````json PUT /v1/transactions/{uuid}/ { "openapi": "3.0.3", "info": { "title": "Narmi Public API", "version": "v1 (main)", "description": "To read about Public API access and authentication, go to [API Overview](https://docs.narmi.com/docs/narmi-developer-docs/xl9dvbz84o11l-introduction).\n\n### Content types\n\nRequests and responses default to JSON. To use [TOON](https://toonformat.dev/) (Token-Oriented Object Notation), a compact, lossless encoding of JSON that uses fewer tokens in LLM contexts, send `Content-Type: application/toon` for request bodies and `Accept: application/toon` for responses.", "termsOfService": "https://www.narmi.com/policies/developer-terms-conditions", "contact": { "name": "Narmi Support", "email": "support@narmi.com" } }, "servers": [ { "url": "https://api.sandbox.narmi.dev/", "description": "" } ], "tags": [ { "name": "accessibility" }, { "name": "account balances" }, { "name": "account opening" }, { "name": "accounts" }, { "name": "ach companies" }, { "name": "ach destinations" }, { "name": "ach import" }, { "name": "ach nacha passthrough" }, { "name": "ach payments" }, { "name": "ach transfers" }, { "name": "alerts" }, { "name": "automatic savings enrollment" }, { "name": "bill pay" }, { "name": "bulk payment templates" }, { "name": "bulk payments" }, { "name": "card linked offers" }, { "name": "cards" }, { "name": "data access management" }, { "name": "deposits" }, { "name": "documents" }, { "name": "enrollments" }, { "name": "express-checkout" }, { "name": "external transactions" }, { "name": "fedwire destinations" }, { "name": "fedwire templates" }, { "name": "file imports" }, { "name": "income source" }, { "name": "instant transfers" }, { "name": "institution" }, { "name": "international wires" }, { "name": "invoices" }, { "name": "loan autopay" }, { "name": "me" }, { "name": "merchants" }, { "name": "mfa" }, { "name": "payees" }, { "name": "payments" }, { "name": "ping" }, { "name": "receipts" }, { "name": "recipients" }, { "name": "reports" }, { "name": "same-day transfers" }, { "name": "scheduled transfers" }, { "name": "search" }, { "name": "subscriptions" }, { "name": "support" }, { "name": "surveys" }, { "name": "swift transactions" }, { "name": "swift wire templates" }, { "name": "teams" }, { "name": "threads" }, { "name": "transactions" }, { "name": "unverified ach reversals" }, { "name": "unverified ach transactions" }, { "name": "users" }, { "name": "whatismyip" }, { "name": "wire import" }, { "name": "wire recipients" }, { "name": "wires" } ], "x-stoplight": { "id": "68n444msv6n7x" }, "paths": { "/v1/transactions/{uuid}/": { "put": { "operationId": "transactions_update", "description": "Update fields for a specified transaction. Category and sub-category changes return 403 for a transaction shown with MX enrichment, whether or not `enrichment_view` is passed.\n\nAll monetary values are represented in minor units, or the smallest unit of the currency with no decimal (e.g., cents). For example, $10.00 is represented as 1000.\n\n\n\nHow can we improve these docs? Share your feedback.", "summary": "Update transaction", "parameters": [ { "in": "query", "name": "enrichment_view", "schema": { "type": "string", "enum": [ "live_ledger" ] }, "description": "Pass `live_ledger` to show each transaction with the enrichment source Live Ledger uses for its account. Consumer accounts show stored MX values when the institution enables MX enrichment for consumer accounts; other accounts show Narmi enrichment. Adds an `enrichment_source` field and makes category filters match the source each transaction shows. Omit it to keep the default Narmi display." }, { "in": "query", "name": "format", "schema": { "type": "string", "enum": [ "json", "toon" ] } }, { "in": "path", "name": "uuid", "schema": { "type": "string", "pattern": "^[0-9a-z-]+$" }, "required": true } ], "tags": [ "transactions" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedTransactionRequest" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedTransactionRequest" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedTransactionRequest" } }, "application/toon": { "schema": { "$ref": "#/components/schemas/PatchedTransactionRequest" } } } }, "security": [ { "oauth2": [ "banking:transactions:write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionsDetail" } }, "application/toon": { "schema": { "$ref": "#/components/schemas/TransactionsDetail" } } }, "description": "" }, "422": { "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "message" ], "properties": { "id": { "type": "string", "example": "invalid_request_error" }, "message": { "description": "An error response detailing the field and the nature of the error.", "oneOf": [ { "type": "string" }, { "type": "object", "additionalProperties": true }, { "type": "array", "items": { "type": "object", "additionalProperties": true } } ] } } }, "examples": { "ObjectMessage": { "value": { "id": "invalid_request_error", "message": { "recurring": [ "Must be a valid boolean." ] } }, "summary": "Object message" }, "StringMessage": { "value": { "id": "invalid_request_error", "message": "Message describing nature of error." }, "summary": "String message" }, "ArrayMessage": { "value": { "id": "invalid_request_error", "message": [ { "field_name": "Message describing nature of error." }, { "second_field_name": "Second Message." } ] }, "summary": "Array message" } } }, "application/toon": { "schema": { "type": "object", "required": [ "id", "message" ], "properties": { "id": { "type": "string", "example": "invalid_request_error" }, "message": { "description": "An error response detailing the field and the nature of the error.", "oneOf": [ { "type": "string" }, { "type": "object", "additionalProperties": true }, { "type": "array", "items": { "type": "object", "additionalProperties": true } } ] } } }, "examples": { "ObjectMessage": { "value": { "id": "invalid_request_error", "message": { "recurring": [ "Must be a valid boolean." ] } }, "summary": "Object message" }, "StringMessage": { "value": { "id": "invalid_request_error", "message": "Message describing nature of error." }, "summary": "String message" }, "ArrayMessage": { "value": { "id": "invalid_request_error", "message": [ { "field_name": "Message describing nature of error." }, { "second_field_name": "Second Message." } ] }, "summary": "Array message" } } } }, "description": "Invalid request response." } }, "x-stoplight": { "id": "rd5mckx6lay4w" } } } }, "components": { "schemas": { "PatchedTransactionRequest": { "type": "object", "description": "Representation of a non-pending monetary transaction.", "properties": { "category": { "type": "string", "minLength": 1, "description": "Category of the transaction, as corrected by a user or as assigned by transaction enrichment. Empty string `\"\"` when neither has a value. Reads return the taxonomy label; writes take the taxonomy slug, which `GET /v1/transaction_categories` lists. Writing this records a user correction and clears the sub-category." }, "sub_category": { "type": "string", "description": "Sub-category of the transaction, as corrected by a user or as assigned by transaction enrichment. Empty string `\"\"` when neither has a value. Reads return the taxonomy label; writes take the taxonomy slug of a sub-category of the transaction's current category, which `GET /v1/transaction_categories` lists. Writing an empty string clears it." }, "tags": { "type": "array", "items": { "type": "string", "minLength": 1 }, "default": [], "description": "A list of user-defined tags associated with the transaction." }, "note": { "type": "string", "default": "", "description": "Notes about the transaction set by the user.", "maxLength": 300 }, "recurring": { "type": "boolean", "default": false, "description": "Whether this is a recurring transaction." } }, "x-stoplight": { "id": "qrykodjaphbqk" } }, "TransactionsDetail": { "type": "object", "properties": { "transaction": { "$ref": "#/components/schemas/TransactionWithEnrichmentSource" } }, "required": [ "transaction" ], "x-stoplight": { "id": "gz3wbl23stt5k" } }, "TransactionWithEnrichmentSource": { "type": "object", "description": "Representation of a non-pending monetary transaction.", "properties": { "description": { "type": "string", "readOnly": true, "description": "Customer-facing description of the transaction. Typically an abridged version of the full description." }, "raw_description": { "type": "string", "readOnly": true, "description": "Full description of the transaction." }, "id": { "type": "string", "readOnly": true, "description": "UUID of the transaction." }, "source": { "type": "string", "readOnly": true, "description": "Type of transaction typically starts with a value such as \"withdrawal\", \"transfer\", \"deposit\", \"dividend\", \"fee\", \"loan_distribution\", \"loan_payment\", and concatenated with a detail such as \"ACH\", \"ATM\", \"Bill Payment\", \"Card\", \"Cash\", \"Check\", \"Draft\", \"Fee\", \"Home Banking\", \"Point of Sale\"." }, "settled_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true, "description": "Date-time the transaction was settled. Null for non-final transactions." }, "created_at": { "type": "string", "format": "date-time", "readOnly": true, "description": "Date-time when the transaction was created in the database." }, "account_id": { "type": "string", "readOnly": true, "description": "UUID of the account." }, "category": { "type": "string", "description": "Category of the transaction, as corrected by a user or as assigned by transaction enrichment. Empty string `\"\"` when neither has a value. Reads return the taxonomy label; writes take the taxonomy slug, which `GET /v1/transaction_categories` lists. Writing this records a user correction and clears the sub-category." }, "sub_category": { "type": "string", "description": "Sub-category of the transaction, as corrected by a user or as assigned by transaction enrichment. Empty string `\"\"` when neither has a value. Reads return the taxonomy label; writes take the taxonomy slug of a sub-category of the transaction's current category, which `GET /v1/transaction_categories` lists. Writing an empty string clears it." }, "amount": { "type": "integer", "example": 100, "maximum": 999999999999999, "minimum": -999999999999999, "description": "Total amount of the transaction.", "readOnly": true }, "ledger_balance": { "type": "integer", "example": 100, "maximum": 999999999999999, "minimum": -999999999999999, "description": "New balance as of this transaction.", "readOnly": true, "nullable": true }, "location": { "allOf": [ { "$ref": "#/components/schemas/Location" } ], "readOnly": true, "description": "Geographic location where the transaction was executed." }, "check": { "allOf": [ { "$ref": "#/components/schemas/Check" } ], "readOnly": true, "description": "Details for the check related to a transaction." }, "tags": { "type": "array", "items": { "type": "string" }, "default": [], "description": "A list of user-defined tags associated with the transaction." }, "merchant": { "type": "string", "readOnly": true, "description": "Merchant associated with the transaction, resolved from enrichment or a readable fallback description. Empty string `\"\"` when neither applies." }, "merchant_description": { "type": "string", "readOnly": true, "description": "Additional descriptive text about the transaction, shown alongside a resolved merchant. Empty string `\"\"` when there is no resolved merchant to describe." }, "merchant_matched": { "type": "boolean", "readOnly": true, "description": "Whether transaction enrichment matched a real merchant entity. False when enrichment is off, no enrichment detail exists, or the transaction was skipped/terminal with no merchant resolved." }, "metadata": { "type": "object", "additionalProperties": {}, "readOnly": true, "description": "Supplemental information associated with the account. This is often set to an empty object `{}`." }, "note": { "type": "string", "default": "", "description": "Notes about the transaction set by the user.", "maxLength": 300 }, "type": { "description": "Type of transaction (e.g. loan, withdrawal). Can contain additional details about the transaction type.", "nullable": true, "readOnly": true, "oneOf": [ { "$ref": "#/components/schemas/Type61cEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "recurring": { "type": "boolean", "default": false, "description": "Whether this is a recurring transaction." }, "flex_plan_eligible": { "type": "boolean", "readOnly": true, "description": "Whether this transaction is eligible for Flex Plan." }, "enrichment_source": { "type": "string", "description": "Which enrichment Live Ledger shows for the transaction: \"mx\", \"narmi\", or \"legacy\" when Narmi enrichment is off. MX transactions show stored MX values and reject category and sub-category changes. Returned only when `enrichment_view=live_ledger` was passed." } }, "required": [ "category", "sub_category" ], "x-stoplight": { "id": "rlgcqxlx0jdgv" } }, "Location": { "type": "object", "properties": { "city": { "type": "string", "readOnly": true }, "region_code": { "type": "string", "readOnly": true }, "country_code": { "type": "string", "readOnly": true } }, "x-stoplight": { "id": "ohkm53zydll3a" } }, "Check": { "type": "object", "properties": { "number": { "type": "string", "readOnly": true, "description": "Sequential number of the check used for bookkeeping." } }, "x-stoplight": { "id": "julrfoba1ef2k" } }, "Type61cEnum": { "enum": [ "credit", "debit" ], "type": "string", "x-stoplight": { "id": "zppwuboksqgcu" } }, "NullEnum": { "enum": [ null ], "x-stoplight": { "id": "2493tmzk9db0y" } } }, "securitySchemes": { "oauth2": { "type": "oauth2", "flows": { "authorizationCode": { "authorizationUrl": "/v2/oauth/authorize/", "tokenUrl": "/v2/oauth/token/", "refreshUrl": "/v2/oauth/token/", "scopes": { "introspection": "Permit introspection on a valid active bearer token.", "openid": "OpenID Connect scope", "offline_access": "Includes long-lived refresh token along with access token", "claudeai": "Authorizes access to Claude AI services.", "read": "View your banking data.", "write": "Update your data", "banking:accounts:read": "Can read account information.", "banking:transactions:read": "Can read transaction information.", "banking:scheduled_transfers:read": "Can read scheduled transfer information.", "banking:scheduled_transfers:write": "Can create and update scheduled transfers.", "banking:accounts:write": "Can update account information.", "banking:transactions:write": "Can update transaction information.", "banking:users:read": "Can read user profile information.", "banking:users:write": "Can update user profile information.", "banking:products:read": "Can read product information.", "banking:documents:read": "Can read user statements and documents.", "banking:documents:write": "Can create and download document archives.", "banking:support_schedules:read": "Can read institution schedule and Federal Reserve holiday information.", "banking:payees:read": "Can read bill pay payee information.", "banking:payees:write": "Can create, update, and delete bill pay payees.", "banking:payments:read": "Can read bill pay payment information.", "banking:payments:write": "Can create and delete bill pay payments.", "banking:deposits:read": "Can read deposit information.", "banking:deposits:write": "Can create and update deposits.", "banking:recipients:read": "Can read recipient information.", "banking:recipients:write": "Can create and update recipients.", "banking:subscriptions:read": "Can read webhook subscription information.", "banking:subscriptions:write": "Can create and update webhook subscriptions.", "banking:transfers:read": "Can read transfer information.", "banking:transfers:write": "Can create transfers.", "banking:wires:read": "Can read wire information.", "banking:wires:write": "Can create wires.", "profile": "Standard claim for extended user information", "email": "User registered email address", "write:preferences": "Read and write user preferences", "read:profile": "Access extended information about the user including address" } } } } } } } ````