> ## 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. # Decide a receipt-transaction suggestion > Apply a user decision to a presented suggestion. Accepts `status: accepted`, `status: rejected`, or `status: unlinked`. On accept, the receipt transitions AWAITING_REVIEW → CONFIRMED; on reject, AWAITING_REVIEW → REJECTED; on unlink (only valid for a previously-accepted suggestion), CONFIRMED → NO_MATCH with `no_match_reason=user_unlinked`. Idempotent if the receipt is already in the target state via this same suggestion; returns 409 if the receipt is in a conflicting terminal state. The response body matches the receipt detail endpoint. 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 PATCH /v1/receipt-transaction-suggestions/{id}/ { "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/receipt-transaction-suggestions/{id}/": { "patch": { "operationId": "receipt_transaction_suggestions_partial_update", "description": "Apply a user decision to a presented suggestion. Accepts `status: accepted`, `status: rejected`, or `status: unlinked`. On accept, the receipt transitions AWAITING_REVIEW → CONFIRMED; on reject, AWAITING_REVIEW → REJECTED; on unlink (only valid for a previously-accepted suggestion), CONFIRMED → NO_MATCH with `no_match_reason=user_unlinked`. Idempotent if the receipt is already in the target state via this same suggestion; returns 409 if the receipt is in a conflicting terminal state. The response body matches the receipt detail endpoint.\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": "Decide a receipt-transaction suggestion", "parameters": [ { "in": "query", "name": "format", "schema": { "type": "string", "enum": [ "json", "toon" ] } }, { "in": "path", "name": "id", "schema": { "type": "integer" }, "description": "A unique integer value identifying this receipt transaction suggestion.", "required": true } ], "tags": [ "receipts" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatchedReceiptSuggestionPatchRequest" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/PatchedReceiptSuggestionPatchRequest" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/PatchedReceiptSuggestionPatchRequest" } }, "application/toon": { "schema": { "$ref": "#/components/schemas/PatchedReceiptSuggestionPatchRequest" } } } }, "security": [ { "oauth2": [ "write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReceiptDetail" } }, "application/toon": { "schema": { "$ref": "#/components/schemas/ReceiptDetail" } } }, "description": "" }, "409": { "description": "No response body" } }, "x-permissions": { "allOf": [ { "feature": { "name": "receipts_enabled" } } ] }, "x-stoplight": { "id": "fbd6i05yoxwib" } } } }, "components": { "schemas": { "PatchedReceiptSuggestionPatchRequest": { "type": "object", "description": "PATCH body for `/v1/receipt-transaction-suggestions//`.\n\nAccepts `accepted`, `rejected`, or `unlinked`. The view dispatches on\nthe validated value to the appropriate transition path.", "properties": { "status": { "$ref": "#/components/schemas/ReceiptSuggestionPatchStatusEnum" } }, "x-stoplight": { "id": "7usfau85g3wkb" } }, "ReceiptDetail": { "type": "object", "description": "Response shape for GET /v1/receipts//.\n\nThe view must populate `image_url` (presigned S3 URL) and `suggestion`\n(top-1 PRESENTED suggestion, or None) directly on the Receipt instance\nbefore serialization — those are derived fields, not model columns.", "properties": { "uuid": { "type": "string", "format": "uuid" }, "status": { "type": "string" }, "merchant": { "type": "string", "nullable": true, "readOnly": true }, "transaction_date": { "type": "string", "nullable": true, "readOnly": true }, "amount": { "type": "string", "nullable": true, "readOnly": true }, "image_url": { "type": "string", "format": "uri" }, "image_mime_type": { "type": "string", "nullable": true }, "thumbnail_url": { "type": "string", "format": "uri", "nullable": true }, "large_thumbnail_url": { "type": "string", "format": "uri", "nullable": true }, "download_url": { "type": "string", "format": "uri" }, "original_filename": { "type": "string" }, "suggestion": { "allOf": [ { "$ref": "#/components/schemas/_ReceiptSuggestion" } ], "nullable": true }, "uploaded_by": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "readOnly": true }, "uploaded_at": { "type": "string", "nullable": true, "readOnly": true }, "approved_by": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "readOnly": true }, "approved_at": { "type": "string", "nullable": true, "readOnly": true }, "rejected_by": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true, "readOnly": true }, "rejected_at": { "type": "string", "nullable": true, "readOnly": true }, "no_match_reason": { "type": "string", "nullable": true }, "retry_expires_at": { "type": "string", "nullable": true, "readOnly": true } }, "required": [ "download_url", "image_mime_type", "image_url", "large_thumbnail_url", "no_match_reason", "original_filename", "status", "suggestion", "thumbnail_url", "uuid" ], "x-stoplight": { "id": "qcx8v59yfucvy" } }, "ReceiptSuggestionPatchStatusEnum": { "enum": [ "accepted", "rejected", "unlinked" ], "type": "string", "description": "* `accepted` - accepted\n* `rejected` - rejected\n* `unlinked` - unlinked", "x-stoplight": { "id": "kpcbiho5rchqc" } }, "_ReceiptSuggestion": { "type": "object", "properties": { "id": { "type": "integer", "nullable": true }, "confidence_score": { "type": "number", "format": "double", "nullable": true }, "candidate_transaction": { "$ref": "#/components/schemas/_CandidateTransaction" } }, "required": [ "candidate_transaction", "confidence_score", "id" ], "x-stoplight": { "id": "pc5vwykrzqywn" } }, "_CandidateTransaction": { "type": "object", "description": "Trimmed Transaction shape embedded in the receipt-detail suggestion.\n\nIntentionally narrow: only the fields the receipt-details drawer renders\ntoday. Expanding requires a conscious decision rather than a drive-by\nModelSerializer.fields=__all__ that would leak internal columns.", "properties": { "uuid": { "type": "string", "format": "uuid" }, "datetime": { "type": "string", "format": "date-time" }, "amount": { "type": "number", "format": "double", "maximum": 1000000000000000000, "minimum": -1000000000000000000, "exclusiveMaximum": true, "exclusiveMinimum": true }, "merchant": { "type": "string" }, "description": { "type": "string", "readOnly": true } }, "required": [ "amount", "datetime", "merchant", "uuid" ], "x-stoplight": { "id": "zjudwjkqrstwh" } } }, "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" } } } } } } } ````