# Delete maturity instruction override Delete an existing maturity instruction override for a specific account and deposit product, reverting the account to the default maturity instructions configured in the product. # OpenAPI definition ```json { "openapi": "3.0.0", "info": { "title": "Banking - Interest-bearing accounts", "version": "1.0.0", "description": "API for interest-bearing account functionality", "contact": { "name": "API Support", "url": "https://developers.pismo.io/support/" }, "license": { "name": "Copyright Pismo" } }, "servers": [ { "url": "https://sandbox.pismolabs.io/savings-products", "description": "Sandbox API server for testing" } ], "tags": [ { "name": "Maturity instruction override", "description": "Endpoints that manage maturity instruction overrides for deposit accounts" } ], "components": { "parameters": { "authorizationTokenHeader": { "name": "AuthorizationToken", "in": "header", "schema": { "type": "string" }, "required": true, "description": "Account token. Token encoded with a Pismo account ID. Tokens can expire quickly, which can result in a 401 Unauthorized error.\n", "example": 1234 }, "productId": { "description": "Product ID", "in": "path", "name": "productId", "required": true, "schema": { "type": "string" }, "example": "2c336e9d-d04f-4fd0-8f6e-25808f48d70c" }, "accountId": { "description": "Account ID", "in": "path", "name": "accountId", "required": true, "schema": { "type": "integer" }, "example": 123456 } }, "schemas": { "ErrorResponse": { "type": "object", "properties": { "code": { "type": "string", "description": "Error type code", "example": "EIBACC0003" }, "details": { "type": "string", "description": "Error details", "example": "error EIBACC0008: Validation error [(Field 'Order' is invalid)]" }, "message": { "description": "Error message", "example": "Bad Request", "type": "string" } } }, "MaturityInstructionOverrideResponse": { "type": "object", "properties": { "product_id": { "type": "string", "description": "The product ID associated with the override", "example": "2c336e9d-d04f-4fd0-8f6e-25808f48d70c" }, "principal": { "type": "string", "description": "Principal instruction setting", "example": "ROLLOVER" }, "interest": { "type": "string", "description": "Interest instruction setting", "example": "PAY" }, "reason": { "type": "string", "description": "Override reason", "example": "Customer requested custom maturity handling" }, "status": { "type": "string", "description": "Override status", "example": "ACTIVE" }, "created_at": { "type": "string", "format": "date-time", "description": "Timestamp that indicates when the override was created", "example": "2024-01-23T13:26:25.000Z" }, "updated_at": { "type": "string", "format": "date-time", "description": "Timestamp that indicates when the override was last updated", "example": "2024-01-23T13:26:25.000Z" } } } }, "securitySchemes": { "BearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT" } }, "responses": { "400BadRequest": { "description": "Bad request", "content": { "application/json": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/ErrorResponse" } ] }, "examples": { "invalidRequestBody": { "summary": "Bad Request", "value": { "code": "EIBACC0008", "message": "Bad Request", "detail": "error EIBACC0008: Validation error [(Field 'Order' is invalid)]" } } } } } }, "404NotFound": { "description": "Bad request", "content": { "application/json": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/ErrorResponse" } ] }, "examples": { "invalidRequestBody": { "summary": "Bad Request", "value": { "code": "EIBACC0064", "message": "Product not found" } } } } } }, "500InternalServer": { "description": "Internal error", "content": { "application/json": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/ErrorResponse" } ] }, "examples": { "internalProcessingError": { "summary": "Internal processing error", "value": { "code": "EIBACC0007", "message": "Internal error", "detail": "Internal error" } } } } } } } }, "paths": { "/v1/deposits/{productId}/accounts/{accountId}/maturity-instructions/overrides": { "delete": { "tags": [ "Maturity instruction override" ], "summary": "Delete maturity instruction override", "description": "Delete an existing maturity instruction override for a specific account and deposit product, reverting the account to the default maturity instructions configured in the product.\n", "operationId": "interest-bearing-v1-delete-maturity-instruction-override", "parameters": [ { "$ref": "#/components/parameters/productId" }, { "$ref": "#/components/parameters/accountId" }, { "$ref": "#/components/parameters/authorizationTokenHeader" } ], "responses": { "200": { "description": "Override deleted successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MaturityInstructionOverrideResponse" } } } }, "400": { "$ref": "#/components/responses/400BadRequest" }, "403": { "description": "Forbidden" }, "404": { "$ref": "#/components/responses/404NotFound" }, "500": { "$ref": "#/components/responses/500InternalServer" } } } } }, "security": [ { "BearerAuth": [] } ] } ```