API
  1. Acquiring
API
  • Guides
    • Welcome
    • Interface
  • API Reference
    • Introduction
    • Endpoints
    • Data Types
    • Signing
    • 3-D Secure Verification
    • Subscription
    • Errors
    • Webhooks
    • Items Information
    • Changelog
    • Acquiring
      • Create a direct payment
        POST
      • Create a APM payment
        POST
      • Create a redirect (iFrame) payment
        POST
      • Query a transaction
        POST
      • Refund a transaction
        POST
      • Search a refund transaction
        POST
      • Review a transaction
        POST
      • Cancel a transaction
        POST
      • Cancel a subscription
        POST
      • Capture a transaction
        POST
      • Create a payout
        POST
      • Optimise payment methods
        POST
    • Issuing
      • Cardholder
        • Create cardholder
          POST
        • Delete cardholder
          POST
        • Query cardholder
          POST
      • Group
        • Create group
        • Query group details
        • Cancel group
        • Refund group
        • Update group status
        • Recharge group
      • Card
        • Create a card
        • Query card BIN
        • Recharge card
        • Withdraw from a card
        • Cancel a card
        • Update card status
        • Update card limit
        • Query card details
  • Appendix
    • Test Cards
    • Bank Code
    • Country Code
    • Currency Code
    • Payment Methods
  1. Acquiring

Search a refund transaction

POST
/v1/retrievalRefund
Search refund transactions – up to 100 orders in a single request.

Request

Header Params

Body Params application/x-www-form-urlencoded

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 POST 'https://test-api.sufupayment.com/v1/retrievalRefund' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'merchant_id=701001' \
--data-urlencode 'account_id=701001010' \
--data-urlencode 'refund_orders=1726891254563' \
--data-urlencode 'refund_references=' \
--data-urlencode 'merchant_refunds=' \
--data-urlencode 'encryption_data=3fc421f36e1d23db6982aa58779506a3ff17c7dcfa86421719aa69e5e0575168'

Responses

🟢200Success
application/json
Body

Example
{
    "account_id": "701001010",
    "refund_orders": [
        {
            "transaction_id": "1379868670095785984",
            "order_no": "1726891254563",
            "amount": "10.36",
            "refund_status": "1",
            "payment_status": "4100",
            "refund_amount": "10.36",
            "refund_reference": "",
            "currency": "USD",
            "refund_reason": "test",
            "refund_reference_id": "1379868670095785984-01",
            "refund_date": "20241113063528",
            "refund_processing_date": ""
        }
    ],
    "encryption_data": "3fc421f36e1d23db6982aa58779506a3ff17c7dcfa86421719aa69e5e0575168",
    "return_status": "1",
    "return_message": "OK",
    "merchant_id": "701001"
}
Modified at 2025-07-08 10:49:07
Previous
Refund a transaction
Next
Review a transaction