4 "title": "Koha REST API",
8 "url": "http://www.gnu.org/licenses/gpl.txt"
12 "url": "http://koha-community.org/"
15 "basePath": "/api/v1",
19 "x-mojo-controller": "Koha::REST::V1::Patrons",
20 "operationId": "listPatrons",
27 "description": "A list of patrons",
31 "$ref": "#/definitions/patron"
36 "description": "Access forbidden",
38 "$ref": "#/definitions/error"
44 "/patrons/{borrowernumber}": {
46 "x-mojo-controller": "Koha::REST::V1::Patrons",
47 "operationId": "getPatron",
51 "$ref": "#/parameters/borrowernumberPathParam"
59 "description": "A patron",
61 "$ref": "#/definitions/patron"
65 "description": "Access forbidden",
67 "$ref": "#/definitions/error"
71 "description": "Patron not found",
73 "$ref": "#/definitions/error"
85 "$ref": "#/definitions/borrowernumber"
88 "description": "library assigned ID number for patrons",
89 "type": ["string", "null"]
92 "description": "patron's last name",
93 "type": ["string", "null"]
96 "description": "patron's first name",
97 "type": ["string", "null"]
100 "description": "patron's title",
101 "type": ["string", "null"]
104 "description": "any other names associated with the patron",
105 "type": ["string", "null"]
108 "description": "initials of the patron",
109 "type": ["string", "null"]
112 "description": "street number of patron's primary address",
113 "type": ["string", "null"]
116 "description": "street type of patron's primary address",
117 "type": ["string", "null"]
120 "description": "first address line of patron's primary address",
121 "type": ["string", "null"]
124 "description": "second address line of patron's primary address",
125 "type": ["string", "null"]
128 "description": "city or town of patron's primary address",
129 "type": ["string", "null"]
132 "description": "state or province of patron's primary address",
133 "type": ["string", "null"]
136 "description": "zip or postal code of patron's primary address",
137 "type": ["string", "null"]
140 "description": "country of patron's primary address",
141 "type": ["string", "null"]
144 "description": "primary email address for patron's primary address",
145 "type": ["string", "null"]
148 "description": "primary phone number for patron's primary address",
149 "type": ["string", "null"]
152 "description": "the other phone number for patron's primary address",
153 "type": ["string", "null"]
156 "description": "fax number for patron's primary address",
157 "type": ["string", "null"]
160 "description": "secondary email address for patron's primary address",
161 "type": ["string", "null"]
164 "description": "secondary phone number for patron's primary address",
165 "type": ["string", "null"]
168 "description": "street number of patron's alternate address",
169 "type": ["string", "null"]
172 "description": "street type of patron's alternate address",
173 "type": ["string", "null"]
176 "description": "first address line of patron's alternate address",
177 "type": ["string", "null"]
180 "description": "second address line of patron's alternate address",
181 "type": ["string", "null"]
184 "description": "city or town of patron's alternate address",
185 "type": ["string", "null"]
188 "description": "state or province of patron's alternate address",
189 "type": ["string", "null"]
192 "description": "zip or postal code of patron's alternate address",
193 "type": ["string", "null"]
196 "description": "country of patron's alternate address",
197 "type": ["string", "null"]
200 "description": "email address for patron's alternate address",
201 "type": ["string", "null"]
204 "description": "phone number for patron's alternate address",
205 "type": ["string", "null"]
208 "description": "patron's date of birth",
209 "type": ["string", "null"]
212 "description": "code of patron's home branch",
213 "type": ["string", "null"]
216 "description": "code of patron's category",
217 "type": ["string", "null"]
220 "description": "date the patron was added to Koha",
221 "type": ["string", "null"]
224 "description": "date the patron's card is set to expire",
225 "type": ["string", "null"]
228 "description": "set to 1 if library marked this patron as having an unconfirmed address",
229 "type": ["string", "null"]
232 "description": "set to 1 if library marked this patron as having lost his card",
233 "type": ["string", "null"]
236 "description": "until this date the patron can only check-in",
237 "type": ["string", "null"]
240 "description": "comment on the stop of the patron",
241 "type": ["string", "null"]
244 "description": "used for children and professionals to include surname or last name of guarantor or organization name",
245 "type": ["string", "null"]
247 "contactfirstname": {
248 "description": "used for children to include first name of guarantor",
249 "type": ["string", "null"]
252 "description": "used for children to include title of guarantor",
253 "type": ["string", "null"]
256 "description": "borrowernumber used for children or professionals to link them to guarantor or organizations",
257 "type": ["string", "null"]
260 "description": "a note on the patron's account",
261 "type": ["string", "null"]
264 "description": "used for children to include the relationship to their guarantor",
265 "type": ["string", "null"]
268 "description": "unused",
269 "type": ["string", "null"]
272 "description": "unused",
273 "type": ["string", "null"]
276 "description": "patron's gender",
277 "type": ["string", "null"]
280 "description": "patron's encrypted password",
281 "type": ["string", "null"]
284 "description": "a number associated with the patron's permissions",
285 "type": ["string", "null"]
288 "description": "patron's login",
289 "type": ["string", "null"]
292 "description": "a note on the patron's account visible in OPAC and staff client",
293 "type": ["string", "null"]
296 "description": "a note related to patron's alternate address",
297 "type": ["string", "null"]
300 "description": "a field that can be used for any information unique to the library",
301 "type": ["string", "null"]
304 "description": "a field that can be used for any information unique to the library",
305 "type": ["string", "null"]
307 "altcontactfirstname": {
308 "description": "first name of alternate contact for the patron",
309 "type": ["string", "null"]
311 "altcontactsurname": {
312 "description": "surname or last name of the alternate contact for the patron",
313 "type": ["string", "null"]
315 "altcontactaddress1": {
316 "description": "the first address line for the alternate contact for the patron",
317 "type": ["string", "null"]
319 "altcontactaddress2": {
320 "description": "the second address line for the alternate contact for the patron",
321 "type": ["string", "null"]
323 "altcontactaddress3": {
324 "description": "the city for the alternate contact for the patron",
325 "type": ["string", "null"]
328 "description": "the state for the alternate contact for the patron",
329 "type": ["string", "null"]
331 "altcontactzipcode": {
332 "description": "the zipcode for the alternate contact for the patron",
333 "type": ["string", "null"]
335 "altcontactcountry": {
336 "description": "the country for the alternate contact for the patron",
337 "type": ["string", "null"]
340 "description": "the phone number for the alternate contact for the patron",
341 "type": ["string", "null"]
344 "description": "the mobile phone number where the patron would like to receive notices (if SMS turned on)",
345 "type": ["string", "null"]
348 "description": "patron's privacy settings related to their reading history",
349 "type": ["string", "null"]
354 "description": "Patron internal identifier"
360 "description": "Error message",
367 "borrowernumberPathParam": {
368 "name": "borrowernumber",
370 "description": "Internal patron identifier",