|
Lines 177-179
Link Here
|
| 177 |
permissions: |
177 |
permissions: |
| 178 |
borrowers: edit_borrowers |
178 |
borrowers: edit_borrowers |
| 179 |
updatecharges: remaining_permissions |
179 |
updatecharges: remaining_permissions |
| 180 |
- |
180 |
post: |
|
|
181 |
x-mojo-to: Patrons::Account#add_debit |
| 182 |
operationId: addPatronDebit |
| 183 |
tags: |
| 184 |
- patrons |
| 185 |
summary: Add debit to a patron's account |
| 186 |
parameters: |
| 187 |
- $ref: "../swagger.yaml#/parameters/patron_id_pp" |
| 188 |
- name: body |
| 189 |
in: body |
| 190 |
description: A JSON object containing debit information |
| 191 |
required: true |
| 192 |
schema: |
| 193 |
$ref: "../swagger.yaml#/definitions/patron_account_debit" |
| 194 |
produces: |
| 195 |
- application/json |
| 196 |
responses: |
| 197 |
"201": |
| 198 |
description: Debit added |
| 199 |
schema: |
| 200 |
$ref: "../swagger.yaml#/definitions/account_line" |
| 201 |
"401": |
| 202 |
description: Authentication required |
| 203 |
schema: |
| 204 |
$ref: "../swagger.yaml#/definitions/error" |
| 205 |
"403": |
| 206 |
description: Access forbidden |
| 207 |
schema: |
| 208 |
$ref: "../swagger.yaml#/definitions/error" |
| 209 |
"404": |
| 210 |
description: Patron not found |
| 211 |
schema: |
| 212 |
$ref: "../swagger.yaml#/definitions/error" |
| 213 |
"500": |
| 214 |
description: | |
| 215 |
Internal server error. Possible `error_code` attribute values: |
| 216 |
|
| 217 |
* `internal_server_error` |
| 218 |
schema: |
| 219 |
$ref: "../swagger.yaml#/definitions/error" |
| 220 |
"503": |
| 221 |
description: Under maintenance |
| 222 |
schema: |
| 223 |
$ref: "../swagger.yaml#/definitions/error" |
| 224 |
x-koha-authorization: |
| 225 |
permissions: |
| 226 |
updatecharges: remaining_permissions |