cURL
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>" }
Handle user decision on rate change for swap orders. User can either accept the new market rate or request a refund.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request for user to accept new rate or request refund for a swap order
Swap order ID
True to accept new rate, False to request refund
Successful Response
Response after user makes rate decision for a swap order
Present if refund was requested and processed