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 "allow-guarantor": true,
59 "borrowers": "edit_borrowers",
60 "updatecharges": "remaining_permissions"
65 "/patrons/{patron_id}/account/credits": {
67 "x-mojo-to": "Patrons::Account#add_credit",
68 "operationId": "addPatronCredit",
74 "$ref": "../parameters.json#/patron_id_pp"
79 "description": "A JSON object containing credit information",
82 "$ref": "../definitions.json#/patron_account_credit"
91 "description": "Credit added",
97 "description": "Authentication required",
99 "$ref": "../definitions.json#/error"
103 "description": "Access forbidden",
105 "$ref": "../definitions.json#/error"
109 "description": "Patron not found",
111 "$ref": "../definitions.json#/error"
115 "description": "Internal server error",
117 "$ref": "../definitions.json#/error"
121 "description": "Under maintenance",
123 "$ref": "../definitions.json#/error"
127 "x-koha-authorization": {
129 "updatecharges": "remaining_permissions"