http://localhost:9130
Overdue Fine Policies
Collection of overdue-fines-policy items.
Get Overdue Fine Policy list
GET /overdue-fines-policies
A query expressed as a CQL string (see dev.folio.org/reference/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
searchable using CQL
Example:
(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode
name="undergrad*"
Order by field: field A, field B
Order
How to calculate the totalRecords property. "exact" for the correct number, "estimated" for an estimation, "auto" to automatically select "exact" or "estimated", "none" for suppressing the totalRecords property. For details see https://github.com/folio-org/raml-module-builder#estimated-totalrecords
Example:
none
Skip over a number of elements by specifying an offset value for the query
Example:
0
Limit the number of elements returned in the response. Using limit=0 will return totalRecords with the exact value. For details about totalRecords see https://github.com/folio-org/raml-module-builder#estimated-totalrecords
Example:
10
Return Overdue Fine Policy list
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Collection of overdue fine policies",
"type": "object",
"properties": {
"overdueFinePolicies": {
"description": "List of overdue fine policies",
"id": "overdueFinePolicies",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Overdue fine policies schema",
"description": "Overdue fine policy to be associated with a loan policy by the Circulation Rules Editor",
"properties": {
"name": {
"description": "Overdue fine policy name",
"type": "string"
},
"description": {
"description": "Overdue fine policy description",
"type": "string"
},
"overdueFine": {
"description": "Fine for overdue",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"quantity": {
"description": "Fine amount per interval",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"intervalId": {
"description": "Interval for the period, e.g. hour, day, week, month or year",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"year"
]
}
},
"additionalProperties": false
},
"countClosed": {
"description": "A flag to determine if a fine is count closed",
"type": "boolean"
},
"maxOverdueFine": {
"description": "Maximum overdue fine",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"forgiveOverdueFine": {
"description": "A flag to determine forgive overdue fine if item renewed",
"type": "boolean"
},
"overdueRecallFine": {
"description": "Fine overdue recall fine",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"quantity": {
"description": "Fine amount per interval",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"intervalId": {
"description": "Interval for the period, e.g. hour, day, week, month or year",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"year"
]
}
},
"additionalProperties": false
},
"gracePeriodRecall": {
"description": "Grace period for recall",
"type": "boolean"
},
"maxOverdueRecallFine": {
"description": "Maximum overdue recall fine",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"reminderFeesPolicy": {
"description": "Rules and schedule for reminders with associated fees",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Reminder fees policy schema",
"properties": {
"countClosed": {
"description": "A flag to determine if a reminder fee should take closed days into account",
"type": "boolean"
},
"ignoreGracePeriodRecall": {
"description": "Ignore grace period for recall",
"type": "boolean"
},
"ignoreGracePeriodHolds": {
"description": "Ignore grace period for holds",
"type": "boolean"
},
"allowRenewalOfItemsWithReminderFees": {
"description": "Allow renewal of items with reminder fee(s)",
"type": "boolean"
},
"clearPatronBlockWhenPaid": {
"description": "Clear patron block when paid",
"type": "boolean"
},
"reminderSchedule": {
"description": "Ordered list of reminder notices",
"type": "array",
"items": {
"description": "Scheduled reminder notice with associated fee",
"type": "object",
"properties": {
"interval": {
"description": "Number of units of time before notice should be sent",
"type": "integer"
},
"timeUnitId": {
"description": "Time unit of interval",
"type": "string",
"enum": [
"day",
"week",
"minute"
]
},
"reminderFee": {
"description": "Fee amount accrued by reminder notice",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"noticeFormat": {
"description": "Method of sending notice",
"type": "string",
"enum": [
"Email",
"Print",
"None"
]
},
"noticeTemplateId": {
"description": "Id of reminder notice template",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"blockTemplateId": {
"description": "Id of block reminder template",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
}
},
"additionalProperties": false,
"required": [
"interval",
"timeUnitId",
"reminderFee",
"noticeMethodId",
"noticeTemplateId"
]
}
}
},
"additionalProperties": false
},
"metadata": {
"description": "Metadata about creation to overdue fine policy, provided by the server",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
},
"id": {
"description": "Overdue fine policy id, UUID",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
},
"totalRecords": {
"type": "integer"
}
},
"required": [
"overdueFinePolicies",
"totalRecords"
]
}
Example:
{
"overdueFinePolicies":[
{
"name": "Faculty standard",
"description": "This is description for Faculty standard",
"overdueFine": {
"quantity": 5.0,
"intervalId": "day"
},
"countClosed": true,
"maxOverdueFine": 50.00,
"forgiveOverdueFine": true,
"overdueRecallFine": {
"quantity": 1.0,
"intervalId": "hour"
},
"gracePeriodRecall": false,
"maxOverdueRecallFine": 50.00,
"id": "b712dffc-c107-4e88-b3d5-fba2fb35755e"
}
],
"totalRecords":1
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
unable to list overdue-fines-policies -- malformed parameter 'query', syntax error at column 6
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
unable to list overdue-fines-policies -- unauthorized
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error
Create new Overdue Fine Policy
POST /overdue-fines-policies
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Overdue fine policies schema",
"description": "Overdue fine policy to be associated with a loan policy by the Circulation Rules Editor",
"type": "object",
"properties": {
"name": {
"description": "Overdue fine policy name",
"type": "string"
},
"description": {
"description": "Overdue fine policy description",
"type": "string"
},
"overdueFine": {
"description": "Fine for overdue",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"quantity": {
"description": "Fine amount per interval",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"intervalId": {
"description": "Interval for the period, e.g. hour, day, week, month or year",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"year"
]
}
},
"additionalProperties": false
},
"countClosed": {
"description": "A flag to determine if a fine is count closed",
"type": "boolean"
},
"maxOverdueFine": {
"description": "Maximum overdue fine",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"forgiveOverdueFine": {
"description": "A flag to determine forgive overdue fine if item renewed",
"type": "boolean"
},
"overdueRecallFine": {
"description": "Fine overdue recall fine",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"quantity": {
"description": "Fine amount per interval",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"intervalId": {
"description": "Interval for the period, e.g. hour, day, week, month or year",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"year"
]
}
},
"additionalProperties": false
},
"gracePeriodRecall": {
"description": "Grace period for recall",
"type": "boolean"
},
"maxOverdueRecallFine": {
"description": "Maximum overdue recall fine",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"reminderFeesPolicy": {
"description": "Rules and schedule for reminders with associated fees",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Reminder fees policy schema",
"properties": {
"countClosed": {
"description": "A flag to determine if a reminder fee should take closed days into account",
"type": "boolean"
},
"ignoreGracePeriodRecall": {
"description": "Ignore grace period for recall",
"type": "boolean"
},
"ignoreGracePeriodHolds": {
"description": "Ignore grace period for holds",
"type": "boolean"
},
"allowRenewalOfItemsWithReminderFees": {
"description": "Allow renewal of items with reminder fee(s)",
"type": "boolean"
},
"clearPatronBlockWhenPaid": {
"description": "Clear patron block when paid",
"type": "boolean"
},
"reminderSchedule": {
"description": "Ordered list of reminder notices",
"type": "array",
"items": {
"description": "Scheduled reminder notice with associated fee",
"type": "object",
"properties": {
"interval": {
"description": "Number of units of time before notice should be sent",
"type": "integer"
},
"timeUnitId": {
"description": "Time unit of interval",
"type": "string",
"enum": [
"day",
"week",
"minute"
]
},
"reminderFee": {
"description": "Fee amount accrued by reminder notice",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"noticeFormat": {
"description": "Method of sending notice",
"type": "string",
"enum": [
"Email",
"Print",
"None"
]
},
"noticeTemplateId": {
"description": "Id of reminder notice template",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"blockTemplateId": {
"description": "Id of block reminder template",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
}
},
"additionalProperties": false,
"required": [
"interval",
"timeUnitId",
"reminderFee",
"noticeMethodId",
"noticeTemplateId"
]
}
}
},
"additionalProperties": false
},
"metadata": {
"description": "Metadata about creation to overdue fine policy, provided by the server",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
},
"id": {
"description": "Overdue fine policy id, UUID",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Example:
{
"name": "Faculty standard",
"description": "This is description for Faculty standard",
"overdueFine": {
"quantity": 5.0,
"intervalId": "day"
},
"countClosed": true,
"maxOverdueFine": 50.00,
"forgiveOverdueFine": true,
"overdueRecallFine": {
"quantity": 1.0,
"intervalId": "hour"
},
"gracePeriodRecall": false,
"maxOverdueRecallFine": 50.00,
"id": "b712dffc-c107-4e88-b3d5-fba2fb35755e"
}
Overdue fine policy created
URI to the created overdue-fines-policy item
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Overdue fine policies schema",
"description": "Overdue fine policy to be associated with a loan policy by the Circulation Rules Editor",
"type": "object",
"properties": {
"name": {
"description": "Overdue fine policy name",
"type": "string"
},
"description": {
"description": "Overdue fine policy description",
"type": "string"
},
"overdueFine": {
"description": "Fine for overdue",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"quantity": {
"description": "Fine amount per interval",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"intervalId": {
"description": "Interval for the period, e.g. hour, day, week, month or year",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"year"
]
}
},
"additionalProperties": false
},
"countClosed": {
"description": "A flag to determine if a fine is count closed",
"type": "boolean"
},
"maxOverdueFine": {
"description": "Maximum overdue fine",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"forgiveOverdueFine": {
"description": "A flag to determine forgive overdue fine if item renewed",
"type": "boolean"
},
"overdueRecallFine": {
"description": "Fine overdue recall fine",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"quantity": {
"description": "Fine amount per interval",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"intervalId": {
"description": "Interval for the period, e.g. hour, day, week, month or year",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"year"
]
}
},
"additionalProperties": false
},
"gracePeriodRecall": {
"description": "Grace period for recall",
"type": "boolean"
},
"maxOverdueRecallFine": {
"description": "Maximum overdue recall fine",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"reminderFeesPolicy": {
"description": "Rules and schedule for reminders with associated fees",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Reminder fees policy schema",
"properties": {
"countClosed": {
"description": "A flag to determine if a reminder fee should take closed days into account",
"type": "boolean"
},
"ignoreGracePeriodRecall": {
"description": "Ignore grace period for recall",
"type": "boolean"
},
"ignoreGracePeriodHolds": {
"description": "Ignore grace period for holds",
"type": "boolean"
},
"allowRenewalOfItemsWithReminderFees": {
"description": "Allow renewal of items with reminder fee(s)",
"type": "boolean"
},
"clearPatronBlockWhenPaid": {
"description": "Clear patron block when paid",
"type": "boolean"
},
"reminderSchedule": {
"description": "Ordered list of reminder notices",
"type": "array",
"items": {
"description": "Scheduled reminder notice with associated fee",
"type": "object",
"properties": {
"interval": {
"description": "Number of units of time before notice should be sent",
"type": "integer"
},
"timeUnitId": {
"description": "Time unit of interval",
"type": "string",
"enum": [
"day",
"week",
"minute"
]
},
"reminderFee": {
"description": "Fee amount accrued by reminder notice",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"noticeFormat": {
"description": "Method of sending notice",
"type": "string",
"enum": [
"Email",
"Print",
"None"
]
},
"noticeTemplateId": {
"description": "Id of reminder notice template",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"blockTemplateId": {
"description": "Id of block reminder template",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
}
},
"additionalProperties": false,
"required": [
"interval",
"timeUnitId",
"reminderFee",
"noticeMethodId",
"noticeTemplateId"
]
}
}
},
"additionalProperties": false
},
"metadata": {
"description": "Metadata about creation to overdue fine policy, provided by the server",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
},
"id": {
"description": "Overdue fine policy id, UUID",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Example:
{
"name": "Faculty standard",
"description": "This is description for Faculty standard",
"overdueFine": {
"quantity": 5.0,
"intervalId": "day"
},
"countClosed": true,
"maxOverdueFine": 50.00,
"forgiveOverdueFine": true,
"overdueRecallFine": {
"quantity": 1.0,
"intervalId": "hour"
},
"gracePeriodRecall": false,
"maxOverdueRecallFine": 50.00,
"id": "b712dffc-c107-4e88-b3d5-fba2fb35755e"
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to add overdue-fines-policy -- malformed JSON at 13:3"
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
unable to create overdue-fines-policies -- unauthorized
Unprocessable entity
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "errors.schema",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "error.schema",
"description": "An error",
"properties": {
"message": {
"type": "string",
"description": "Error message text"
},
"type": {
"type": "string",
"description": "Error message type"
},
"code": {
"type": "string",
"description": "Error message code"
},
"parameters": {
"description": "Error message parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "parameters.schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"message"
]
}
},
"total_records": {
"description": "Total number of errors",
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error
Get Overdue Fine Policy by id
GET /overdue-fines-policies/{overdueFinePolicyId}
Return Overdue Fine Policy
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Overdue fine policies schema",
"description": "Overdue fine policy to be associated with a loan policy by the Circulation Rules Editor",
"type": "object",
"properties": {
"name": {
"description": "Overdue fine policy name",
"type": "string"
},
"description": {
"description": "Overdue fine policy description",
"type": "string"
},
"overdueFine": {
"description": "Fine for overdue",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"quantity": {
"description": "Fine amount per interval",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"intervalId": {
"description": "Interval for the period, e.g. hour, day, week, month or year",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"year"
]
}
},
"additionalProperties": false
},
"countClosed": {
"description": "A flag to determine if a fine is count closed",
"type": "boolean"
},
"maxOverdueFine": {
"description": "Maximum overdue fine",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"forgiveOverdueFine": {
"description": "A flag to determine forgive overdue fine if item renewed",
"type": "boolean"
},
"overdueRecallFine": {
"description": "Fine overdue recall fine",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"quantity": {
"description": "Fine amount per interval",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"intervalId": {
"description": "Interval for the period, e.g. hour, day, week, month or year",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"year"
]
}
},
"additionalProperties": false
},
"gracePeriodRecall": {
"description": "Grace period for recall",
"type": "boolean"
},
"maxOverdueRecallFine": {
"description": "Maximum overdue recall fine",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"reminderFeesPolicy": {
"description": "Rules and schedule for reminders with associated fees",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Reminder fees policy schema",
"properties": {
"countClosed": {
"description": "A flag to determine if a reminder fee should take closed days into account",
"type": "boolean"
},
"ignoreGracePeriodRecall": {
"description": "Ignore grace period for recall",
"type": "boolean"
},
"ignoreGracePeriodHolds": {
"description": "Ignore grace period for holds",
"type": "boolean"
},
"allowRenewalOfItemsWithReminderFees": {
"description": "Allow renewal of items with reminder fee(s)",
"type": "boolean"
},
"clearPatronBlockWhenPaid": {
"description": "Clear patron block when paid",
"type": "boolean"
},
"reminderSchedule": {
"description": "Ordered list of reminder notices",
"type": "array",
"items": {
"description": "Scheduled reminder notice with associated fee",
"type": "object",
"properties": {
"interval": {
"description": "Number of units of time before notice should be sent",
"type": "integer"
},
"timeUnitId": {
"description": "Time unit of interval",
"type": "string",
"enum": [
"day",
"week",
"minute"
]
},
"reminderFee": {
"description": "Fee amount accrued by reminder notice",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"noticeFormat": {
"description": "Method of sending notice",
"type": "string",
"enum": [
"Email",
"Print",
"None"
]
},
"noticeTemplateId": {
"description": "Id of reminder notice template",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"blockTemplateId": {
"description": "Id of block reminder template",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
}
},
"additionalProperties": false,
"required": [
"interval",
"timeUnitId",
"reminderFee",
"noticeMethodId",
"noticeTemplateId"
]
}
}
},
"additionalProperties": false
},
"metadata": {
"description": "Metadata about creation to overdue fine policy, provided by the server",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
},
"id": {
"description": "Overdue fine policy id, UUID",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Example:
{
"name": "Faculty standard",
"description": "This is description for Faculty standard",
"overdueFine": {
"quantity": 5.0,
"intervalId": "day"
},
"countClosed": true,
"maxOverdueFine": 50.00,
"forgiveOverdueFine": true,
"overdueRecallFine": {
"quantity": 1.0,
"intervalId": "hour"
},
"gracePeriodRecall": false,
"maxOverdueRecallFine": 50.00,
"id": "b712dffc-c107-4e88-b3d5-fba2fb35755e"
}
Not found
Media type: text/plain
Type: any
Example:
Not found
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error
Delete Overdue Fine Policy by id
DELETE /overdue-fines-policies/{overdueFinePolicyId}
Source record deleted
Bad request, e.g. malformed request body, query parameter or constraint violation.
Media type: text/plain
Type: any
Example:
Cannot delete in use fine policy
There is no source record for that overdueFinePolicyId
Media type: text/plain
Type: any
Example:
Not found
Internal server error
Media type: text/plain
Type: any
Example:
Internal server error
Update overdue-fines-policy item with given {overdue-fines-policyId}
PUT /overdue-fines-policies/{overdueFinePolicyId}
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Overdue fine policies schema",
"description": "Overdue fine policy to be associated with a loan policy by the Circulation Rules Editor",
"type": "object",
"properties": {
"name": {
"description": "Overdue fine policy name",
"type": "string"
},
"description": {
"description": "Overdue fine policy description",
"type": "string"
},
"overdueFine": {
"description": "Fine for overdue",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"quantity": {
"description": "Fine amount per interval",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"intervalId": {
"description": "Interval for the period, e.g. hour, day, week, month or year",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"year"
]
}
},
"additionalProperties": false
},
"countClosed": {
"description": "A flag to determine if a fine is count closed",
"type": "boolean"
},
"maxOverdueFine": {
"description": "Maximum overdue fine",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"forgiveOverdueFine": {
"description": "A flag to determine forgive overdue fine if item renewed",
"type": "boolean"
},
"overdueRecallFine": {
"description": "Fine overdue recall fine",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"quantity": {
"description": "Fine amount per interval",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"intervalId": {
"description": "Interval for the period, e.g. hour, day, week, month or year",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"year"
]
}
},
"additionalProperties": false
},
"gracePeriodRecall": {
"description": "Grace period for recall",
"type": "boolean"
},
"maxOverdueRecallFine": {
"description": "Maximum overdue recall fine",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"reminderFeesPolicy": {
"description": "Rules and schedule for reminders with associated fees",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Reminder fees policy schema",
"properties": {
"countClosed": {
"description": "A flag to determine if a reminder fee should take closed days into account",
"type": "boolean"
},
"ignoreGracePeriodRecall": {
"description": "Ignore grace period for recall",
"type": "boolean"
},
"ignoreGracePeriodHolds": {
"description": "Ignore grace period for holds",
"type": "boolean"
},
"allowRenewalOfItemsWithReminderFees": {
"description": "Allow renewal of items with reminder fee(s)",
"type": "boolean"
},
"clearPatronBlockWhenPaid": {
"description": "Clear patron block when paid",
"type": "boolean"
},
"reminderSchedule": {
"description": "Ordered list of reminder notices",
"type": "array",
"items": {
"description": "Scheduled reminder notice with associated fee",
"type": "object",
"properties": {
"interval": {
"description": "Number of units of time before notice should be sent",
"type": "integer"
},
"timeUnitId": {
"description": "Time unit of interval",
"type": "string",
"enum": [
"day",
"week",
"minute"
]
},
"reminderFee": {
"description": "Fee amount accrued by reminder notice",
"javaType": "org.folio.rest.domain.MonetaryValue",
"type": "number"
},
"noticeFormat": {
"description": "Method of sending notice",
"type": "string",
"enum": [
"Email",
"Print",
"None"
]
},
"noticeTemplateId": {
"description": "Id of reminder notice template",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
},
"blockTemplateId": {
"description": "Id of block reminder template",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
}
},
"additionalProperties": false,
"required": [
"interval",
"timeUnitId",
"reminderFee",
"noticeMethodId",
"noticeTemplateId"
]
}
}
},
"additionalProperties": false
},
"metadata": {
"description": "Metadata about creation to overdue fine policy, provided by the server",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "metadata.schema",
"title": "Metadata Schema",
"properties": {
"createdDate": {
"description": "Date and time when the record was created",
"type": "string",
"format": "date-time"
},
"createdByUserId": {
"description": "ID of the user who created the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"createdByUsername": {
"description": "Username of the user who created the record (when available)",
"type": "string"
},
"updatedDate": {
"description": "Date and time when the record was last updated",
"type": "string",
"format": "date-time"
},
"updatedByUserId": {
"description": "ID of the user who last updated the record (when available)",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"updatedByUsername": {
"description": "Username of the user who last updated the record (when available)",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"createdDate"
]
},
"id": {
"description": "Overdue fine policy id, UUID",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "uuid.schema",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Example:
{
"name": "Faculty standard",
"description": "This is description for Faculty standard",
"overdueFine": {
"quantity": 5.0,
"intervalId": "day"
},
"countClosed": true,
"maxOverdueFine": 50.00,
"forgiveOverdueFine": true,
"overdueRecallFine": {
"quantity": 1.0,
"intervalId": "hour"
},
"gracePeriodRecall": false,
"maxOverdueRecallFine": 50.00,
"id": "b712dffc-c107-4e88-b3d5-fba2fb35755e"
}
Item successfully updated
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to update overdue-fines-policy -- malformed JSON at 13:4"
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"overdue-fines-policy not found"
Optimistic locking version conflict
Media type: text/plain
Type: any
Example:
version conflict
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator