All URIs are relative to https://btcpay.example.com/api/v1
Method | HTTP request | Description |
---|---|---|
custodians_add_store_custodian_account | POST /api/v1/stores/{storeId}/custodian-accounts | Add a custodial account to a store. |
custodians_delete_store_custodian_account | DELETE /api/v1/stores/{storeId}/custodian-accounts/{accountId} | Delete store custodian account |
custodians_get_store_custodian_account | GET /api/v1/stores/{storeId}/custodian-accounts/{accountId} | Get store custodian account |
custodians_get_store_custodian_account_deposit_address | GET /api/v1/stores/{storeId}/custodian-accounts/{accountId}/addresses/{paymentMethod} | Get a deposit address for custodian |
custodians_get_store_custodian_account_trade_quote | GET /api/v1/stores/{storeId}/custodian-accounts/{accountId}/trades/quote | Get quote for trading one asset for another |
custodians_get_store_custodian_account_withdrawal_info | POST /api/v1/stores/{storeId}/custodian-accounts/{accountId}/withdrawals/{withdrawalId} | Get withdrawal info |
custodians_get_store_custodian_accounts | GET /api/v1/stores/{storeId}/custodian-accounts | List store custodian accounts |
custodians_get_supported_custodians | GET /api/v1/custodians | List supported custodians |
custodians_store_custodian_account_trade_market | POST /api/v1/stores/{storeId}/custodian-accounts/{accountId}/trades/market | Trade one asset for another |
custodians_update_store_custodian_account | PUT /api/v1/stores/{storeId}/custodian-accounts/{accountId} | Update custodial account |
custodians_withdraw_from_store_custodian_account | POST /api/v1/stores/{storeId}/custodian-accounts/{accountId}/withdrawals | Withdraw to store wallet |
crate::models::CustodianAccountData custodians_add_store_custodian_account(store_id, create_custodian_account_request) Add a custodial account to a store.
Add a custodial account to a store.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | The Store ID | [required] | |
create_custodian_account_request | CreateCustodianAccountRequest | [required] |
crate::models::CustodianAccountData
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
custodians_delete_store_custodian_account(store_id, account_id) Delete store custodian account
Deletes a custodial account
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | The Store ID | [required] | |
account_id | String | The Custodian Account ID | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CustodianAccountData custodians_get_store_custodian_account(store_id, account_id, asset_balances) Get store custodian account
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | The Store ID | [required] | |
account_id | String | The Custodian Account ID | [required] | |
asset_balances | Option<bool> | Enable if you want the result to include the 'assetBalances' field. This will make the call slower or could cause the call to fail if the asset balances cannot be loaded (i.e. due to a bad API key). | [default to false] |
crate::models::CustodianAccountData
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CustodiansGetStoreCustodianAccountDepositAddress200Response custodians_get_store_custodian_account_deposit_address(store_id, account_id, payment_method) Get a deposit address for custodian
Get a new deposit address for the custodian using the specified payment method (network + crypto code).
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | The Store ID | [required] | |
account_id | String | The Custodian Account ID. | [required] | |
payment_method | String | The payment method to use for the deposit. Example: "BTC-OnChain" or "BTC-Lightning" | [required] |
crate::models::CustodiansGetStoreCustodianAccountDepositAddress200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::QuoteResultData custodians_get_store_custodian_account_trade_quote(store_id, account_id, from_asset, to_asset) Get quote for trading one asset for another
Get the current bid and ask price for converting one asset into another.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | The Store ID | [required] | |
account_id | String | The Custodian Account ID. | [required] | |
from_asset | String | The asset to convert. | [required] | |
to_asset | String | The asset you want. | [required] |
crate::models::QuoteResultData
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::WithdrawalResultData custodians_get_store_custodian_account_withdrawal_info(store_id, account_id, withdrawal_id) Get withdrawal info
Get the details about a past withdrawal.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | The Store ID | [required] | |
account_id | String | The Custodian Account ID. | [required] | |
withdrawal_id | String | The Withdrawal ID. | [required] |
crate::models::WithdrawalResultData
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Veccrate::models::CustodianAccountData custodians_get_store_custodian_accounts(store_id, asset_balances) List store custodian accounts
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | The Store ID | [required] | |
asset_balances | Option<bool> | Enable if you want the result to include the 'assetBalances' field. This will make the call slower or could cause the call to fail if the asset balances cannot be loaded (i.e. due to a bad API key). | [default to false] |
Veccrate::models::CustodianAccountData
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Veccrate::models::CustodianData custodians_get_supported_custodians() List supported custodians
List all supported custodians for the BTCPay instance. You can install plugins to add more custodians.
This endpoint does not need any parameter.
Veccrate::models::CustodianData
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::TradeResultData custodians_store_custodian_account_trade_market(store_id, account_id, trade_request_data) Trade one asset for another
Trade one asset for another using a market order (=instant purchase with instant result or failure). A suitable asset pair will automatically be selected. If no asset pair is available, the call will fail.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | The Store ID | [required] | |
account_id | String | The Custodian Account ID. | [required] | |
trade_request_data | Option<TradeRequestData> |
crate::models::TradeResultData
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CustodianAccountData custodians_update_store_custodian_account(store_id, account_id, create_custodian_account_request) Update custodial account
Update custodial account
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | The Store ID | [required] | |
account_id | String | The Custodian Account ID | [required] | |
create_custodian_account_request | CreateCustodianAccountRequest | [required] |
crate::models::CustodianAccountData
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::WithdrawalResultData custodians_withdraw_from_store_custodian_account(store_id, account_id, withdrawal_request_data) Withdraw to store wallet
Withdraw an asset to your store wallet.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | The Store ID | [required] | |
account_id | String | The Custodian Account ID. | [required] | |
withdrawal_request_data | WithdrawalRequestData | [required] |
crate::models::WithdrawalResultData
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]