Logo
NeoArc Studio
POST /loans

Create Loan

Create a new book loan. The member borrows a book from the library. Validates that the book is available and the member has no overdue loans.

Tags: loans

Request Body

Loan creation request with book and member IDs

Content Types: application/json

Schema: CreateLoanRequest

Responses

Status Description Schema
201 Loan created successfully Loan
400 Invalid request - validation errors ErrorResponse
409 Conflict - book not available or member has overdue loans ErrorResponse