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

# Transition A Resource Loan

> Approves, declines, checks out, returns, or cancels a resource loan when the member has permission for that transition.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/community/resource-loans/{loan}/transition
openapi: 3.1.0
info:
  title: TheFaithApp Partner API
  version: 1.0.0
  description: >-
    The v1 API for third-party apps that sign in TheFaithApp members and access
    church-scoped content and workflows.
  contact:
    name: TheFaithApp Support
    email: support@thefaithapp.com
servers:
  - url: https://api.thefaithapp.com
    description: Production
security:
  - apiKeyAuth: []
    bearerAuth: []
tags:
  - name: Hosted Auth
    description: Sign members in through the hosted TheFaithApp authentication flow.
  - name: Core Experience
    description: Load member context and the personalized home experience.
  - name: Content
    description: >-
      Read sermons, media, YouTube videos, devotionals, and streaming
      configuration.
  - name: Engagement
    description: Manage member favorites and devotional bookmarks.
  - name: Churches
    description: Read church profiles, public directory records, and branch information.
  - name: Events & Volunteers
    description: >-
      Browse events and volunteer opportunities, then manage registrations and
      commitments.
  - name: Notifications & Bulletins
    description: Read church and member notifications and published bulletins.
  - name: Prayer
    description: Submit a prayer request for the authenticated member.
  - name: Member Connections
    description: Manage the member’s campus and ministry connections.
  - name: Community Groups
    description: >-
      Discover groups and manage membership, feeds, attendance, study guides,
      and leader notes.
  - name: Community Preferences & Research
    description: >-
      Manage community preferences, summaries, and consent-based research
      participation.
  - name: Resource Sharing
    description: Offer shared resources and manage member loan requests and transitions.
  - name: Mutual Aid
    description: >-
      Manage needs and offers, private responses, safety reports, and member
      activity.
  - name: Analytics
    description: Record product analytics events and retrieve aggregate metrics.
  - name: Notification Analytics
    description: Record and summarize notification delivery, open, and click events.
paths:
  /v1/community/resource-loans/{loan}/transition:
    post:
      tags:
        - Resource Sharing
      summary: Transition A Resource Loan
      description: >-
        Approves, declines, checks out, returns, or cancels a resource loan when
        the member has permission for that transition.
      operationId: transitionCommunityResourceLoan
      parameters:
        - name: loan
          in: path
          required: true
          description: Resource loan identifier.
          schema:
            type: integer
            minimum: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - action
              properties:
                action:
                  type: string
                  enum:
                    - approve
                    - decline
                    - checkout
                    - return
                    - cancel
            example:
              action: approve
      responses:
        '200':
          description: Loan transitioned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunityResourceLoanResponse'
              examples:
                success:
                  summary: Loan transitioned.
                  value:
                    status: Success
                    data:
                      loan:
                        id: 511
                        status: approved
                        private_note: Needed for a family visit next weekend.
                        requested_at: '2026-07-18T09:30:00.000000Z'
                        checked_out_at: null
                        due_at: null
                        returned_at: null
                        chat_channel_id: 604
                        resource:
                          id: 206
                          type: lending_item
                          title: Folding wheelchair
                          description: >-
                            A lightweight folding wheelchair available for
                            short-term use.
                          condition: good
                          status: available
                          default_loan_days: 14
                          approximate_area: Central Campus
                          is_owner: false
                          managed_by: member
                          created_at: '2026-07-18T09:30:00.000000Z'
        '401':
          description: Missing or invalid API key or member bearer token.
        '403':
          description: The member cannot perform this transition.
        '404':
          description: The loan was not found or community resources are disabled.
        '409':
          description: The transition is not valid from the loan's current state.
        '422':
          description: The requested action is invalid.
components:
  schemas:
    CommunityResourceLoanResponse:
      type: object
      properties:
        status:
          type: string
          const: Success
        data:
          type: object
          properties:
            loan:
              $ref: '#/components/schemas/CommunityResourceLoan'
    CommunityResourceLoan:
      type: object
      properties:
        id:
          type: integer
        status:
          type: string
          enum:
            - requested
            - approved
            - declined
            - checked_out
            - overdue
            - returned
            - cancelled
        private_note:
          type:
            - string
            - 'null'
        requested_at:
          type:
            - string
            - 'null'
          format: date-time
        checked_out_at:
          type:
            - string
            - 'null'
          format: date-time
        due_at:
          type:
            - string
            - 'null'
          format: date-time
        returned_at:
          type:
            - string
            - 'null'
          format: date-time
        chat_channel_id:
          type:
            - integer
            - 'null'
        resource:
          type:
            - object
            - 'null'
          description: >-
            Summary of the resource associated with the loan. Nested loan
            history is omitted.
        borrower:
          type:
            - object
            - 'null'
          description: >-
            Borrower summary when the authenticated member or church role may
            view it.
          properties:
            id:
              type: integer
            name:
              type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Client API key copied from Developer Access in the TheFaithApp
        dashboard.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum
      description: Member access token returned by `POST /v1/auth/token`.

````