Withdrawals
Withdrawals are used to retire the funds from your TurinPay balance to your external bitcoin wallet.
Execute withdrawal
POST
https://api.turinpay.com/withdrawals
Execute a withdrawal action to refund your balance from TurinPay
Headers
Name
Type
Description
X-API-Key
string
Authentication token from the API key with the withdrawals role
Request Body
Name
Type
Description
address
string
Bolt11 lightning network invoice address if the type BTC is set to "ln" or an on-chain bitcoin address if tge type is set to "BTC"
type
string
Withdrawal type must be either "ln" (lightning network) or "BTC" (on-chain) by default is set to "ln"
description
string
Withdrawal description
Retrieve a withdrawal
GET
https://api.turinpay.com/withdrawals/
This endpoint allows you to retrieve a specific withdrawal by its id
Query Parameters
Name
Type
Description
id
string
Withdrawal id
Last updated
Was this helpful?