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 "$ref": "../parameters.json#/match"
46 "$ref": "../parameters.json#/order_by"
49 "$ref": "../parameters.json#/page"
52 "$ref": "../parameters.json#/per_page"
57 "description": "A list of orders",
61 "$ref": "../definitions.json#/order"
66 "description": "Authentication required",
68 "$ref": "../definitions.json#/error"
72 "description": "Access forbidden",
74 "$ref": "../definitions.json#/error"
78 "description": "Order not found",
80 "$ref": "../definitions.json#/error"
84 "description": "Internal server error",
86 "$ref": "../definitions.json#/error"
90 "description": "Under maintenance",
92 "$ref": "../definitions.json#/error"
96 "x-koha-authorization": {
98 "acquisition": [ "order_manage", "order_manage_all" ]
111 "x-mojo-to": "Acquisitions::Orders#add",
112 "operationId": "addOrder",
121 "description": "A JSON object representing an order",
124 "$ref": "../definitions.json#/order"
133 "description": "Order added",
135 "$ref": "../definitions.json#/order"
139 "description": "Bad request",
141 "$ref": "../definitions.json#/error"
145 "description": "Authentication required",
147 "$ref": "../definitions.json#/error"
151 "description": "Access forbidden",
153 "$ref": "../definitions.json#/error"
157 "description": "Conflict in creating the resource",
159 "$ref": "../definitions.json#/error"
163 "description": "Internal server error",
165 "$ref": "../definitions.json#/error"
169 "description": "Under maintenance",
171 "$ref": "../definitions.json#/error"
175 "x-koha-authorization": {
177 "acquisition": "order_manage"
182 "/acquisitions/orders/{order_id}": {
184 "x-mojo-to": "Acquisitions::Orders#get",
185 "operationId": "getOrder",
192 "$ref": "../parameters.json#/order_id_pp"
200 "description": "An order",
202 "$ref": "../definitions.json#/order"
206 "description": "Authentication required",
208 "$ref": "../definitions.json#/error"
212 "description": "Access forbidden",
214 "$ref": "../definitions.json#/error"
218 "description": "Order not found",
220 "$ref": "../definitions.json#/error"
224 "description": "Internal server error",
226 "$ref": "../definitions.json#/error"
230 "description": "Under maintenance",
232 "$ref": "../definitions.json#/error"
236 "x-koha-authorization": {
238 "acquisition": "order_manage"
251 "x-mojo-to": "Acquisitions::Orders#update",
252 "operationId": "updateOrder",
259 "$ref": "../parameters.json#/order_id_pp"
264 "description": "A JSON object representing an order",
267 "$ref": "../definitions.json#/order"
276 "description": "An order",
278 "$ref": "../definitions.json#/order"
282 "description": "Authentication required",
284 "$ref": "../definitions.json#/error"
288 "description": "Access forbidden",
290 "$ref": "../definitions.json#/error"
294 "description": "Order not found",
296 "$ref": "../definitions.json#/error"
300 "description": "Internal server error",
302 "$ref": "../definitions.json#/error"
306 "description": "Under maintenance",
308 "$ref": "../definitions.json#/error"
312 "x-koha-authorization": {
314 "acquisition": "order_manage"
319 "x-mojo-to": "Acquisitions::Orders#delete",
320 "operationId": "deleteOrder",
327 "$ref": "../parameters.json#/order_id_pp"
335 "description": "Order deleted"
338 "description": "Authentication required",
340 "$ref": "../definitions.json#/error"
344 "description": "Access forbidden",
346 "$ref": "../definitions.json#/error"
350 "description": "Order not found",
352 "$ref": "../definitions.json#/error"
356 "description": "Internal server error",
358 "$ref": "../definitions.json#/error"
362 "description": "Under maintenance",
364 "$ref": "../definitions.json#/error"
368 "x-koha-authorization": {
370 "acquisition": "order_manage"