A refund returns funds to the customer for a completed payment. OmitDocumentation Index
Fetch the complete documentation index at: https://docs.borga.is/llms.txt
Use this file to discover all available pages before exploring further.
amount to refund the full payment amount, or pass a specific value to issue a partial refund. Multiple partial refunds can be issued against the same payment until the fully refunded amount equals the original charge.
Status values
| Value | Description |
|---|---|
pending | Refund has been submitted and is being processed. |
succeeded | Funds have been returned to the customer. |
failed | Refund could not be processed. Contact support if this occurs. |
Create a refund
POST /v1/refunds
Issues a refund against an existing payment. The payment must have a status of succeeded or partially_refunded.
Request parameters
ID of the payment to refund (e.g.
pay_xxx).Amount to refund in whole ISK kronur. Minimum value is
1. Omit to refund the full remaining amount of the payment.Reason for the refund. Stored on the refund object and visible in the dashboard.
Set of key-value pairs to attach to the refund. Values must be strings.
Response fields
Unique identifier for the refund (e.g.
ref_xxx).ID of the payment that was refunded.
Amount refunded in whole ISK kronur.
Three-letter ISO 4217 currency code, inherited from the payment.
Current refund status. One of
pending, succeeded, failed.Reason provided at creation.
Key-value pairs attached to the refund.
ISO 8601 timestamp of when the refund was created.
List refunds
GET /v1/refunds
Returns a paginated list of refunds, ordered by creation date descending.
Query parameters
Filter refunds by payment ID. Use this to retrieve all refunds for a specific payment.
Maximum number of refunds to return per page.
Response fields
Array of refund objects.
Whether more refunds exist beyond this page.
Retrieve a refund
GET /v1/refunds/{id}
Retrieves the details of an existing refund.
Path parameters
The ID of the refund to retrieve.
Response fields
Unique refund identifier.
ID of the refunded payment.
Refunded amount in whole ISK kronur.
Three-letter ISO 4217 currency code.
Current refund status. One of
pending, succeeded, failed.Reason for the refund.
Key-value pairs attached to the refund.
ISO 8601 timestamp of when the refund was created.