Withdraw synthetic USD
POST
/v2/user/withdraw/susd
Creates a new quote for a withdrawal from the synthetic USD balance, specifying what amount you want to withdraw from this balance. For example, to withdraw the equivalent of 1337 sats from your synthetic USD balance, amount
is 1337
and currency
is btc
. The withdrawal can then be executed by calling the /user/withdraw
endpoint with an invoice corresponding to the requested amount in sats (in our example: 1337) AND the quote_id. Once the withdrawal is settled, any remains from the fee reserve will be returned to the synthetic USD balance.
Request Body
Body
object
amount
required
number
currency
required
string
Responses
200
200
object
currency
required
string
amount
required
number
fee_reserve
required
number
min_balance_after
required
number
valid_until
required
number
quote_id
required
string format: uuid
400
400