Skip to main content

RefundListResponse

successboolean
Example: true
data object[]
  • Array [
  • refundIdstring
    Example: rfnd_1701234567890_abc
    amountnumber

    Refund amount in dollars

    Example: 50
    reasonstring
    Example: Customer requested refund
    statusstring

    Possible values: [initiated, processing, success, failed]

    gatewayRefundIdstring

    Refund ID from payment gateway

    initiatedBystring

    Merchant ID who initiated refund

    initiatedAtstring<date-time>
    processedAtstring<date-time>
    notesstring
    transaction object

    Associated transaction summary

    orderIdstring
    Example: ORD_1701234567890_abc123
    externalOrderIdstring
    Example: MY-ORDER-123
    amountnumber
    Example: 100
    statusstring
  • ]
  • pagination object
    pageinteger
    Example: 1
    limitinteger
    Example: 50
    totalinteger

    Total number of items

    Example: 150
    totalPagesinteger
    Example: 3
    RefundListResponse
    {
    "success": true,
    "data": [
    {
    "refundId": "rfnd_1701234567890_abc",
    "amount": 50,
    "reason": "Customer requested refund",
    "status": "initiated",
    "gatewayRefundId": "string",
    "initiatedBy": "string",
    "initiatedAt": "2024-07-29T15:51:28.071Z",
    "processedAt": "2024-07-29T15:51:28.071Z",
    "notes": "string",
    "transaction": {
    "orderId": "ORD_1701234567890_abc123",
    "externalOrderId": "MY-ORDER-123",
    "amount": 100,
    "status": "string"
    }
    }
    ],
    "pagination": {
    "page": 1,
    "limit": 50,
    "total": 150,
    "totalPages": 3
    }
    }