Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

This API enables you process refund to a customer for a transaction.

Endpoint

Endpoint

GET: https://sandbox.monnify.com/api/v1/refunds?page=0&size=10

Please note that this endpoint is protected by OAuth 2.0 Bearer Token

Supported Request Parameters

Request

FieldDescriptionCompulsory

page

An integer specifying page of transactions to be retrieved. Page number starts from 0.

No. Defaults to 0

size

An integer specifying size of transactions to be returned per page.

No. Defaults to 10
fromTimestamp to filter returned records. Refunds created on or after specified time will be retrieved.No. Defaults to all records within the supplied page parameters.
toTimestamp to filter returned records. Refunds created on or before specified time will be retrieved.No. Defaults to all records within the supplied page parameters.
transactionReferenceTransaction reference of the transaction for which the refund was processed.No. Defaults to all records within the supplied page parameters
refundStatusThe status of the refund.No. Defaults to all records within the supplied page parameters

Response

Get All Refund Response
{
    "requestSuccessful": true,
    "responseMessage": "success",
    "responseCode": "0",
    "responseBody": {
        "content": [
            {
                "refundReference": "ref001",
                "transactionReference": "MNFY|20190816083102|000021",
                "refundReason": "defective goods",
                "customerNote": "refund-order001",
                "refundAmount": 10.00,
                "refundType": "PARTIAL_REFUND",
                "refundStatus": "COMPLETED",
                "comment": "Refund processed successfully.",
                "completedOn": "17/03/2021 4:32:09 AM",
                "createdOn": "17/03/2021 3:32:09 AM"
            },
            {
                "refundReference": "ref002",
                "transactionReference": "MNFY|20190816083102|000021",
                "refundReason": "defective goods",
                "customerNote": "refund-order002",
                "refundAmount": 10.00,
                "refundType": "PARTIAL_REFUND",
                "refundStatus": "FAILED",
                "comment": "Refund failed",
                "completedOn": "17/03/2021 5:32:09 AM",
                "createdOn": "17/03/2021 4:32:09 AM"
            }
        ],
        "last": true,
        "totalElements": 2,
        "totalPages": 1,
        "size": 8,
        "number": 0,
        "numberOfElements": 2,
        "first": true,
        "empty": false
    }
}
  • No labels