2 "/acquisitions/orders": {
4 "x-mojo-to": "Acquisitions::Orders#list",
5 "operationId": "listOrders",
7 "summary": "List orders",
15 "description": "Identifier for a linked bibliographic record",
22 "description": "Identifier for a linked acquisition basket",
29 "description": "Identifier for the fund the order goes against",
36 "description": "Current status for the order. Can be 'new', 'ordered', 'partial', 'complete' or 'cancelled'",
41 "name": "only_active",
43 "description": "If only active orders should be listed",
48 "$ref": "../parameters.json#/match"
51 "$ref": "../parameters.json#/order_by"
54 "$ref": "../parameters.json#/page"
57 "$ref": "../parameters.json#/per_page"
60 "$ref": "../parameters.json#/q_param"
63 "$ref": "../parameters.json#/q_body"
66 "$ref": "../parameters.json#/q_header"
71 "description": "A list of orders",
75 "$ref": "../definitions.json#/order"
80 "description": "Authentication required",
82 "$ref": "../definitions.json#/error"
86 "description": "Access forbidden",
88 "$ref": "../definitions.json#/error"
92 "description": "Order not found",
94 "$ref": "../definitions.json#/error"
98 "description": "Internal server error",
100 "$ref": "../definitions.json#/error"
104 "description": "Under maintenance",
106 "$ref": "../definitions.json#/error"
110 "x-koha-authorization": {
112 "acquisition": [ "order_manage", "order_manage_all" ]
117 "basket.basket_group",
120 "biblio.active_orders+count",
121 "biblio.holds+count",
122 "biblio.items+count",
123 "biblio.suggestions.suggester",
125 "current_item_level_holds+count",
132 "x-mojo-to": "Acquisitions::Orders#add",
133 "operationId": "addOrder",
135 "summary": "Add order",
140 "description": "A JSON object representing an order",
143 "$ref": "../definitions.json#/order"
152 "description": "Order added",
154 "$ref": "../definitions.json#/order"
158 "description": "Bad request",
160 "$ref": "../definitions.json#/error"
164 "description": "Authentication required",
166 "$ref": "../definitions.json#/error"
170 "description": "Access forbidden",
172 "$ref": "../definitions.json#/error"
176 "description": "Conflict in creating the resource",
178 "$ref": "../definitions.json#/error"
182 "description": "Internal server error",
184 "$ref": "../definitions.json#/error"
188 "description": "Under maintenance",
190 "$ref": "../definitions.json#/error"
194 "x-koha-authorization": {
196 "acquisition": "order_manage"
201 "/acquisitions/orders/{order_id}": {
203 "x-mojo-to": "Acquisitions::Orders#get",
204 "operationId": "getOrder",
206 "summary": "Get order",
209 "$ref": "../parameters.json#/order_id_pp"
217 "description": "An order",
219 "$ref": "../definitions.json#/order"
223 "description": "Authentication required",
225 "$ref": "../definitions.json#/error"
229 "description": "Access forbidden",
231 "$ref": "../definitions.json#/error"
235 "description": "Order not found",
237 "$ref": "../definitions.json#/error"
241 "description": "Internal server error",
243 "$ref": "../definitions.json#/error"
247 "description": "Under maintenance",
249 "$ref": "../definitions.json#/error"
253 "x-koha-authorization": {
255 "acquisition": "order_manage"
260 "basket.basket_group",
263 "biblio.active_orders+count",
264 "biblio.holds+count",
265 "biblio.items+count",
266 "biblio.suggestions.suggester",
268 "current_item_level_holds+count",
275 "x-mojo-to": "Acquisitions::Orders#update",
276 "operationId": "updateOrder",
278 "summary": "Update order",
281 "$ref": "../parameters.json#/order_id_pp"
286 "description": "A JSON object representing an order",
289 "$ref": "../definitions.json#/order"
298 "description": "An order",
300 "$ref": "../definitions.json#/order"
304 "description": "Authentication required",
306 "$ref": "../definitions.json#/error"
310 "description": "Access forbidden",
312 "$ref": "../definitions.json#/error"
316 "description": "Order not found",
318 "$ref": "../definitions.json#/error"
322 "description": "Internal server error",
324 "$ref": "../definitions.json#/error"
328 "description": "Under maintenance",
330 "$ref": "../definitions.json#/error"
334 "x-koha-authorization": {
336 "acquisition": "order_manage"
341 "x-mojo-to": "Acquisitions::Orders#delete",
342 "operationId": "deleteOrder",
344 "summary": "Delete order",
347 "$ref": "../parameters.json#/order_id_pp"
355 "description": "Order deleted"
358 "description": "Authentication required",
360 "$ref": "../definitions.json#/error"
364 "description": "Access forbidden",
366 "$ref": "../definitions.json#/error"
370 "description": "Order not found",
372 "$ref": "../definitions.json#/error"
376 "description": "Internal server error",
378 "$ref": "../definitions.json#/error"
382 "description": "Under maintenance",
384 "$ref": "../definitions.json#/error"
388 "x-koha-authorization": {
390 "acquisition": "order_manage"