> ## 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. # Archive a bulk payment template > Archive a bulk payment template so it can no longer be used to create new bulk payments. When `cancel_active_payments` is true, any active bulk payments using this template that are still cancellable (awaiting approval, scheduled, or in progress) are cancelled in the same transaction. 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/bulk_payment_templates/{uuid}/archive/ { "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/bulk_payment_templates/{uuid}/archive/": { "put": { "operationId": "bulk_payment_templates_archive_update", "description": "Archive a bulk payment template so it can no longer be used to create new bulk payments. When `cancel_active_payments` is true, any active bulk payments using this template that are still cancellable (awaiting approval, scheduled, or in progress) are cancelled in the same transaction.\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": "Archive a bulk payment template", "parameters": [ { "in": "query", "name": "format", "schema": { "type": "string", "enum": [ "json", "toon" ] } }, { "in": "path", "name": "uuid", "schema": { "type": "string" }, "required": true } ], "tags": [ "bulk payment templates" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ArchiveBulkPaymentTemplateGroupRequest" } }, "application/x-www-form-urlencoded": { "schema": { "$ref": "#/components/schemas/ArchiveBulkPaymentTemplateGroupRequest" } }, "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ArchiveBulkPaymentTemplateGroupRequest" } }, "application/toon": { "schema": { "$ref": "#/components/schemas/ArchiveBulkPaymentTemplateGroupRequest" } } } }, "security": [ { "oauth2": [ "write" ] } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BulkPaymentTemplateGroup" } }, "application/toon": { "schema": { "$ref": "#/components/schemas/BulkPaymentTemplateGroup" } } }, "description": "" }, "400": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GeneralError" } }, "application/toon": { "schema": { "$ref": "#/components/schemas/GeneralError" } } }, "description": "" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PermissionDeniedError" } }, "application/toon": { "schema": { "$ref": "#/components/schemas/PermissionDeniedError" } } }, "description": "" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotFoundError" } }, "application/toon": { "schema": { "$ref": "#/components/schemas/NotFoundError" } } }, "description": "" } }, "x-permissions": { "allOf": [ { "role-permission": { "model": "indigo.BulkPaymentTemplateGroup", "operation": "write" } }, { "feature": { "name": "ach_templates" } } ] }, "x-stoplight": { "id": "jujjgtwg9bvns" } } } }, "components": { "schemas": { "ArchiveBulkPaymentTemplateGroupRequest": { "type": "object", "description": "Input for the bulk payment template archive action.\n\nWhen ``cancel_active_payments`` is true, all active bulk payments using the template\n(awaiting_approval, scheduled, in_progress) that are still cancellable will be\ncancelled in the same transaction as the archive.", "properties": { "cancel_active_payments": { "type": "boolean", "default": false } }, "x-stoplight": { "id": "jazw73ru6qmjp" } }, "BulkPaymentTemplateGroup": { "type": "object", "description": "Serializer for bulk payment template groups.\n\nRead: returns group with nested active_version and computed last_used.\nWrite (create): accepts name + version, validates name uniqueness.\nObject creation is the ViewSet's responsibility since it spans three models.", "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "name": { "type": "string", "maxLength": 35 }, "state": { "allOf": [ { "$ref": "#/components/schemas/BulkPaymentTemplateGroupStateEnum" } ], "readOnly": true }, "last_used": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "version_count": { "type": "integer", "readOnly": true, "default": 0 }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "archived_at": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "active_version": { "allOf": [ { "$ref": "#/components/schemas/BulkPaymentTemplateVersion" } ], "readOnly": true, "nullable": true }, "pending_version": { "allOf": [ { "$ref": "#/components/schemas/BulkPaymentTemplateVersion" } ], "nullable": true, "readOnly": true } }, "required": [ "name" ], "x-stoplight": { "id": "sow847whyiblf" } }, "GeneralError": { "type": "object", "properties": { "id": { "type": "string", "default": "invalid" }, "message": { "type": "string", "description": "An error response detailing the field and the nature of the error." } }, "required": [ "message" ], "x-stoplight": { "id": "v76fz3qxj5djb" } }, "PermissionDeniedError": { "type": "object", "properties": { "id": { "type": "string", "default": "permission_denied" }, "message": { "type": "string", "default": "You do not have permission to perform this action.", "description": "An error response detailing the field and the nature of the error." } }, "x-stoplight": { "id": "ywbohhxwqjqj3" } }, "NotFoundError": { "type": "object", "properties": { "id": { "type": "string", "default": "not_found" }, "message": { "type": "string", "description": "An error response detailing the nature of the error." } }, "required": [ "message" ], "x-stoplight": { "id": "qazjpvfdteybw" } }, "BulkPaymentTemplateGroupStateEnum": { "enum": [ "active", "active_pending", "pending_approval", "rejected", "archived" ], "type": "string", "description": "* `active` - Active\n* `active_pending` - Active (Pending)\n* `pending_approval` - Pending approval\n* `rejected` - Rejected\n* `archived` - Archived", "x-stoplight": { "id": "oygjsjaqalqzy" } }, "BulkPaymentTemplateVersion": { "type": "object", "description": "Serializer for bulk payment template versions.", "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "template_group": { "type": "string", "format": "uuid", "readOnly": true }, "template_group_name": { "type": "string", "readOnly": true }, "version_number": { "type": "integer", "readOnly": true }, "dual_approval_state": { "readOnly": true, "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DualApprovalStateEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "dual_approval_id": { "type": "string", "format": "uuid", "nullable": true, "readOnly": true }, "template_group_has_active_version": { "type": "boolean", "readOnly": true }, "user_full_name": { "type": "string", "readOnly": true }, "user_email": { "type": "string", "format": "email", "readOnly": true }, "last_used": { "type": "string", "format": "date-time", "readOnly": true, "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "institution_account_name": { "type": "string", "readOnly": true, "description": "Display name of the originating account." }, "institution_account_last_four": { "type": "string", "readOnly": true, "description": "Last four alphanumeric characters of the originating account number." }, "name": { "type": "string", "nullable": true }, "institution_account": { "example": "ccae3440-0c1f-45ce-9b91-57cbbb252818", "description": "The UUID of the originating account for the template.", "type": "string", "format": "uuid" }, "sec_code": { "type": "string", "nullable": true, "maxLength": 3 }, "entry_desc": { "type": "string", "nullable": true, "description": "A field that describes the purpose of the transaction to the receiver. It's used to help identify, monitor, and count payments for specific purposes." }, "description": { "type": "string", "default": "", "maxLength": 256 }, "max_expedite_choice": { "allOf": [ { "$ref": "#/components/schemas/MaxExpediteChoiceEnum" } ], "default": 0 }, "group_posting": { "type": "boolean", "default": false }, "note": { "type": "string", "nullable": true }, "user_change_log": { "type": "string", "default": "" }, "payment_data": { "type": "array", "items": { "$ref": "#/components/schemas/BulkPaymentTemplatePaymentData" } } }, "required": [ "institution_account", "payment_data" ], "x-stoplight": { "id": "zmhczdzhyjekv" } }, "DualApprovalStateEnum": { "enum": [ "approved", "awaiting_approval", "rejected_approval", "canceled", "approval_expired" ], "type": "string", "description": "* `approved` - Dual approval approved\n* `awaiting_approval` - Awaiting dual approval\n* `rejected_approval` - Dual approval rejected\n* `canceled` - Canceled\n* `approval_expired` - Dual approval expired", "x-stoplight": { "id": "xtltw76luuiv0" } }, "NullEnum": { "enum": [ null ], "x-stoplight": { "id": "2493tmzk9db0y" } }, "MaxExpediteChoiceEnum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - Standard\n* `1` - Fast\n* `2` - Fastest", "x-stoplight": { "id": "foblewbg8fdiq" } }, "BulkPaymentTemplatePaymentData": { "type": "object", "description": "Serializer for individual payment data rows within a bulk payment template version.", "properties": { "id": { "type": "string", "format": "uuid", "readOnly": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "recipient": { "example": "ccae3440-0c1f-45ce-9b91-57cbbb252818", "description": "A field that represents the stringified UUID of a related object.", "type": "string", "format": "uuid" }, "amount": { "type": "integer", "example": 100, "maximum": 999999999999999, "minimum": 0, "description": "This value is expressed as an integer in the currency's smallest unit (e.g. cents), not as a decimal. For example, $5.00 is represented as 500 and $0.99 as 99.", "default": 0 }, "description": { "type": "string", "default": "", "maxLength": 128 }, "transaction_type": { "allOf": [ { "$ref": "#/components/schemas/TransactionTypeEnum" } ], "default": "credit" }, "expedite_choice": { "allOf": [ { "$ref": "#/components/schemas/ExpediteChoiceEnum" } ], "default": 0 }, "order": { "type": "integer", "minimum": 0 } }, "required": [ "order", "recipient" ], "x-stoplight": { "id": "x3eih2osly6ps" } }, "TransactionTypeEnum": { "enum": [ "debit", "credit" ], "type": "string", "description": "* `debit` - Pull (debit)\n* `credit` - Push (credit)", "x-stoplight": { "id": "acyeadla4mwfp" } }, "ExpediteChoiceEnum": { "enum": [ 0, 1, 2 ], "type": "integer", "description": "* `0` - Standard\n* `1` - Fast\n* `2` - Fastest", "x-stoplight": { "id": "ir9o6ltby2l2u" } } }, "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" } } } } } } } ````