PATCH
Update swap by doing an action.
Refund a swap order whose source leg was funded but never completed. The action is selected with the action query parameter. Use refund once the atomic swap’s timelock has expired, or instant-refund on a Bitcoin order to refund before it expires, submitting the signatures from instant refund hash.

Authorizations

garden-app-id
string
header
required

If you do not yet have an app ID, please follow these steps.

Path Parameters

order
string
required

Query Parameters

action
enum<string>
required

The HTLC action to execute on the order.

Available options:
refund,
instant-refund

Body

application/json

The body is of type Refund · object.

Response

200 - application/json

Executed action successfully.

result
string
required
status
enum<string>
Available options:
Ok,
Error
error
string | null