Check out and check in library items via FOLIO Okapi circulation REST API

domain: dev.folio.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate to the FOLIO Okapi gateway by POSTing username and password to /authn/login to receive an x-okapi-token header value
  2. Include the x-okapi-token and x-okapi-tenant headers on all subsequent requests to route them through Okapi to the correct module
  3. POST /circulation/check-out-by-barcode with a JSON body containing itemBarcode, userBarcode, and servicePointId to check out the item to the patron
  4. Note the returned loan object's id, dueDate, and item details for confirmation and receipt generation
  5. When the item is returned, POST /circulation/check-in-by-barcode with itemBarcode, servicePointId, and returnDate to check in the item
  6. GET /loan-storage/loans?query=userId=={userId} to retrieve a patron's full loan history for account review or overdue processing

Known gotchas

Related routes

Retrieve a patron's current checkouts via the Sierra REST API
techdocs.iii.com · 4 steps · unrated
Renew a patron's checked-out item via the Koha REST API
koha-community.org · 4 steps · unrated
Query check-in and attendance records via the Planning Center Check-Ins v2 API
api.planningcenteronline.com · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans