Skip to main content

ResponseWrapperPaymentCartValidationResponseDto

Generic API response wrapper

statusstring

Response status

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

Payment cart checkout preparation response

totalAmountnumber

Total amount of the payment cart

Example: 150.75
totalAmountFormattedstring

Total amount converted to a formatted string

Example: 150.75
totalinteger<int32>

Total number of items in the cart

Example: 3
requestSentDatestring

Date the payment cart request was sent

Example: 2023-09-30T10:15:30
accountNumberstring

Account number associated with the payment

Example: 123456789
transactionTypestring

Type of transaction being performed

Example: BILL_PAYMENT
idstring

Unique identifier for the payment cart

Example: A1B2C3D4
versioninteger<int32>

Version number of the object

Example: 1
signatureMethodstring

The signature method used for signing the transaction

Possible values: [VIRTUAL_KEYBOARD, OTP_SMS]

Example: VIRUAL_KEYBOARD
error object

Details of any error that occurred

codestring

Error code

Example: ERR-142
messagestring

Human-readable error message

Example: Resource 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: username
  • ]
  • suggestionsstring[]

    Suggested fixes

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

    Extra metadata to help debugging

    property name*string
    timestampstring<date-time>

    Timestamp of when the response was generated

    Example: 22024-10-14T14:28:11.284+01:00
    ResponseWrapperPaymentCartValidationResponseDto
    {
    "status": "ERROR/SUCCESS",
    "message": "Request failed/Request successful",
    "codeMessage": "ERR-001/SUC-001",
    "data": {
    "totalAmount": 150.75,
    "totalAmountFormatted": 150.75,
    "total": 3,
    "requestSentDate": "2023-09-30T10:15:30",
    "accountNumber": 123456789,
    "transactionType": "BILL_PAYMENT",
    "id": "A1B2C3D4",
    "version": 1,
    "signatureMethod": "VIRUAL_KEYBOARD"
    },
    "error": {
    "code": "ERR-142",
    "message": "Resource not found",
    "details": [
    {
    "code": "ER4001",
    "message": "Invalid input",
    "target": "username"
    },
    {
    "code": "ER4002",
    "message": "Missing field",
    "target": "email"
    }
    ],
    "suggestions": [
    "Check the resource ID",
    "Ensure the resource exists"
    ],
    "metaData": {}
    },
    "timestamp": "22024-10-14T14:28:11.284+01:00"
    }