> ## Documentation Index
> Fetch the complete documentation index at: https://hevninc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Record a request approved by signing it

> The web app sends the transfer from the account's own wallet through the
normal flow, then posts the hash here: that report is both the approving
vote and the execution receipt.



## OpenAPI

````yaml /openapi.json post /api/v1/transfer_requests/{proposal_id}/approve
openapi: 3.1.0
info:
  title: HEVN API
  description: Backend API for HEVN mobile neobank
  version: 0.1.2
servers: []
security: []
paths:
  /api/v1/transfer_requests/{proposal_id}/approve:
    post:
      tags:
        - Transfer requests
      summary: Record a request approved by signing it
      description: |-
        The web app sends the transfer from the account's own wallet through the
        normal flow, then posts the hash here: that report is both the approving
        vote and the execution receipt.
      operationId: >-
        approve_transfer_request_api_v1_transfer_requests__proposal_id__approve_post
      parameters:
        - name: proposal_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Proposal Id
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransferRequestApproveRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransferRequestResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    TransferRequestApproveRequest:
      properties:
        txHash:
          type: string
          title: Txhash
        transactionId:
          anyOf:
            - type: string
            - type: 'null'
          title: Transactionid
      type: object
      required:
        - txHash
      title: TransferRequestApproveRequest
      description: >-
        Body of the approve call.


        The web app executes the transfer client-side through the normal send
        flow

        (funds leave the paying account's own wallet), then posts the resulting

        on-chain hash here. That report is both the approving vote and the

        execution receipt: the backend moves no money, it records what landed.
    TransferRequestResponse:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
        status:
          anyOf:
            - $ref: '#/components/schemas/TransferRequestStatus'
            - type: 'null'
        txHash:
          anyOf:
            - type: string
            - type: 'null'
          title: Txhash
        transactionId:
          anyOf:
            - type: string
            - type: 'null'
          title: Transactionid
        accountId:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Accountid
        appId:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Appid
        requestedByUserId:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Requestedbyuserid
        contactId:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Contactid
        quoteId:
          anyOf:
            - type: string
            - type: 'null'
          title: Quoteid
        invoiceId:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Invoiceid
        amount:
          anyOf:
            - type: number
            - type: 'null'
          title: Amount
        memo:
          anyOf:
            - type: string
            - type: 'null'
          title: Memo
        requestedTime:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Requestedtime
        chatId:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Chatid
        approvalUrl:
          anyOf:
            - type: string
            - type: 'null'
          title: Approvalurl
      type: object
      title: TransferRequestResponse
      description: >-
        One outcome shape for both ways a transfer attempt can end.


        Spent straight away: ``txHash`` only. Needs approval: the request that
        was

        filed, with the deep link to approve it. ``transactionId`` appears once
        an

        approved transfer has been reported back. A decline reason is not a
        field —

        it is a message in ``chatId``, the request's thread.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TransferRequestStatus:
      type: string
      enum:
        - requested
        - approved
        - declined
        - failed
      title: TransferRequestStatus
      description: >-
        Client-facing status of a ``transfer_request`` proposal.


        The record is a proposal (seven statuses); this is the short vocabulary
        the

        API keeps for the agent and the web app, mapped from `ProposalStatus` by

        :meth:`from_proposal`.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````