Api  >  Book Checkout Service


Book Checkout Service

Service URL /v1/libraries/{libraryId}/patrons/{patronId}/books/checkouts

Service Endpoints


eBook & Audiobook: Checkout

Endpoint URL /v1/libraries/{libraryId}/patrons/{patronId}/books/checkouts/{isbn}
Description
Checks out a book
Http Messages
HTTP POST Request
Fiddler Request
 
POST /v1/libraries/{libraryId}/patrons/{patronId}/books/checkouts/9781682766019 HTTP/1.1
User-Agent: fiddler
Host: api.rbdigitalstage.com
Authorization: basic {basicToken}
Content-Type: application/json

HTTP POST Response
Response
{
  "message": "success"
}


eBook & Audiobook: Renewal

Endpoint URL /v1/libraries/{libraryId}/patrons/{patronId}/books/checkouts/{isbn}
Description
Renews a checked out book
Http Messages
HTTP PUT Request
Fiddler Request
PUT /v1/libraries/{libraryId}/patrons/{patronId}/books/checkouts/9781682766019 HTTP/1.1
User-Agent: fiddler
Host: api.rbdigitalstage.com
Authorization: basic {basicToken}
Content-Type: application/json

HTTP PUT Response
Response
{
  "titleId": 0,
  "isbn": "9781682766019",
  "expiration": "2017-08-25",
  "output": "SUCCESS",
  "canRenew": false,
  "transactionId": 12648567,
  "patronId": 780808,
  "libraryId": 1062
}


eBook & Audiobook: Return

Endpoint URL /v1/libraries/{libraryId}/patrons/{patronId}/books/checkouts/{isbn}
Description
Returns a checked out book
Http Messages
HTTP DELETE Request
Fiddler Request
 
DELETE /v1/libraries/{libraryId}/patrons/{patronId}/books/checkouts/9781682766019 HTTP/1.1
User-Agent: fiddler
Host: api.rbdigitalstage.com
Authorization: basic {basicToken}
Content-Type: application/json

HTTP DELETE Response
Response
{
  "message": "success"
}