Skip to main content

ResponseWrapperContractListDto

Wrapper class for the contract list response, including metadata such as status, code, message, and data with pagination of contract subscription details.

statusstring

Status of the response

Possible values: [SUCCESS, ERROR]

Example: ERROR/SUCCESS
messagestring

Message describing the response

Example: Request failed/Request successful
codeMessagestring

Code message describing the response

Example: ERR-001/SUC-001
data object

Represents paginated results.

content object[]

The list of items in the current page.

  • Array [
  • idint64

    Unique identifier of the contract subscription

    Example: 12345
    associatedBankCodestring

    Code of the associated bank

    Example: 00004
    createdByUserstring

    User who created the contract subscription

    Example: john_doe
    associatedCountryCodestring

    Code of the associated country

    Example: TN
    versionint64

    Version of the contract subscription

    Example: 1
    contractIdentifierstring

    Unique identifier of the contract

    Example: B0001768690832A
    subscriptionProductstring

    Product associated with the subscription

    Example: Premium Subscription
    clientTypestring

    Client type code

    Example: P_SegmentClientContrat
    clientTypeLabelstring

    Label representing the client type

    Example: Retail
    statestring

    State of the contract subscription

    Example: 97
    stateLabelstring

    State label of the contract subscription

    Example: Active
    encryptionboolean

    Indicates if encryption is enabled

    Example: true
    sealingboolean

    Indicates if sealing is enabled

    Example: false
    publicKeystring

    Public key associated with the contract

    Example: MIIBIjANBgkqhkiG9...
    commercialRelationTitlestring

    Title of the commercial relationship

    Example: Commercial Relationship 1
    commercialRelationIdentifierstring

    Identifier of the commercial relationship

    Example: 2755966
    commercialAgencystring

    Agency managing the commercial relationship

    Example: 86
    subscriptionDatestring

    Date when the subscription was made

    Example: 2024-12-24
    enableForSubscribersboolean

    Indicates whether the subscription is enabled for subscribers

    Example: true
    billingAccountstring

    Internal identifier for the billing account

    Example: 77426922
    clientAccountManagerstring

    Account manager for the client

    Example: 2c91808990a622a50190a7a521530001
    numberOfSubscribersint32

    Number of subscribers attached to contract

    Example: 3
    qualityRelativeToContractstring

    Represents the quality or status relative to a contract

    Example: 92
    commercialRelationDto object

    DTO representing the details of a commercial relationship.

    idint64

    Unique identifier for the commercial relation

    Example: 12345
    associatedBankCodestring

    Code of the associated bank

    Example: 00004
    associatedCountryCodestring

    Code of the associated country

    Example: TN
    versionint64

    Version of the commercial relationship

    Example: 1
    commercialRelationIdentifierstring

    Unique identifier for the commercial relation

    Example: 2755966
    titlestring

    Title of the commercial relationship

    Example: Commercial Relation 1
    segmentstring

    Segment of the commercial relation

    Example: Retail
    nationalIFNumberstring

    National identification number for the commercial entity

    Example: IFN123456
    commerceRegisterNumberstring

    Commercial register number of the company

    Example: 9285554
    addressLine1string

    First line of the address

    Example: 123 Main Street
    addressLine2string

    Second line of the address

    Example: Suite 101
    addressLine3string

    Third line of the address

    Example: Building A
    phoneNumberstring

    Phone number for the commercial relation

    Example: +1-800-123-4567
    tradeFinanceBankIdint64

    Trade finance bank ID associated with the commercial relation

    Example: 456789
  • ]
  • totalElementsint64

    The total number of elements across all pages.

    Example: 100
    totalPagesint32

    The total number of pages available.

    Example: 10
    numberint32

    The current page number (zero-based).

    Example: 0
    sizeint32

    The number of items per page.

    Example: 10
    error object

    Detailed information about the error response

    codestring

    Error code

    Example: ERR-142
    messagestring

    Error message

    Example: Resource not found / Internal server error
    details object[]

    List of error details

  • Array [
  • codestring

    Error code

    Example: ER4001
    messagestring

    Detailed error message

    Example: Invalid input
    targetstring

    Target of the error

    Example: username
  • ]
  • suggestionsstring[]

    List of suggestions for resolving the error

    Example: ["Check the resource ID","Ensure the resource exists"]
    metaData object

    Additional metadata about the error, that could help in debugging

    property name*string

    Additional metadata about the error, that could help in debugging

    Example: {"requestId":"3c5e4cebf39cbc5b","operationId":"66fd4d2ae6b6"}
    timestampdate-time

    Timestamp of when the response was generated

    ResponseWrapperContractListDto
    {
    "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"
    }