Note: Replace YOUR_ACCESS_TOKEN with a valid access token when making requests.
Learn more about Authorization
/api/wallets/search/wallet_numberThis endpoint allows you to search for a wallet belonging to another user by its wallet code. It is useful when you need to retrieve details about a specific wallet.
GEThttps://api.money-go.com/api/wallets/search/wallet_numberAuthorization: Bearer YOUR_ACCESS_TOKENwallet_number The number of the other user’s wallet.
Example: U41
Note: Replace YOUR_ACCESS_TOKEN with a valid access token when making requests.
Learn more about Authorization
curl -X GET "https://api.money-go.com/api/wallets/search/U41" \-H "Authorization: Bearer YOUR_ACCESS_TOKEN"<?php
$url = "https://api.money-go.com/api/wallets/search/U41";$options = [ 'http' => [ 'header' => "Authorization: Bearer YOUR_ACCESS_TOKEN\r\n", 'method' => 'GET' ]];$context = stream_context_create($options);$result = file_get_contents($url, false, $context);if ($result === FALSE) { die('Error occurred while fetching wallet');}$response = json_decode($result, true);print_r($response);import fetch from 'node-fetch';
async function searchWallet(walletCode: string): Promise<void> { const url = `https://api.money-go.com/api/wallets/search/${walletCode}`; try { const response = await fetch(url, { method: "GET", headers: { "Authorization": "Bearer YOUR_ACCESS_TOKEN" } }); if (!response.ok) { throw new Error(`HTTP error! Status: ${response.status}`); } const data = await response.json(); console.log("Wallet Search:", data); } catch (error) { console.error("Error fetching wallet:", error); }}
searchWallet("U41");{ "status": true, "data": { "id": 41, "number": "U41", "currency": { "id": 1, "code": "USD", "name": "United States dollar", "rate": 0.013525, "prefix": "U" } }}| Field | Type | Description |
|---|---|---|
| status | boolean | Indicates whether the request was successful. |
| data | object | Contains the wallet details for the searched wallet. |
| Field | Type | Description |
|---|---|---|
| id | number | Unique identifier for the wallet. |
| number | string | The wallet number (e.g., “U41”). |
| Field | Type | Description |
|---|---|---|
| id | number | Unique identifier of the currency. |
| code | string | Currency code (e.g., “USD”). |
| name | string | Name of the currency. |
| rate | number | Exchange rate for the currency. |
| prefix | string | Currency prefix (e.g., “U”). |