curl --request GET \
--url https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'API-Timestamp: <api-key>'import requests
url = "https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods"
headers = {
"API-Key": "<api-key>",
"API-Sign": "<api-key>",
"API-Timestamp": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'API-Key': '<api-key>', 'API-Sign': '<api-key>', 'API-Timestamp': '<api-key>'}
};
fetch('https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>",
"API-Sign: <api-key>",
"API-Timestamp: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
req.Header.Add("API-Sign", "<api-key>")
req.Header.Add("API-Timestamp", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods")
.header("API-Key", "<api-key>")
.header("API-Sign", "<api-key>")
.header("API-Timestamp", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
request["API-Sign"] = '<api-key>'
request["API-Timestamp"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "2fa11f79-eeba-4d4e-afda-029abff6e29e",
"asset": {
"symbol": "BTC",
"name": "Bitcoin",
"type": "crypto"
},
"method": "Bitcoin",
"network": "Bitcoin",
"network_info": {
"explorer": "https://mempool.space/tx/",
"confirmations": "3",
"est_confirmation_time": "45"
},
"minimum": {
"symbol": "BTC",
"name": "Bitcoin",
"type": "crypto",
"amount": "0.0005"
},
"requirements": [],
"address_fields": [
{
"key": "address",
"required": true,
"allowed_values": []
}
]
}
]
}List withdrawal methods
Returns the fiat and cryptocurrency withdrawal methods available to the selected account for an asset. A page may contain fewer methods than requested or no methods even when next_page_token is present. Continue requesting pages until next_page_token is absent.
Listing a method does not establish that the account meets every eligibility requirement. Use List withdrawal limits for balance and rolling-limit constraints.
curl --request GET \
--url https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'API-Timestamp: <api-key>'import requests
url = "https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods"
headers = {
"API-Key": "<api-key>",
"API-Sign": "<api-key>",
"API-Timestamp": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'API-Key': '<api-key>', 'API-Sign': '<api-key>', 'API-Timestamp': '<api-key>'}
};
fetch('https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-Key: <api-key>",
"API-Sign: <api-key>",
"API-Timestamp: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
req.Header.Add("API-Sign", "<api-key>")
req.Header.Add("API-Timestamp", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods")
.header("API-Key", "<api-key>")
.header("API-Sign", "<api-key>")
.header("API-Timestamp", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.services.payward.com/v1/accounts/{account_id}/funds/withdrawals/methods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-Key"] = '<api-key>'
request["API-Sign"] = '<api-key>'
request["API-Timestamp"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "2fa11f79-eeba-4d4e-afda-029abff6e29e",
"asset": {
"symbol": "BTC",
"name": "Bitcoin",
"type": "crypto"
},
"method": "Bitcoin",
"network": "Bitcoin",
"network_info": {
"explorer": "https://mempool.space/tx/",
"confirmations": "3",
"est_confirmation_time": "45"
},
"minimum": {
"symbol": "BTC",
"name": "Bitcoin",
"type": "crypto",
"amount": "0.0005"
},
"requirements": [],
"address_fields": [
{
"key": "address",
"required": true,
"allowed_values": []
}
]
}
]
}Upcoming: third-party payout fields
asset_symbol and payment_type=TPP to discover fields for the selected account. Follow required, required_when and allowed_values below. The draft SEPA and FPS forms are defined in Prepare; use the rail and currency there, not the returned method id.
Prepare checks input and account eligibility. Continue through every next_page_token, including pages with no methods, until the token is absent.Authorizations
Your public API key. Identifies the partner making the request.
HMAC signature over the request, computed with your private key.
Time the request was signed, as Unix milliseconds. Included in the request signature. Requests signed too far from the server's time are rejected.
Scopes
Path Parameters
Globally unique public identifier for an account.
14 - 42Query Parameters
Public asset symbol whose withdrawal methods to return. Symbol identifying an asset within its asset category.
1 - 16Maximum number of results to return. Ignored when page_token is present.
1 <= x <= 25Opaque token returned as next_page_token in the previous response. Omit to request the first page.
1 - 256Payment classification for discovery: first-party (FPP) or third-party (TPP). TPP Conversions payouts are Upcoming and not enabled.
FPP, TPP Response
Withdrawal methods available for the selected account and asset.
Withdrawal methods available for the requested asset.