Skip to main content
GET
/
v1
/
aggregators
/
{raast-aggregator-id}
/
refunds
/
{refund-id}
Find Refund
curl --request GET \
  --url https://api.getsafepay.com/raastwire/v1/aggregators/{raast-aggregator-id}/refunds/{refund-id} \
  --header 'X-SFPY-AGGREGATOR-SECRET-KEY: <api-key>'
{
  "api_version": "v1",
  "data": {
    "id": "1",
    "token": "rfd_2dd0b5e5-ee12-4ff9-b76d-ef915ea496f3",
    "payment_id": "pm_54b6bcee-aa58-454d-aed9-ce97d6bdd797",
    "amount": "500",
    "type": "FULL_REFUND",
    "reason": "TechnicalProblem",
    "addtl_info": "Cancelation due to technical problem.",
    "status": "R_FAILED",
    "trace_reference": "f8cdffe4-cdf1-4f1a-a509-5c2fdfa95809",
    "msg_id": "F3CJ6HG8UPVYPQBBN286T86Y988MUF95TXQ",
    "return_id": "F3CJ6HG8UPVYPQBBN286T86Y988MUF95TXQ",
    "request_id": "ad16c519-a18c-493c-a402-f3bf4cb7f3c1",
    "msg_created_at": "2025-05-20 16:10:53.",
    "settle_at": null,
    "created_at": "2025-05-20T11:10:53Z",
    "updated_at": "2025-05-20T11:10:54Z"
  }
}

Authorizations

X-SFPY-AGGREGATOR-SECRET-KEY
string
header
required

Path Parameters

raast-aggregator-id
string
required

The unique identifier for the aggregator

Example:

"agg_2288490a-2176-4de5-b373-0ffb6f8e2e6e"

refund-id
string
required

The unique identifier for the refund

Example:

"rfd_7e26f9be-f59d-4025-8e17-9fc398d16230"

Response

This response contains details of a refund

Standard response structure for successful operations

api_version
string

The current version of the API spec

Example:

"v1"

data
object

Contains the response data