/circrequests

Details:  Circulation Requests

URL:  https://yourlibrary.caiasoft.com/api/circrequests/v1

HTTP Verb:  POST

Content-Type:  application/json

Authorization Required:  

NameValueRequiredNotes
X-API-KeystringYessend in header

Parameters:  JSON Formatted in the following format:
{"requests":[ { “name”:”value” (see table below) } ]}

NameValueRequiredNotes
barcodealphanumeric stringYesItem Barcode
request_typeOnly values accepted:
PYR
ERT
DEA
SHP
YesType of retrieval request which must match the job type requested
PYR (Physical Retrieval)
ERT (E-Retrieval)
DEA (Deaccession)
SHP (SH-I-P service)
stopalphanumeric stringYesMust match a stop name or code or stop location name or code from your circulation stops list
request_idalphanumeric stringNoUnique Request identifier from the sending system. Note that duplicate entries with the same request ID will be skipped in processing
requestoralphanumeric stringNoName of requesting party
patron_idalphanumeric stringNoID or email of requesting party
titlealphanumeric stringNoTitle of requested item
authoralphanumeric stringNoAuthor of requested item
volumealphanumeric stringNoVolume of requested item
call_numberalphanumeric stringNoCall number of requested item
article_titlealphanumeric stringNoArticle title of requested item (for use in ERT scanning)
article_authoralphanumeric stringNoArticle author of requested item (for use in ERT scanning)
article_pagesalphanumeric stringNoArticle pages of requested item (for use in ERT scanning)
detailsalphanumeric stringNoAdditional request details

Return Response:  
{“success”:”true/false”, “error”:”string”, “request_count”:”int”, "results":[ { “name”:”value” (see results-> section of table below) } ]}

NameValueNotes
successtrue/false
errorstringAPI format/key errors only. Will only be filled in when success = false
request_countinteNumber of requests processed (regardless of denials, skipped requests)
results->barcodestringItem Barcode Requested
results->denyY/NY if request denied
N if request accepted
See status for details
results->statusstring“Item Requested” OR Detail for request denial

Examples:  
API Call & JSON:

https://yourlibrary.caiasoft.com/api/circrequests/v1
{"requests":[ { "requestid":"123456", "request_type":"PYR", "barcode":"33433096043165", "stop":"LAW", "requestor":"Patron", "patron_id":"patron@abcdefg.com" }, { "requestid":"123457", "request_type":"PYR", "barcode":"31234000023075", "stop":"MAINLIB", "title":"Charlotte's Web", "author":"E.B. White", "call_number":"C121.4", "patron_id":"651393" } ]}



API Return:

{"success":true,"error":"", "request_count":"2", "results":[{"item":"33433096043165", "deny":"N", "istatus":"Item Requested"},{"item":"31234000023075", "deny":"Y", "istatus":"Item Cannot be Retrieved - Item is Currently Circulating"}]}