Skip to main content
POST
/
api
/
v1
/
swaps
/
orders
/
rate_decision
Handle Swap Order Rate Decision
curl --request POST \
  --url https://api.staging.kaleidoswap.com/api/v1/swaps/orders/rate_decision \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "order_id": "<string>",
  "accept_new_rate": true
}
'
{
  "order_id": "<string>",
  "decision_accepted": true,
  "message": "<string>",
  "refund_txid": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request for user to accept new rate or request refund for a swap order

order_id
string
required

Swap order ID

accept_new_rate
boolean
required

True to accept new rate, False to request refund

Response

Successful Response

Response after user makes rate decision for a swap order

order_id
string
required
decision_accepted
boolean
required
message
string
required
refund_txid
string | null

Present if refund was requested and processed