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
38 description: A list of checkouts
40 $ref: "../swagger.yaml#/definitions/checkouts"
42 description: Access forbidden
44 $ref: "../swagger.yaml#/definitions/error"
46 description: Patron not found
48 $ref: "../swagger.yaml#/definitions/error"
51 Internal server error. Possible `error_code` attribute values:
53 * `internal_server_error`
55 $ref: "../swagger.yaml#/definitions/error"
57 description: Under maintenance
59 $ref: "../swagger.yaml#/definitions/error"
62 circulate: circulate_remaining_permissions
63 "/checkouts/{checkout_id}":
65 x-mojo-to: Checkouts#get
66 operationId: getCheckout
71 - $ref: "../swagger.yaml#/parameters/checkout_id_pp"
75 description: Embed list sent as a request header
87 description: Updated borrower's checkout
89 $ref: "../swagger.yaml#/definitions/checkout"
91 description: Access forbidden
93 $ref: "../swagger.yaml#/definitions/error"
95 description: Checkout not found
97 $ref: "../swagger.yaml#/definitions/error"
100 Internal server error. Possible `error_code` attribute values:
102 * `internal_server_error`
104 $ref: "../swagger.yaml#/definitions/error"
106 description: Under maintenance
108 $ref: "../swagger.yaml#/definitions/error"
109 x-koha-authorization:
111 circulate: circulate_remaining_permissions
112 "/checkouts/{checkout_id}/renewal":
114 x-mojo-to: Checkouts#renew
115 operationId: renewCheckout
118 summary: Renew a checkout
120 - $ref: "../swagger.yaml#/parameters/checkout_id_pp"
121 - $ref: "../swagger.yaml#/parameters/seen_pp"
126 description: Updated borrower's checkout
128 $ref: "../swagger.yaml#/definitions/checkout"
130 description: Cannot renew checkout
132 $ref: "../swagger.yaml#/definitions/error"
134 description: Checkout not found
136 $ref: "../swagger.yaml#/definitions/error"
139 Internal server error. Possible `error_code` attribute values:
141 * `internal_server_error`
143 $ref: "../swagger.yaml#/definitions/error"
145 description: Under maintenance
147 $ref: "../swagger.yaml#/definitions/error"
148 x-koha-authorization:
150 circulate: circulate_remaining_permissions
151 "/checkouts/{checkout_id}/renewals":
153 x-mojo-to: Checkouts#get_renewals
154 operationId: getRenewals
157 summary: List renewals for a checkout
159 - $ref: ../parameters.yaml#/checkout_id_pp
164 description: List of checkouts renewals
166 $ref: ../definitions.yaml#/renewal
168 description: Access forbidden
170 $ref: ../definitions.yaml#/error
172 description: Checkout not found
174 $ref: ../definitions.yaml#/error
177 Internal server error. Possible `error_code` attribute values:
179 * `internal_server_error`
181 $ref: ../definitions.yaml#/error
183 description: Under maintenance
185 $ref: ../definitions.yaml#/error
186 x-koha-authorization:
188 circulate: circulate_remaining_permissions
191 "/checkouts/{checkout_id}/allows_renewal":
193 x-mojo-to: Checkouts#allows_renewal
194 operationId: allows_renewalCheckout
197 summary: Get renewability for a checkout
199 - $ref: "../swagger.yaml#/parameters/checkout_id_pp"
204 description: Checkout renewability information
206 $ref: "../swagger.yaml#/definitions/allows_renewal"
208 description: Forbidden
210 $ref: "../swagger.yaml#/definitions/error"
212 description: Checkout not found
214 $ref: "../swagger.yaml#/definitions/error"
217 Internal server error. Possible `error_code` attribute values:
219 * `internal_server_error`
221 $ref: "../swagger.yaml#/definitions/error"
223 description: Under maintenance
225 $ref: "../swagger.yaml#/definitions/error"
226 x-koha-authorization:
228 circulate: circulate_remaining_permissions