---
title: "Retrieve a refund by charge"
method: GET
path: "/v1/refunds/by-charge/{payment_id}"
tags: ["Refunds"]
---

# Retrieve a refund by charge

`GET /v1/refunds/by-charge/{payment_id}`

Retrieve the refund associated with a specific payment by `payment_id`.

## Path parameters

- `payment_id` string, required

## Response `200`

Success - Refund retrieved for charge

- RefundResponse
  - `refund_id` string — Unique identifier for this refund.
  - `charge_id` string — The payment this refund is associated with.
  - `reference` string — The reference you supplied on creation.
  - `status` 'processing' | 'success' | 'failed' — Current refund status. `processing` = awaiting provider (1-5 business days); `success` = funds returned to customer; `failed` = refund rejected.
  - `requested_amount` string — The refund amount you requested, in the charge's settlement currency.
  - `refunded_amount` string, nullable — The amount actually returned to the customer. Null until the refund completes or partially settles.
  - `refund_fee_amount` string — Fee charged for this refund, in the charge's settlement currency. "0" if no fee applies.
  - `fee_bearer` 'org' | 'customer' — Who bears the refund processing fee. `org` means the merchant absorbs the fee; `customer` means it is deducted from the refunded amount.
  - `reason` string, nullable — The reason you provided, or null if none was given.
  - `created_at` string, date-time — ISO 8601 timestamp when the refund was created.
  - `updated_at` string, date-time — ISO 8601 timestamp of the last status update.
  - `completed_at` string, date-time, nullable — ISO 8601 timestamp when the refund reached a terminal status (SUCCESS or FAILED). Null while still processing.

## Other responses

- `400` — Bad Request - Validation errors or invalid request format. Check the `details` object for field-specific validation errors. Common causes: missing required fields, invalid data types, values outside allowed ranges, or invalid formats.
- `401` — Unauthorized - Invalid, missing, or expired API key. Verify your API key is correctly formatted and included in the Authorization header as `Bearer sk_sandbox_...` or `Bearer sk_live_...`. Check that your key hasn't been revoked.
- `403` — Forbidden - API key does not have permission for the requested resource. Verify you're using the correct organization's API key and that you're not trying to access another organization's data.
- `404` — Not Found - The requested resource does not exist. Verify the resource ID is correct and that it belongs to your organization.
- `429` — Too Many Requests - Rate limit exceeded. Standard tier allows 100 requests per minute per API key. Wait a few seconds before retrying. Check X-RateLimit-Reset header for when the window resets.
- `500` — Internal Server Error - An unexpected error occurred while processing the request. Retry with exponential backoff. If the issue persists, contact support with your request context.

---

[API](https://skmtc.net/bachs/apis/bachs-api.md) · [All operations](https://skmtc.net/bachs/apis/bachs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bachs/bachs-api/versions/f29efa8a22df/schema)
