const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chain_id": 123,
"safe_address": "<string>",
"token": "<string>",
"token_name": "<string>",
"amount": "<string>",
"to_address": "<string>",
"tx_hash": "<string>",
"block_number": 123,
"status": "pending",
"api_initiated": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"code": 123,
"message": "<string>",
"reason": "<string>"
}Get a withdrawal
Retrieves an on-chain withdrawal by ID, including its current status and transaction details when available.
Withdrawal processing is asynchronous. Treat pending as non-final and
use a webhook or this endpoint to observe completion or failure.
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.prod.gnosispay.com/partner-api/v1/withdrawals/{withdrawal_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chain_id": 123,
"safe_address": "<string>",
"token": "<string>",
"token_name": "<string>",
"amount": "<string>",
"to_address": "<string>",
"tx_hash": "<string>",
"block_number": 123,
"status": "pending",
"api_initiated": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"code": 123,
"message": "<string>",
"reason": "<string>"
}Path Parameters
The withdrawal ID.
Response
The request has succeeded.
Unique withdrawal identifier.
Account sending the withdrawal.
Numeric blockchain network ID.
Account funding address that sent the tokens.
Token contract address.
Human-readable token name.
Amount in the token's smallest unit.
Destination address.
Blockchain transaction hash; empty until the transaction is submitted.
Block number containing the transaction; zero until it is confirmed.
Current withdrawal status.
pending, completed, failed Whether the withdrawal was requested through an API.
When the withdrawal was first recorded.
When the withdrawal was last updated.