http://github.com/folio-org/mod-invoice-storage
API used to manage voucher number.
Get generated voucher number
GET /voucher-storage/voucher-number
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Sequence number object",
"type": "object",
"properties": {
"sequenceNumber": {
"description": "Sequence number",
"type": "string"
}
},
"required": [
"sequenceNumber"
],
"additionalProperties": false
}
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Get voucher number start
GET /voucher-storage/voucher-number/start
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Sequence number object",
"type": "object",
"properties": {
"sequenceNumber": {
"description": "Sequence number",
"type": "string"
}
},
"required": [
"sequenceNumber"
],
"additionalProperties": false
}
Internal server error, e.g. due to misconfiguration
Media type: application/json
Type: any
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Media type: text/plain
Type: any
Example:
Bad request
(Re)set the start value of the voucher number sequence
POST /voucher-storage/voucher-number/start/{value}
Start value successfully updated
Bad request
Media type: application/json
Type: any
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Media type: text/plain
Type: any
Example:
Bad request
Internal server error, e.g. due to misconfiguration
Media type: application/json
Type: any
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Media type: text/plain
Type: any
Example:
Internal server error