Instant Swap API

Update Refund Address

PATCH:

This API endpoint allows a partner to add or update the refund address for a specific, existing transaction that they own.
Request Body Parameters:
NameTypeRequired or optionalDescription
idstringrequiredThe unique identifier (orderNumber) of the transaction to update.
refundAddressstringrequiredThe new refund address to be set for the specified transaction.
Successful response fields:
NameTypeDescription
messagestringA confirmation message indicating success.
orderNumberstringThe unique identifier of the updated transaction.
newRefundAddressstringThe refund address that was successfully set.
Example request:

PATCH:

{
  "id": "RBGTSM",
  "refundAddress": "ltc1q...your...refund...address...here"
}
Example response:
{
  "message": "Refund address updated successfully",
  "orderNumber": "RBGTSM",
  "newRefundAddress": "ltc1q...your...refund...address...here"
}