2 "/acquisitions/orders": {
4 "x-mojo-to": "Acquisitions::Orders#list",
5 "operationId": "listOrders",
17 "description": "Identifier for a linked bibliographic record",
24 "description": "Identifier for a linked acquisition basket",
31 "description": "Identifier for the fund the order goes against",
38 "description": "Current status for the order. Can be 'new', 'ordered', 'partial', 'complete' or 'cancelled'",
43 "name": "only_active",
45 "description": "If only active orders should be listed",
50 "$ref": "../parameters.json#/match"
53 "$ref": "../parameters.json#/order_by"
56 "$ref": "../parameters.json#/page"
59 "$ref": "../parameters.json#/per_page"
62 "$ref": "../parameters.json#/q_param"
65 "$ref": "../parameters.json#/q_body"
68 "$ref": "../parameters.json#/q_header"
73 "description": "A list of orders",
77 "$ref": "../definitions.json#/order"
82 "description": "Authentication required",
84 "$ref": "../definitions.json#/error"
88 "description": "Access forbidden",
90 "$ref": "../definitions.json#/error"
94 "description": "Order not found",
96 "$ref": "../definitions.json#/error"
100 "description": "Internal server error",
102 "$ref": "../definitions.json#/error"
106 "description": "Under maintenance",
108 "$ref": "../definitions.json#/error"
112 "x-koha-authorization": {
114 "acquisition": [ "order_manage", "order_manage_all" ]
119 "basket.basket_group",
122 "biblio.active_orders+count",
123 "biblio.holds+count",
124 "biblio.items+count",
125 "biblio.suggestions.suggester",
127 "current_item_level_holds+count",
134 "x-mojo-to": "Acquisitions::Orders#add",
135 "operationId": "addOrder",
144 "description": "A JSON object representing an order",
147 "$ref": "../definitions.json#/order"
156 "description": "Order added",
158 "$ref": "../definitions.json#/order"
162 "description": "Bad request",
164 "$ref": "../definitions.json#/error"
168 "description": "Authentication required",
170 "$ref": "../definitions.json#/error"
174 "description": "Access forbidden",
176 "$ref": "../definitions.json#/error"
180 "description": "Conflict in creating the resource",
182 "$ref": "../definitions.json#/error"
186 "description": "Internal server error",
188 "$ref": "../definitions.json#/error"
192 "description": "Under maintenance",
194 "$ref": "../definitions.json#/error"
198 "x-koha-authorization": {
200 "acquisition": "order_manage"
205 "/acquisitions/orders/{order_id}": {
207 "x-mojo-to": "Acquisitions::Orders#get",
208 "operationId": "getOrder",
215 "$ref": "../parameters.json#/order_id_pp"
223 "description": "An order",
225 "$ref": "../definitions.json#/order"
229 "description": "Authentication required",
231 "$ref": "../definitions.json#/error"
235 "description": "Access forbidden",
237 "$ref": "../definitions.json#/error"
241 "description": "Order not found",
243 "$ref": "../definitions.json#/error"
247 "description": "Internal server error",
249 "$ref": "../definitions.json#/error"
253 "description": "Under maintenance",
255 "$ref": "../definitions.json#/error"
259 "x-koha-authorization": {
261 "acquisition": "order_manage"
266 "basket.basket_group",
269 "biblio.active_orders+count",
270 "biblio.holds+count",
271 "biblio.items+count",
272 "biblio.suggestions.suggester",
274 "current_item_level_holds+count",
281 "x-mojo-to": "Acquisitions::Orders#update",
282 "operationId": "updateOrder",
289 "$ref": "../parameters.json#/order_id_pp"
294 "description": "A JSON object representing an order",
297 "$ref": "../definitions.json#/order"
306 "description": "An order",
308 "$ref": "../definitions.json#/order"
312 "description": "Authentication required",
314 "$ref": "../definitions.json#/error"
318 "description": "Access forbidden",
320 "$ref": "../definitions.json#/error"
324 "description": "Order not found",
326 "$ref": "../definitions.json#/error"
330 "description": "Internal server error",
332 "$ref": "../definitions.json#/error"
336 "description": "Under maintenance",
338 "$ref": "../definitions.json#/error"
342 "x-koha-authorization": {
344 "acquisition": "order_manage"
349 "x-mojo-to": "Acquisitions::Orders#delete",
350 "operationId": "deleteOrder",
357 "$ref": "../parameters.json#/order_id_pp"
365 "description": "Order deleted"
368 "description": "Authentication required",
370 "$ref": "../definitions.json#/error"
374 "description": "Access forbidden",
376 "$ref": "../definitions.json#/error"
380 "description": "Order not found",
382 "$ref": "../definitions.json#/error"
386 "description": "Internal server error",
388 "$ref": "../definitions.json#/error"
392 "description": "Under maintenance",
394 "$ref": "../definitions.json#/error"
398 "x-koha-authorization": {
400 "acquisition": "order_manage"