Virtual Account Services
  1. Refunds
Virtual Account Services
  • Introduction
  • Terminologies
  • Webhooks
  • Authentication
  • Account
    • Create Account
      POST
    • Rename Account
      POST
    • Balance Inquiry
      GET
    • Create Bulk Accounts
      POST
    • List Accounts
      GET
  • Transaction
    • Credit Account
      POST
    • Debit Account
      POST
    • Credit Account [Agency Banking]
      POST
    • Debit Account [Agency Banking]
      POST
    • Transaction Query
      GET
    • Transaction Details
      GET
    • Transaction History
      GET
  • Transfer
    • Get Institutions
      GET
    • Name Inquiry
      POST
    • Interbank Transfer
      POST
    • Interbank Transfer [Sync]
      POST
    • Transfer Query
      GET
    • Transfer Enquiry
      GET
    • Virtual Account Intrabank Transfer
      POST
    • Core Banking Intrabank Transfer
      POST
    • Collection Accounts Intrabank Transfer
      POST
  • Invoice
    • Create Invoice
    • Get Invoice Detail
    • List Merchant Invoices
  • Refunds
    • Initiate Refund
      POST
    • Get Refund Status
      GET
    • Get Refunds
      GET
  • Notifications
    • Notification
    • Send Notification
  • Merchant
    • Account
      • Get Account
      • Activate Sub Ledger For Merchant
      • Get SubLedger Callback Urls
      • Set SubLedger Callback Urls
      • Get Collection Accounts
    • Transfer
      • Get Transfer History
      • Get Subledger transfers
      • Get Transfer Details
      • Name Inquiry
    • Refund
      • Refund Details
  • Admin
    • Accounting
      • Get GL Accounts
      • Get Classification Codes
    • Dashboard
      • Dashboard Summary
      • Dashboard Transactions
      • Dashboard Transaction Details
    • Group Codes
      • Get Group Codes
      • Set Collection Account
      • Create Group Code
    • Reporting
      • Get Report Types
      • Get Report Parameters
      • Create Report
      • Get Reports
      • Get Reports Details
  1. Refunds

Get Refunds

GET
/va/refunds
This API retrieves a list of refund transactions. It provides details about each refund, including its reference, amount, status, and other relevant metadata.

Response#

Field NameTypeDescription
requestSuccessfulbooleanIndicates whether the request was processed successfully.
responseMessagestringA message indicating the status of the request (e.g., "success").
responseCodestringA code representing the outcome of the request.
responseBodyobjectContains details of the refund transactions and pagination data.
├── contentsarrayA list of refund transactions.
│ ├── transactionReferencestringThe reference ID of the original transaction.
│ ├── refundReferencestringThe reference ID of the refund transaction.
│ ├── refundAmountdecimalThe amount that was refunded.
│ ├── refundReasonstringThe reason provided for initiating the refund.
│ ├── customerNotestringAn optional note from the customer regarding the refund.
│ ├── refundTypestringIndicates whether the refund is partial or full (e.g., "PARTIAL_REFUND").
│ ├── refundStatusstringThe current status of the refund request (e.g., "COMPLETED").
│ ├── refundStrategystringThe method used to process the refund (e.g., "MERCHANT_WALLET").
│ ├── commentstringAdditional comments about the refund status.
│ ├── completedOnstringThe timestamp when the refund was completed.
│ ├── createdOnstringThe timestamp when the refund request was created.
├── pageableobjectContains pagination details for the response.
│ ├── sortobjectContains sorting details.
│ │ ├── sortedbooleanIndicates if the results are sorted.
│ │ ├── unsortedbooleanIndicates if the results are not sorted.
│ │ ├── emptybooleanIndicates if the sorting criteria are empty.
│ ├── pageSizeintegerThe number of elements per page.
│ ├── pageNumberintegerThe current page number.
│ ├── offsetintegerThe offset of the first element in the page.
│ ├── pagedbooleanIndicates whether pagination is enabled.
│ ├── unpagedbooleanIndicates whether pagination is disabled.
├── sortobjectContains sorting details at the top level.
│ ├── sortedbooleanIndicates if the results are sorted.
│ ├── unsortedbooleanIndicates if the results are not sorted.
│ ├── emptybooleanIndicates if the sorting criteria are empty.
├── lastbooleanIndicates whether the current page is the last page.
├── firstbooleanIndicates whether the current page is the first page.
├── emptybooleanIndicates whether the response contains no elements.
├── totalElementsintegerThe total number of elements available.
├── totalPagesintegerThe total number of pages available.
├── noOfElementsintegerThe number of elements returned in the current response.
├── sizeintegerThe maximum number of elements per page.
├── numberintegerThe current page index.

Request

None

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/va/refunds'

Responses

🟢200Get Refunds
application/json
Body

Example
{
    "requestSuccessful": true,
    "responseMessage": "success",
    "responseCode": "0",
    "responseBody": {
        "contents": [
            {
                "transactionReference": "000012240124191535300537886000",
                "refundReference": "909090911",
                "refundAmount": 10,
                "refundReason": "Order cancelled!",
                "customerNote": "An optional note",
                "refundType": "PARTIAL_REFUND",
                "refundStatus": "COMPLETED",
                "refundStrategy": "MERCHANT_WALLET",
                "comment": "Transaction refund is in progress.",
                "completedOn": "25/01/2024 01:39:13 AM",
                "createdOn": "25/01/2024 01:35:27 AM"
            }
        ],
        "pageable": {
            "sort": {
                "sorted": false,
                "unsorted": false,
                "empty": false
            },
            "pageSize": 0,
            "pageNumber": 0,
            "offset": 0,
            "paged": false,
            "unpaged": false
        },
        "sort": {
            "sorted": false,
            "unsorted": false,
            "empty": false
        },
        "last": false,
        "first": false,
        "empty": false,
        "totalElements": 1,
        "totalPages": 0,
        "noOfElements": 100,
        "size": 1000,
        "number": 1
    }
}
Modified at 2025-02-28 14:24:31
Previous
Get Refund Status
Next
Notification
Built with