Skip to main content
POST
/
v1
/
transactions
/
{id}
/
refund
Manually dispatch a refund for a failed or cancelled transaction
curl --request POST \
  --url https://sandbox-api.borderless.xyz/v1/transactions/{id}/refund \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "supported": true,
  "requiresManualAction": true,
  "destination": {},
  "reason": {},
  "completedAt": "2023-11-07T05:31:56Z",
  "failedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.borderless.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
refundDestination
object

Optional override for the refund destination. When provided, replaces the stored RefundPlan.destination before the workflow is dispatched. The override is re-validated against the PFI's refund capability using the same rules as on transaction creation.

Response

202 - application/json

Refund workflow dispatched. Returns the current RefundResolution.

supported
boolean
required
requiresManualAction
boolean
required
path
enum<string>
required
Available options:
InlineProvider,
ProviderBalance,
SourceReturn,
ProviderObserved,
ManualRequired,
Unsupported,
NotNeeded
status
enum<string>
required
Available options:
Created,
Eligible,
InProgress,
Succeeded,
Failed,
Blocked,
ManualRequired,
Unsupported,
NotNeeded,
Cancelled
dispatchMode
enum<string>
required
Available options:
None,
PollOnly,
WebhookOnly,
WebhookAndPoll,
SubmitAndPoll,
SubmitAndWebhook,
Manual
destinationSource
enum<string>
required
Available options:
None,
PerTransaction,
OrganizationDefault,
OriginalSender,
ProviderLocked,
Manual
destination
object
reason
object
completedAt
string<date-time> | null
failedAt
string<date-time> | null