Get Withdrawal Detail
curl --request GET \
--url https://api.hel.io/v1/withdraw-details/{id}import requests
url = "https://api.hel.io/v1/withdraw-details/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hel.io/v1/withdraw-details/{id}', 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.hel.io/v1/withdraw-details/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.hel.io/v1/withdraw-details/{id}"
req, _ := http.NewRequest("GET", url, nil)
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.hel.io/v1/withdraw-details/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hel.io/v1/withdraw-details/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"withdrawalDetailId": "<string>",
"state": "QUOTED",
"txHash": "<string>",
"destinationTxHash": "<string>",
"broadcastAck": "acknowledged",
"errorReason": "<string>",
"customerId": "<string>"
}Runtime Flow
Get Withdrawal Detail
Polls the status of a withdrawal by withdrawalDetailId. No authentication required (rate-limited).
GET
/
v1
/
withdraw-details
/
{id}
Get Withdrawal Detail
curl --request GET \
--url https://api.hel.io/v1/withdraw-details/{id}import requests
url = "https://api.hel.io/v1/withdraw-details/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hel.io/v1/withdraw-details/{id}', 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.hel.io/v1/withdraw-details/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.hel.io/v1/withdraw-details/{id}"
req, _ := http.NewRequest("GET", url, nil)
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.hel.io/v1/withdraw-details/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hel.io/v1/withdraw-details/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"withdrawalDetailId": "<string>",
"state": "QUOTED",
"txHash": "<string>",
"destinationTxHash": "<string>",
"broadcastAck": "acknowledged",
"errorReason": "<string>",
"customerId": "<string>"
}Note: When using the production environment at moonpay.hel.io, set your API endpoint to
api.hel.io/v1. For the development environment, use api.dev.hel.io/v1.Poll every ~3 seconds until the withdrawal reaches a terminal state (
COMPLETED, FAILED, FAILED_EXPIRED, EXPIRED, or REFUNDED_BY_PROVIDER). When set at prepare time, customerId is echoed on this response.Path Parameters
The withdrawal detail ID.
Response
Withdrawal detail retrieved successfully.
Available options:
QUOTED, SUBMITTING, SUBMITTED, BRIDGING, COMPLETED, FAILED, FAILED_EXPIRED, EXPIRED, REFUNDED_BY_PROVIDER Source-chain transaction hash of the withdrawal. For a same-chain withdrawal this is the delivery transaction. Null until the transaction is broadcast.
Destination-chain delivery transaction hash for cross-chain withdrawals. Null until the withdrawal reaches COMPLETED, and null for same-chain withdrawals (where txHash is already the delivery transaction).
acknowledged = confirmed; unacknowledged = sent, keep polling; rejected = terminal failure.
Available options:
acknowledged, unacknowledged, rejected Human-readable error when state is FAILED.
Merchant-defined customer identifier set at prepare time, or null when omitted.
