---
updatedAt: 2026-05-28T07:48:23.000Z
agentTools:
  projectIndex: https://finp2p-docs.ownera.io/llms.txt
---

# Approve a plan proposal plan

Request adapter approval or rejection to a proposal in an execution plan

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Ledger Adapter Specification",
    "description": "This is the API specification for the Ledger Adapter with whom the FinP2P Router will interact in order to execute and query the underlying implementation.",
    "termsOfService": "https://ownera.io/terms/",
    "contact": {
      "email": "support@ownera.io"
    },
    "version": "0.28"
  },
  "paths": {
    "/plan/proposal": {
      "post": {
        "tags": [
          "execution"
        ],
        "summary": "Approve a plan proposal plan",
        "description": "Request adapter approval or rejection to a proposal in an execution plan",
        "operationId": "executionPlanProposal",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/executionPlanProposalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApproveExecutionPlanResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 1002,
                      "message": "Invalid request format"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIErrors"
                },
                "example": {
                  "errors": [
                    {
                      "code": 2202,
                      "message": "Internal service failure"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "randomPollingInterval": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "random"
            ]
          }
        }
      },
      "absolutePollingInterval": {
        "type": "object",
        "required": [
          "type",
          "time"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "absolute"
            ]
          },
          "time": {
            "type": "integer",
            "description": "absolute time as epoch time seconds"
          }
        }
      },
      "relativePollingInterval": {
        "type": "object",
        "required": [
          "type",
          "duration"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "relative"
            ]
          },
          "duration": {
            "type": "string",
            "description": "ISO-8601 duration format",
            "example": "PT5M (5Min duration), P1DT30M (1 Day and 30 Minutes )",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "pollingResultsStrategy": {
        "type": "object",
        "required": [
          "type",
          "polling"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "poll"
            ]
          },
          "polling": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/randomPollingInterval"
              },
              {
                "$ref": "#/components/schemas/absolutePollingInterval"
              },
              {
                "$ref": "#/components/schemas/relativePollingInterval"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "random": "#/components/schemas/randomPollingInterval",
                "absolute": "#/components/schemas/absolutePollingInterval",
                "relative": "#/components/schemas/relativePollingInterval"
              }
            }
          }
        }
      },
      "callbackEndpoint": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "endpoint"
            ]
          }
        }
      },
      "callbackResultsStrategy": {
        "type": "object",
        "required": [
          "type",
          "callback"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "callback"
            ]
          },
          "callback": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/callbackEndpoint"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "endpoint": "#/components/schemas/callbackEndpoint"
              }
            }
          }
        }
      },
      "OperationMetadata": {
        "type": "object",
        "description": "additional metadata regarding the operation",
        "properties": {
          "operationResponseStrategy": {
            "description": "denote the expected response strategy of the operation, i.e. how would completion and results of the operation should be handled \noptional, if not provided [polling strategy](#/components/schema/pollingResultsStrategy) will be use with [random interval](#/components/schema/randomPollingInterval)\n",
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/pollingResultsStrategy"
              },
              {
                "$ref": "#/components/schemas/callbackResultsStrategy"
              }
            ],
            "discriminator": {
              "propertyName": "type",
              "mapping": {
                "poll": "#/components/schemas/pollingResultsStrategy",
                "callback": "#/components/schemas/callbackResultsStrategy"
              }
            }
          }
        }
      },
      "OperationBase": {
        "type": "object",
        "required": [
          "cid",
          "isCompleted"
        ],
        "properties": {
          "cid": {
            "type": "string",
            "description": "unique correlation id which identify the operation",
            "x-allowEmpty": true
          },
          "isCompleted": {
            "type": "boolean",
            "description": "flag indicating if the operation completed, if true then error or response must be present (but not both)",
            "default": false
          },
          "operationMetadata": {
            "$ref": "#/components/schemas/OperationMetadata"
          }
        }
      },
      "PlanApproved": {
        "type": "object",
        "required": [
          "status"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "approved"
            ]
          }
        }
      },
      "ValidationFailure": {
        "type": "object",
        "required": [
          "failureType",
          "code",
          "message"
        ],
        "properties": {
          "failureType": {
            "type": "string",
            "enum": [
              "validationFailure"
            ]
          },
          "code": {
            "type": "integer",
            "format": "uint32",
            "description": "ledger error code for validation"
          },
          "message": {
            "type": "string",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "RegulationError": {
        "type": "object",
        "required": [
          "regulationType",
          "details"
        ],
        "properties": {
          "regulationType": {
            "type": "string",
            "description": "the type of regulation",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          },
          "details": {
            "type": "string",
            "description": "actionable details of the error",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "RegulationFailure": {
        "type": "object",
        "required": [
          "failureType",
          "errors"
        ],
        "properties": {
          "failureType": {
            "type": "string",
            "enum": [
              "regulationFailure"
            ]
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegulationError"
            }
          }
        }
      },
      "PlanRejected": {
        "type": "object",
        "required": [
          "status"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "rejected"
            ]
          },
          "failure": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ValidationFailure"
              },
              {
                "$ref": "#/components/schemas/RegulationFailure"
              }
            ],
            "discriminator": {
              "propertyName": "failureType",
              "mapping": {
                "validationFailure": "#/components/schemas/ValidationFailure",
                "regulationFailure": "#/components/schemas/RegulationFailure"
              }
            }
          }
        }
      },
      "PlanApprovalResponse": {
        "type": "object",
        "properties": {
          "approval": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PlanApproved"
              },
              {
                "$ref": "#/components/schemas/PlanRejected"
              }
            ],
            "discriminator": {
              "propertyName": "status",
              "mapping": {
                "approved": "#/components/schemas/PlanApproved",
                "rejected": "#/components/schemas/PlanRejected"
              }
            }
          }
        }
      },
      "ExecutionPlanApprovalOperation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OperationBase"
          },
          {
            "$ref": "#/components/schemas/PlanApprovalResponse"
          }
        ]
      },
      "ApproveExecutionPlanResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ExecutionPlanApprovalOperation"
          }
        ]
      },
      "APIError": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "description": "Error code indicating the specific failure - for more information see [API Errors](./api-error-codes-reference).\n"
          },
          "message": {
            "type": "string",
            "description": "A descriptive message providing context about the error.",
            "pattern": ".*\\S.*",
            "x-autoMinLength": true
          }
        }
      },
      "APIErrors": {
        "type": "object",
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/APIError"
            }
          }
        }
      },
      "executionPlanCancellationProposal": {
        "type": "object",
        "required": [
          "proposalType"
        ],
        "properties": {
          "proposalType": {
            "type": "string",
            "enum": [
              "cancel"
            ]
          }
        }
      },
      "executionPlanInstructionProposal": {
        "type": "object",
        "required": [
          "proposalType",
          "instructionSequence"
        ],
        "properties": {
          "proposalType": {
            "type": "string",
            "enum": [
              "instruction"
            ]
          },
          "instructionSequence": {
            "type": "integer",
            "format": "uint32",
            "minimum": 1,
            "description": "sequence number of the instruction completion event"
          }
        }
      },
      "executionPlanResetProposal": {
        "type": "object",
        "required": [
          "proposalType",
          "proposedSequence"
        ],
        "properties": {
          "proposalType": {
            "type": "string",
            "enum": [
              "reset"
            ]
          },
          "proposedSequence": {
            "type": "integer",
            "format": "uint32",
            "minimum": 1,
            "description": "sequence number of the instruction to reset and retry in the execution plan"
          }
        }
      },
      "executionPlanProposalRequest": {
        "type": "object",
        "required": [
          "executionPlan"
        ],
        "properties": {
          "executionPlan": {
            "type": "object",
            "description": "execution plan information",
            "required": [
              "id",
              "proposal"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "execution plan id",
                "pattern": ".*\\S.*",
                "x-autoMinLength": true
              },
              "proposal": {
                "type": "object",
                "description": "type of proposal payload",
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/executionPlanCancellationProposal"
                  },
                  {
                    "$ref": "#/components/schemas/executionPlanInstructionProposal"
                  },
                  {
                    "$ref": "#/components/schemas/executionPlanResetProposal"
                  }
                ],
                "discriminator": {
                  "propertyName": "proposalType",
                  "mapping": {
                    "cancel": "#/components/schemas/executionPlanCancellationProposal",
                    "reset": "#/components/schemas/executionPlanResetProposal",
                    "instruction": "#/components/schemas/executionPlanInstructionProposal"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```