2 "/patrons/{patron_id}/account": {
4 "x-mojo-to": "Patrons::Account#get",
5 "operationId": "getPatronAccount",
11 "$ref": "../parameters.json#/patron_id_pp"
19 "description": "Patron's account balance",
21 "$ref": "../definitions.json#/patron_balance"
25 "description": "Authentication required",
27 "$ref": "../definitions.json#/error"
31 "description": "Access forbidden",
33 "$ref": "../definitions.json#/error"
37 "description": "Patron not found",
39 "$ref": "../definitions.json#/error"
43 "description": "Internal server error",
45 "$ref": "../definitions.json#/error"
49 "description": "Under maintenance",
51 "$ref": "../definitions.json#/error"
55 "x-koha-authorization": {
57 "borrowers": "edit_borrowers",
58 "updatecharges": "remaining_permissions"
63 "/patrons/{patron_id}/account/credits": {
65 "x-mojo-to": "Patrons::Account#add_credit",
66 "operationId": "addPatronCredit",
72 "$ref": "../parameters.json#/patron_id_pp"
77 "description": "A JSON object containing credit information",
80 "$ref": "../definitions.json#/patron_account_credit"
89 "description": "Credit added",
95 "description": "Authentication required",
97 "$ref": "../definitions.json#/error"
101 "description": "Access forbidden",
103 "$ref": "../definitions.json#/error"
107 "description": "Patron not found",
109 "$ref": "../definitions.json#/error"
113 "description": "Internal server error",
115 "$ref": "../definitions.json#/error"
119 "description": "Under maintenance",
121 "$ref": "../definitions.json#/error"
125 "x-koha-authorization": {
127 "updatecharges": "remaining_permissions"