4 x-mojo-to: Checkouts#list
5 operationId: listCheckouts
8 summary: List checkouts
10 - $ref: "../swagger.yaml#/parameters/patron_id_qp"
11 - $ref: "../swagger.yaml#/parameters/page"
12 - $ref: "../swagger.yaml#/parameters/per_page"
13 - $ref: "../swagger.yaml#/parameters/match"
14 - $ref: "../swagger.yaml#/parameters/order_by"
15 - $ref: "../swagger.yaml#/parameters/q_param"
16 - $ref: "../swagger.yaml#/parameters/q_body"
17 - $ref: "../swagger.yaml#/parameters/q_header"
18 - $ref: "../swagger.yaml#/parameters/request_id_header"
21 description: By default, current checkouts are returned, when this is true then
22 checked in checkouts are returned as result.
27 description: Embed list sent as a request header
39 description: A list of checkouts
41 $ref: "../swagger.yaml#/definitions/checkouts"
43 description: Access forbidden
45 $ref: "../swagger.yaml#/definitions/error"
47 description: Patron not found
49 $ref: "../swagger.yaml#/definitions/error"
52 Internal server error. Possible `error_code` attribute values:
54 * `internal_server_error`
56 $ref: "../swagger.yaml#/definitions/error"
58 description: Under maintenance
60 $ref: "../swagger.yaml#/definitions/error"
63 circulate: circulate_remaining_permissions
64 "/checkouts/{checkout_id}":
66 x-mojo-to: Checkouts#get
67 operationId: getCheckout
72 - $ref: "../swagger.yaml#/parameters/checkout_id_pp"
76 description: Embed list sent as a request header
88 description: Updated borrower's checkout
90 $ref: "../swagger.yaml#/definitions/checkout"
92 description: Access forbidden
94 $ref: "../swagger.yaml#/definitions/error"
96 description: Checkout not found
98 $ref: "../swagger.yaml#/definitions/error"
101 Internal server error. Possible `error_code` attribute values:
103 * `internal_server_error`
105 $ref: "../swagger.yaml#/definitions/error"
107 description: Under maintenance
109 $ref: "../swagger.yaml#/definitions/error"
110 x-koha-authorization:
112 circulate: circulate_remaining_permissions
113 "/checkouts/{checkout_id}/renewal":
115 x-mojo-to: Checkouts#renew
116 operationId: renewCheckout
119 summary: Renew a checkout
121 - $ref: "../swagger.yaml#/parameters/checkout_id_pp"
122 - $ref: "../swagger.yaml#/parameters/seen_pp"
127 description: Updated borrower's checkout
129 $ref: "../swagger.yaml#/definitions/checkout"
131 description: Cannot renew checkout
133 $ref: "../swagger.yaml#/definitions/error"
135 description: Checkout not found
137 $ref: "../swagger.yaml#/definitions/error"
140 Internal server error. Possible `error_code` attribute values:
142 * `internal_server_error`
144 $ref: "../swagger.yaml#/definitions/error"
146 description: Under maintenance
148 $ref: "../swagger.yaml#/definitions/error"
149 x-koha-authorization:
151 circulate: circulate_remaining_permissions
152 "/checkouts/{checkout_id}/renewals":
154 x-mojo-to: Checkouts#renew
155 operationId: renewsCheckout
158 summary: Renew a checkout
160 - $ref: "../swagger.yaml#/parameters/checkout_id_pp"
161 - $ref: "../swagger.yaml#/parameters/seen_pp"
166 description: Updated borrower's checkout
168 $ref: "../swagger.yaml#/definitions/checkout"
170 description: Cannot renew checkout
172 $ref: "../swagger.yaml#/definitions/error"
174 description: Checkout not found
176 $ref: "../swagger.yaml#/definitions/error"
179 Internal server error. Possible `error_code` attribute values:
181 * `internal_server_error`
183 $ref: "../swagger.yaml#/definitions/error"
185 description: Under maintenance
187 $ref: "../swagger.yaml#/definitions/error"
188 x-koha-authorization:
190 circulate: circulate_remaining_permissions
192 x-mojo-to: Checkouts#get_renewals
193 operationId: getRenewals
196 summary: List renewals for a checkout
198 - $ref: "../swagger.yaml#/parameters/checkout_id_pp"
202 description: Embed list sent as a request header
208 collectionFormat: csv
213 description: List of checkouts renewals
215 $ref: "../swagger.yaml#/definitions/renewals"
217 description: Access forbidden
219 $ref: "../swagger.yaml#/definitions/error"
221 description: Checkout not found
223 $ref: "../swagger.yaml#/definitions/error"
226 Internal server error. Possible `error_code` attribute values:
228 * `internal_server_error`
230 $ref: "../swagger.yaml#/definitions/error"
232 description: Under maintenance
234 $ref: "../swagger.yaml#/definitions/error"
235 x-koha-authorization:
237 circulate: circulate_remaining_permissions
240 "/checkouts/{checkout_id}/allows_renewal":
242 x-mojo-to: Checkouts#allows_renewal
243 operationId: allows_renewalCheckout
246 summary: Get renewability for a checkout
248 - $ref: "../swagger.yaml#/parameters/checkout_id_pp"
253 description: Checkout renewability information
255 $ref: "../swagger.yaml#/definitions/allows_renewal"
257 description: Forbidden
259 $ref: "../swagger.yaml#/definitions/error"
261 description: Checkout not found
263 $ref: "../swagger.yaml#/definitions/error"
266 Internal server error. Possible `error_code` attribute values:
268 * `internal_server_error`
270 $ref: "../swagger.yaml#/definitions/error"
272 description: Under maintenance
274 $ref: "../swagger.yaml#/definitions/error"
275 x-koha-authorization:
277 circulate: circulate_remaining_permissions