Skip to content

Withdraw

POST
/v2/user/withdraw

Create a new withdrawal. The quote_id field is reserved for withdrawals from the synthetic USD balance, and must be omitted for regular withdrawals. To get a quote for a withdrawal from the synthetic USD balance, use the /user/withdraw/usd endpoint.

Request Body

Body

object
invoice
required
string
quote_id
string format: uuid
{
"invoice": "lnbc13370n1pjufy72pp5eyxlltyeyzhvppmzqvy2np7d44xq3vpmgqj90cysznsuxzncn6vqdqqcqzzsxqyz5vqsp59auvwgxtl873ptdyv08x7vqz0hyq3ddx893ejr26zvyz4za7c3hq9qyyssq89j8u6vd84z4u7tn9azrd49nfrg6nczvv03fh0u5sk0tlw9tv05zvxdm0ggmnyscwr8k2jj7cuj0f2yeqnfu7c05vpe2rhs8j4zryecpp59v2s"
}

Responses

200

200

object
id
required
string
paymentHash
string
amount
number
fee
number
successTime
number
{
"id": "f8cc0da3-127b-4583-9b56-e2cc074db218",
"paymentHash": "c90dffac9920aec087620308a987cdad4c08b03b402457e09014e1c30a789e98",
"amount": 1337,
"fee": 2,
"successTime": 1707381751702
}

400

400