105 lines
2.5 KiB
JSON
105 lines
2.5 KiB
JSON
{
|
|
"get": {
|
|
"tags": ["RepaymentData"],
|
|
"summary": "Get all repayment data with optional filtering",
|
|
"description": "Retrieve repayment data records with optional filtering by transaction ID, customer ID, account ID, FBN transaction ID, and added date. Supports pagination.",
|
|
"operationId": "getRepaymentData",
|
|
"parameters": [
|
|
{
|
|
"name": "transaction_id",
|
|
"in": "query",
|
|
"description": "Filter by transaction ID",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"example": "TRX123456789"
|
|
},
|
|
{
|
|
"name": "customer_id",
|
|
"in": "query",
|
|
"description": "Filter by customer ID",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"example": "CID0000025585"
|
|
},
|
|
{
|
|
"name": "account_id",
|
|
"in": "query",
|
|
"description": "Filter by account ID",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"example": "ACCT000000123"
|
|
},
|
|
{
|
|
"name": "fbn_transaction_id",
|
|
"in": "query",
|
|
"description": "Filter by FBN transaction ID",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"example": "FBNTRX7890"
|
|
},
|
|
{
|
|
"name": "added_date",
|
|
"in": "query",
|
|
"description": "Filter by added date (ISO format)",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"example": "2024-01-01T00:00:00Z"
|
|
},
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"description": "Page number for pagination",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 1,
|
|
"minimum": 1
|
|
},
|
|
"example": 1
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"description": "Number of items per page (max 100)",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer",
|
|
"default": 20,
|
|
"minimum": 1,
|
|
"maximum": 100
|
|
},
|
|
"example": 20
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Successful operation",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../schemas/RepaymentDataResponse.json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "Invalid request"
|
|
},
|
|
"500": {
|
|
"description": "Internal server error"
|
|
}
|
|
}
|
|
}
|
|
}
|