PATCH /api/.../patrons/{id}?type=flags
Request content Type:
Patch for 'flags' : Patches Patron flag
Name | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | The unique id assigned to the patron. |
type | string | One of the following: 'flags' | Discriminator for request content type. |
DtoPatronFlag | Patron Flag | Yes | Define in the request body when type=flags |
{
"Code": "ExtendedLoanPeriods",
"Value": true
}
Code | Description |
---|---|
204 | No Content. |
404 | Patron not found |
PATCH /api/.../patrons/{id}?type=membership
Request content Type:
Patch for 'membership' : Patches Patron membership
Name | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | The unique id assigned to the patron. |
type | string | One of the following: 'membership' | Discriminator for request content type. |
DtoPatronRenewUpgradeMembership | Patron Renew Upgrade Membership | Yes | Define in the request body when type=membership |
{
"OverridePolicy": true,
"PatronCodeID": 1,
"ExpirationDate": "2023-04-30T00:00:00.000Z",
"MembershipSubscriptionYears": 1,
"StatisticalClassCode": "MOE",
"Fees": [{
"Fee": 10,
"FeeReasonCodeID": 7
}]
}
Code | Description |
---|---|
204 | No Content. |
404 | Patron not found |
PATCH /api/.../patrons/{id}?type=membershipcard
Request content Type:
Patch for 'membershipcard' : Patches Patron membership card
Name | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | The unique id assigned to the patron. |
type | string | One of the following: 'membershipcard' | Discriminator for request content type. |
DtoPatronUpdateCard | Patron Update Card | Yes | Define in the request body when type=membershipcard |
{
"Status": "lost-mid"
}
{
"Barcode":"1234556789"
}
Code | Description |
---|---|
200 | OK. Success |
404 | Patron not found |
PATCH /api/.../patrons/{id}?type=profile
Request content Type:
Patch for 'profile' : Patches Patron profile
Name | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | The unique id assigned to the patron. |
type | string | One of the following: 'profile' | Discriminator for request content type. |
DtoPatronProfile | Patron Profile | Yes | Define in the request body when type=profile |
{
"User3" : "user 3",
"OverridePolicy": true,
"PatronCodeID": 1,
"Birthdate": "1990-06-01 00:00:00",
"ExpirationDate": "2023-06-01 00:00:00",
"User1": "S",
"PatronStopID": 1,
"MembershipTypeCode": "",
"Note": "note",
"GenderID": 1,
"NameLast": "last name"
}
Code | Description |
---|---|
204 | No Content. |
404 | Patron not found |
PATCH /api/.../patrons/{id}?type=payfees
Request content Type:
Patch for 'payfees' : Patches Patron fees
Name | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | The unique id assigned to the patron. |
type | string | One of the following: 'payfees' | Discriminator for request content type. |
DtoPatronOutstandingAmounts | Patron Outstanding fee amounts to pay | Yes | Define in the request body when type=payfees |
{
"Date": "1990-06-01 00:00:00",
"Id": "111",
"PaymentModeID": 1,
"Source": "source",
"TransActionReference": "343435634343",
"TotalAmount": 16.99,
"Fees": [
{
"TxnID": 1123,
"Barcode": "787347834734",
"Amount": 12.99
},
{
"TxnID": 340,
"Barcode": "787347834734",
"Amount": 4.00
},
}
Code | Description |
---|---|
204 | No Content. |
404 | Patron not found |
PATCH /api/.../patrons/{id}?type=notification
Request content Type:
Patch for 'notification' : Patches Patron notification options
Name | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | The unique id assigned to the patron. |
type | string | Yes: 'notification' | Discriminator for request content type. |
DtoPatronUpdateSettings | Patron Update Notification options | Yes | Define in the request body when type=notification |
{
"NotificationEmail": true,
"NotificationMobileApp": true,
"User2": true,
"Username": "myusername"
}
Code | Description |
---|---|
204 | OK. Success |
404 | Patron not found Email notification not set and 'true' |
PATCH /api/.../patrons/{id}?type=barcode
Request content Type:
Patch for 'barcode' : Patches Patron barcode
Name | Type | Required | Description |
---|---|---|---|
string | Yes | The patron's current barcode. |
"P10000001B"
Code | Description |
---|---|
200 | OK. Success |
404 | Patron not found |