2 "/acquisitions/orders": {
4 "x-mojo-to": "Acquisitions::Orders#list",
5 "operationId": "listOrders",
14 "description": "Identifier for a linked bibliographic record",
21 "description": "Identifier for a linked acquisition basket",
28 "description": "Identifier for the fund the order goes against",
35 "description": "Current status for the order. Can be 'new', 'ordered', 'partial', 'complete' or 'cancelled'",
40 "name": "only_active",
42 "description": "If only active orders should be listed",
47 "$ref": "../parameters.json#/match"
50 "$ref": "../parameters.json#/order_by"
53 "$ref": "../parameters.json#/page"
56 "$ref": "../parameters.json#/per_page"
59 "$ref": "../parameters.json#/q_param"
62 "$ref": "../parameters.json#/q_body"
65 "$ref": "../parameters.json#/q_header"
70 "description": "A list of orders",
74 "$ref": "../definitions.json#/order"
79 "description": "Authentication required",
81 "$ref": "../definitions.json#/error"
85 "description": "Access forbidden",
87 "$ref": "../definitions.json#/error"
91 "description": "Order not found",
93 "$ref": "../definitions.json#/error"
97 "description": "Internal server error",
99 "$ref": "../definitions.json#/error"
103 "description": "Under maintenance",
105 "$ref": "../definitions.json#/error"
109 "x-koha-authorization": {
111 "acquisition": [ "order_manage", "order_manage_all" ]
116 "basket.basket_group",
119 "biblio.active_orders+count",
120 "biblio.holds+count",
121 "biblio.items+count",
122 "biblio.suggestions.suggester",
124 "current_item_level_holds+count",
131 "x-mojo-to": "Acquisitions::Orders#add",
132 "operationId": "addOrder",
138 "description": "A JSON object representing an order",
141 "$ref": "../definitions.json#/order"
150 "description": "Order added",
152 "$ref": "../definitions.json#/order"
156 "description": "Bad request",
158 "$ref": "../definitions.json#/error"
162 "description": "Authentication required",
164 "$ref": "../definitions.json#/error"
168 "description": "Access forbidden",
170 "$ref": "../definitions.json#/error"
174 "description": "Conflict in creating the resource",
176 "$ref": "../definitions.json#/error"
180 "description": "Internal server error",
182 "$ref": "../definitions.json#/error"
186 "description": "Under maintenance",
188 "$ref": "../definitions.json#/error"
192 "x-koha-authorization": {
194 "acquisition": "order_manage"
199 "/acquisitions/orders/{order_id}": {
201 "x-mojo-to": "Acquisitions::Orders#get",
202 "operationId": "getOrder",
206 "$ref": "../parameters.json#/order_id_pp"
214 "description": "An order",
216 "$ref": "../definitions.json#/order"
220 "description": "Authentication required",
222 "$ref": "../definitions.json#/error"
226 "description": "Access forbidden",
228 "$ref": "../definitions.json#/error"
232 "description": "Order not found",
234 "$ref": "../definitions.json#/error"
238 "description": "Internal server error",
240 "$ref": "../definitions.json#/error"
244 "description": "Under maintenance",
246 "$ref": "../definitions.json#/error"
250 "x-koha-authorization": {
252 "acquisition": "order_manage"
257 "basket.basket_group",
260 "biblio.active_orders+count",
261 "biblio.holds+count",
262 "biblio.items+count",
263 "biblio.suggestions.suggester",
265 "current_item_level_holds+count",
272 "x-mojo-to": "Acquisitions::Orders#update",
273 "operationId": "updateOrder",
277 "$ref": "../parameters.json#/order_id_pp"
282 "description": "A JSON object representing an order",
285 "$ref": "../definitions.json#/order"
294 "description": "An order",
296 "$ref": "../definitions.json#/order"
300 "description": "Authentication required",
302 "$ref": "../definitions.json#/error"
306 "description": "Access forbidden",
308 "$ref": "../definitions.json#/error"
312 "description": "Order not found",
314 "$ref": "../definitions.json#/error"
318 "description": "Internal server error",
320 "$ref": "../definitions.json#/error"
324 "description": "Under maintenance",
326 "$ref": "../definitions.json#/error"
330 "x-koha-authorization": {
332 "acquisition": "order_manage"
337 "x-mojo-to": "Acquisitions::Orders#delete",
338 "operationId": "deleteOrder",
342 "$ref": "../parameters.json#/order_id_pp"
350 "description": "Order deleted"
353 "description": "Authentication required",
355 "$ref": "../definitions.json#/error"
359 "description": "Access forbidden",
361 "$ref": "../definitions.json#/error"
365 "description": "Order not found",
367 "$ref": "../definitions.json#/error"
371 "description": "Internal server error",
373 "$ref": "../definitions.json#/error"
377 "description": "Under maintenance",
379 "$ref": "../definitions.json#/error"
383 "x-koha-authorization": {
385 "acquisition": "order_manage"