Skip to main content

ResponseWrapperProductListDto

Generic API response wrapper for Product List

statusstring

Response status

Possible values: [SUCCESS, ERROR]

Example: SUCCESS
messagestring

Message describing the response

Example: Request successful
codeMessagestring

Code message describing the response

Example: SUC-001
data object[]
  • Array [
  • idinteger<int64>required

    Unique identifier of the product

    Example: 1
    moduleCodestringrequired

    Module code (TF for Trade Finance, SCF for Supply Chain Finance)

    Possible values: <= 10 characters

    Example: TF
    moduleNamestringrequired

    Human-readable module name

    Possible values: <= 100 characters

    Example: Trade Finance
    productCodestringrequired

    Unique product code within the module

    Possible values: <= 50 characters

    Example: ILC
    productNamestringrequired

    Human-readable product name

    Possible values: <= 200 characters

    Example: Import Letter of Credit
    descriptionstringnullable

    Detailed description of the product

    Possible values: <= 500 characters

    Example: Product for managing Import Letter of Credit transactions
    createdAtstring<date-time>

    Timestamp when the product was created

    Example: 2025-01-15T09:36:22.500Z
    updatedAtstring<date-time>

    Timestamp when the product was last updated

    Example: 2025-01-15T09:36:22.500Z
  • ]
  • error objectnullable

    Details of any error that occurred

    codestring

    Error code

    Example: ERR_GENERAL_0004
    messagestring

    Human-readable error message

    Example: The requested resource was not found
    details object[]

    List of error details

  • Array [
  • codestring

    Specific error code

    Example: ER4001
    messagestring

    What went wrong

    Example: Invalid input
    targetstring

    Field that caused the issue

    Example: productCode
  • ]
  • suggestionsstring[]

    Suggested actions to resolve the error

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

    Additional metadata about the error

    property name*string
    timestampstring<date-time>

    Timestamp of when the response was generated

    Example: 2025-01-15T09:36:22.500Z
    ResponseWrapperProductListDto
    {
    "status": "SUCCESS",
    "message": "Request successful",
    "codeMessage": "SUC-001",
    "data": [
    {
    "id": 1,
    "moduleCode": "TF",
    "moduleName": "Trade Finance",
    "productCode": "ILC",
    "productName": "Import Letter of Credit",
    "description": "Product for managing Import Letter of Credit transactions",
    "createdAt": "2025-01-15T09:36:22.500Z",
    "updatedAt": "2025-01-15T09:36:22.500Z"
    }
    ],
    "error": {
    "code": "ERR_GENERAL_0004",
    "message": "The requested resource was not found",
    "details": [
    {
    "code": "ER4001",
    "message": "Invalid input",
    "target": "productCode"
    }
    ],
    "suggestions": [
    "Check the resource ID",
    "Ensure the resource exists"
    ],
    "metaData": {}
    },
    "timestamp": "2025-01-15T09:36:22.500Z"
    }