2 "/patrons/{patron_id}/account":
4 x-mojo-to: Patrons::Account#get
5 operationId: getPatronAccount
8 summary: Get account information for a patron
10 - $ref: ../parameters.yaml#/patron_id_pp
15 description: Patron's account balance
17 $ref: ../definitions.yaml#/patron_balance
19 description: Authentication required
21 $ref: ../definitions.yaml#/error
23 description: Access forbidden
25 $ref: ../definitions.yaml#/error
27 description: Patron not found
29 $ref: ../definitions.yaml#/error
32 Internal server error. Possible `error_code` attribute values:
34 * `internal_server_error`
36 $ref: ../definitions.yaml#/error
38 description: Under maintenance
40 $ref: ../definitions.yaml#/error
43 borrowers: edit_borrowers
44 updatecharges: remaining_permissions
45 "/patrons/{patron_id}/account/credits":
47 x-mojo-to: Patrons::Account#add_credit
48 operationId: addPatronCredit
51 summary: Add credit to a patron's account
53 - $ref: ../parameters.yaml#/patron_id_pp
56 description: A JSON object containing credit information
59 $ref: ../definitions.yaml#/patron_account_credit
64 description: Credit added
66 $ref: ../definitions.yaml#/account_line
68 description: Authentication required
70 $ref: ../definitions.yaml#/error
72 description: Access forbidden
74 $ref: ../definitions.yaml#/error
76 description: Patron not found
78 $ref: ../definitions.yaml#/error
81 Internal server error. Possible `error_code` attribute values:
83 * `internal_server_error`
85 $ref: ../definitions.yaml#/error
87 description: Under maintenance
89 $ref: ../definitions.yaml#/error
92 updatecharges: remaining_permissions