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"
91 "description": "patron's last name"
94 "description": "patron's first name"
97 "description": "patron's title"
100 "description": "any other names associated with the patron"
103 "description": "initials of the patron"
106 "description": "street number of patron's primary address"
109 "description": "street type of patron's primary address"
112 "description": "first address line of patron's primary address"
115 "description": "second address line of patron's primary address"
118 "description": "city or town of patron's primary address"
121 "description": "state or province of patron's primary address"
124 "description": "zip or postal code of patron's primary address"
127 "description": "country of patron's primary address"
130 "description": "primary email address for patron's primary address"
133 "description": "primary phone number for patron's primary address"
136 "description": "the other phone number for patron's primary address"
139 "description": "fax number for patron's primary address"
142 "description": "secondary email address for patron's primary address"
145 "description": "secondary phone number for patron's primary address"
148 "description": "street number of patron's alternate address"
151 "description": "street type of patron's alternate address"
154 "description": "first address line of patron's alternate address"
157 "description": "second address line of patron's alternate address"
160 "description": "city or town of patron's alternate address"
163 "description": "state or province of patron's alternate address"
166 "description": "zip or postal code of patron's alternate address"
169 "description": "country of patron's alternate address"
172 "description": "email address for patron's alternate address"
175 "description": "phone number for patron's alternate address"
178 "description": "patron's date of birth"
181 "description": "code of patron's home branch"
184 "description": "code of patron's category"
187 "description": "date the patron was added to Koha"
190 "description": "date the patron's card is set to expire"
193 "description": "set to 1 if library marked this patron as having an unconfirmed address"
196 "description": "set to 1 if library marked this patron as having lost his card"
199 "description": "until this date the patron can only check-in"
202 "description": "comment on the stop of the patron"
205 "description": "used for children and professionals to include surname or last name of guarantor or organization name"
207 "contactfirstname": {
208 "description": "used for children to include first name of guarantor"
211 "description": "used for children to include title of guarantor"
214 "description": "borrowernumber used for children or professionals to link them to guarantor or organizations"
217 "description": "a note on the patron's account"
220 "description": "used for children to include the relationship to their guarantor"
223 "description": "unused"
226 "description": "unused"
229 "description": "patron's gender"
232 "description": "patron's encrypted password"
235 "description": "a number associated with the patron's permissions"
238 "description": "patron's login"
241 "description": "a note on the patron's account visible in OPAC and staff client"
244 "description": "a note related to patron's alternate address"
247 "description": "a field that can be used for any information unique to the library"
250 "description": "a field that can be used for any information unique to the library"
252 "altcontactfirstname": {
253 "description": "first name of alternate contact for the patron"
255 "altcontactsurname": {
256 "description": "surname or last name of the alternate contact for the patron"
258 "altcontactaddress1": {
259 "description": "the first address line for the alternate contact for the patron"
261 "altcontactaddress2": {
262 "description": "the second address line for the alternate contact for the patron"
264 "altcontactaddress3": {
265 "description": "the city for the alternate contact for the patron"
268 "description": "the state for the alternate contact for the patron"
270 "altcontactzipcode": {
271 "description": "the zipcode for the alternate contact for the patron"
273 "altcontactcountry": {
274 "description": "the country for the alternate contact for the patron"
277 "description": "the phone number for the alternate contact for the patron"
280 "description": "the mobile phone number where the patron would like to receive notices (if SMS turned on)"
283 "description": "patron's privacy settings related to their reading history"
288 "description": "Patron internal identifier"
294 "description": "Error message",
301 "borrowernumberPathParam": {
302 "name": "borrowernumber",
304 "description": "Internal patron identifier",