Retrieve Wallet by ID
GET /wallet/{id}
Fetch detailed information about a specific wallet.
Headers
Name
Value
Content-Type
application/json
X-API-KEY
<token>
Response
{
"id": 0,
"label": "string",
"postback_url": "http://example.com",
"currency": "string",
"address": "string",
"created_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-09-24T14:15:22Z",
}{
"detail": "Wallet does not exist"
}{
"detail": [
{
"loc": [],
"msg": "string",
"type": "string"
}
]
}Example
curl -X GET "https://api.nord-pay.com/wallet/your-wallet-id" \
-H "Content-Type: application/json" \
-H "X-API-KEY: YOUR_API_KEY"import requests
def get_wallet(wallet_id):
url = f"https://api.nord-pay.com/wallet/{wallet_id}"
headers = {
"Content-Type": "application/json",
"X-API-KEY": "YOUR_API_KEY"
}
resp = requests.get(url, headers=headers)
resp.raise_for_status()
return resp.json()
# usage:
wallet = get_wallet("your-wallet-id")<?php
function getWallet(string $walletId): array {
$ch = curl_init("https://api.nord-pay.com/wallet/{$walletId}");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: YOUR_API_KEY"
],
]);
$response = curl_exec($ch);
curl_close($ch);
return json_decode($response, true);
}
// usage:
$wallet = getWallet("your-wallet-id");async function loadWallet(walletId) {
const response = await fetch(`https://api.nord-pay.com/wallet/${walletId}`, {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-API-KEY": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
return response.json();
}
// usage:
loadWallet("your-wallet-id").then(wallet => {
// work with wallet
});const axios = require('axios');
async function getWallet(walletId) {
const { data } = await axios.get(
`https://api.nord-pay.com/wallet/${walletId}`,
{
headers: {
"Content-Type": "application/json",
"X-API-KEY": "YOUR_API_KEY"
}
}
);
return data;
}
// usage:
getWallet("your-wallet-id").then(wallet => {
// work with wallet
});Last updated