**Version: 202201**

# Get Refund

**GET** `/openapi/2024-07/shoplazza-payment/refunds/:id`

Retrieves the details of an existing refund.

## Request

**Path Parameters**

- `id` string (required)

  refund order id

## Responses

**200 | 500**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  Response: Refund order

  - `refund_order` object

    refund order

    - `id` string

      Refund order ID
    - `store_id` string

      Store ID
    - `balance_currency` string

      Settlement account currency
    - `transaction_order_id` string

      Associated transaction order ID
    - `status` string

      Refund status (e.g., "succeeded", "failed", "processing") succeeded: The refund was successfully processed, and the funds have been returned to the payer. failed: The refund attempt failed, and no funds were returned to the payer. processing: The refund is currently being processed, and the final result is pending confirmation.
    - `amount` string

      Refund amount
    - `currency` string

      Transaction currency
    - `original_order_amount` string

      Original order total amount
    - `created_at` string

      Refund initiation time (unix timestamp)
    - `completed_at` string

      Refund completion time (unix timestamp)

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "refund_order": {
      "id": "string",
      "store_id": "string",
      "balance_currency": "string",
      "transaction_order_id": "string",
      "status": "string",
      "amount": "string",
      "currency": "string",
      "original_order_amount": "string",
      "created_at": "string",
      "completed_at": "string"
    }
  }
}
```

UnknownError

**application/json**

**Schema | Example | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message

```json
{
  "code": "string",
  "message": "string"
}
```

```json
{
  "code": "InvalidParameter",
  "message": "Unknown error, please contact shoplazza technical support to resolve the issue."
}
```
