ResponseWrapperContractListDto
Wrapper class for the contract list response, including metadata such as status, code, message, and data with pagination of contract subscription details.
Status of the response
Possible values: [SUCCESS, ERROR]
ERROR/SUCCESSMessage describing the response
Request failed/Request successfulCode message describing the response
ERR-001/SUC-001data object
Represents paginated results.
content object[]
The list of items in the current page.
Unique identifier of the contract subscription
12345Code of the associated bank
00004User who created the contract subscription
john_doeCode of the associated country
TNVersion of the contract subscription
1Unique identifier of the contract
B0001768690832AProduct associated with the subscription
Premium SubscriptionClient type code
P_SegmentClientContratLabel representing the client type
RetailState of the contract subscription
97State label of the contract subscription
ActiveIndicates if encryption is enabled
trueIndicates if sealing is enabled
falsePublic key associated with the contract
MIIBIjANBgkqhkiG9...Title of the commercial relationship
Commercial Relationship 1Identifier of the commercial relationship
2755966Agency managing the commercial relationship
86Date when the subscription was made
2024-12-24Indicates whether the subscription is enabled for subscribers
trueInternal identifier for the billing account
77426922Account manager for the client
2c91808990a622a50190a7a521530001Number of subscribers attached to contract
3Represents the quality or status relative to a contract
92commercialRelationDto object
DTO representing the details of a commercial relationship.
Unique identifier for the commercial relation
12345Code of the associated bank
00004Code of the associated country
TNVersion of the commercial relationship
1Unique identifier for the commercial relation
2755966Title of the commercial relationship
Commercial Relation 1Segment of the commercial relation
RetailNational identification number for the commercial entity
IFN123456Commercial register number of the company
9285554First line of the address
123 Main StreetSecond line of the address
Suite 101Third line of the address
Building APhone number for the commercial relation
+1-800-123-4567Trade finance bank ID associated with the commercial relation
456789The total number of elements across all pages.
100The total number of pages available.
10The current page number (zero-based).
0The number of items per page.
10error object
Detailed information about the error response
Error code
ERR-142Error message
Resource not found / Internal server errordetails object[]
List of error details
Error code
ER4001Detailed error message
Invalid inputTarget of the error
usernameList of suggestions for resolving the error
["Check the resource ID","Ensure the resource exists"]metaData object
Additional metadata about the error, that could help in debugging
Additional metadata about the error, that could help in debugging
{"requestId":"3c5e4cebf39cbc5b","operationId":"66fd4d2ae6b6"}Timestamp of when the response was generated
{
"status": "ERROR/SUCCESS",
"message": "Request failed/Request successful",
"codeMessage": "ERR-001/SUC-001",
"data": {
"content": [
{
"id": 12345,
"associatedBankCode": "00004",
"createdByUser": "john_doe",
"associatedCountryCode": "TN",
"version": 1,
"contractIdentifier": "B0001768690832A",
"subscriptionProduct": "Premium Subscription",
"clientType": "P_SegmentClientContrat",
"clientTypeLabel": "Retail",
"state": "97",
"stateLabel": "Active",
"encryption": true,
"sealing": false,
"publicKey": "MIIBIjANBgkqhkiG9...",
"commercialRelationTitle": "Commercial Relationship 1",
"commercialRelationIdentifier": 2755966,
"commercialAgency": 86,
"subscriptionDate": "2024-12-24",
"enableForSubscribers": true,
"billingAccount": 77426922,
"clientAccountManager": "2c91808990a622a50190a7a521530001",
"numberOfSubscribers": 3,
"qualityRelativeToContract": "92",
"commercialRelationDto": {
"id": 12345,
"associatedBankCode": "00004",
"associatedCountryCode": "TN",
"version": 1,
"commercialRelationIdentifier": 2755966,
"title": "Commercial Relation 1",
"segment": "Retail",
"nationalIFNumber": "IFN123456",
"commerceRegisterNumber": 9285554,
"addressLine1": "123 Main Street",
"addressLine2": "Suite 101",
"addressLine3": "Building A",
"phoneNumber": "+1-800-123-4567",
"tradeFinanceBankId": 456789
}
}
],
"totalElements": 100,
"totalPages": 10,
"number": 0,
"size": 10
},
"error": {
"code": "ERR-142",
"message": "Resource not found / Internal server error",
"details": [
{
"code": "ER4001",
"message": "Invalid input",
"target": "username"
}
],
"suggestions": [
"Check the resource ID",
"Ensure the resource exists"
],
"metaData": {
"requestId": "3c5e4cebf39cbc5b",
"operationId": "66fd4d2ae6b6"
}
},
"timestamp": "2024-07-29T15:51:28.071Z"
}