© 2024 Clarivate
POST /api/.../patrons/{id}/accounttransactions/credit?action=add
Add's patron credit.
CR_AccessPatronServices_Allow CR_PatronStatus_Access CR_PatronStatus_ModifyPatronAccount CR_CreatePatronAccountCredit_Allow
Name | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | The unique id assigned to the patron code. Used to return a single object. |
action | String | Yes (possible values {add, refund}) | action identifier |
Property | Type | Nullable | Description |
---|---|---|---|
TxnAmount | Decimal | No | Required. (Has to be greater than 0) |
PatronPaymentMethod | Int | No | Yes. (11 for cash, only supported) |
FreeTextNote | String | Yes | Notes |
{
TxnAmount :8.50,
FreeTextNote : "Fiddler add credit",
PatronPaymentMethod: 11,
}
{
"PatronID":85616,
"TxnAmount":8.50,
"FreeTextNote":"Fiddler add credit",
"PatronPaymentMethod":11,
"MainTxnIDs":[3666715]
}
MainTxnIds is an array on integer, in this call it returns the Main Txn Ids of successfully added credit.
Code | Description |
---|---|
200 | OK. Success |
403 | Forbidden (privileges). |
404 | Not Found. Patron not found |
409 | CONFLICT. Patron record is secured. |