Instant Swap API
Update Refund Address
PATCH:
https://api.pegasusswap.com/api/private/update-refund-address
This API endpoint allows a partner to add or update the refund address for a specific, existing transaction that they own.
Request Body Parameters:
| Name | Type | Required or optional | Description |
|---|---|---|---|
| id | string | required | The unique identifier (orderNumber) of the transaction to update. |
| refundAddress | string | required | The new refund address to be set for the specified transaction. |
Successful response fields:
| Name | Type | Description |
|---|---|---|
| message | string | A confirmation message indicating success. |
| orderNumber | string | The unique identifier of the updated transaction. |
| newRefundAddress | string | The refund address that was successfully set. |
Example request:
PATCH:
https://api.pegasusswap.com/api/private/update-refund-address
{
"id": "RBGTSM",
"refundAddress": "ltc1q...your...refund...address...here"
}Example response:
{
"message": "Refund address updated successfully",
"orderNumber": "RBGTSM",
"newRefundAddress": "ltc1q...your...refund...address...here"
}