Retrieve a wallet transaction
Get one transaction in or out of your wallet.
amount is in the coin, and value_usd is its value in US dollars, a decimal string such as "49.00". network_fee_usd is written the same way and set on sends, which pay the network; payments you receive don't, so theirs is null.
Path
idstring RequiredThe transaction's ID, such aswtx_nXRP8NNOMtb4LySU.
Errors
- 404
not_foundNo wallet transaction with that ID belongs to your business.
Any request can also fail on its key or its body. See errors.
Request
curl "https://wallet.402pay.co/api/v1/wallet/transactions/wtx_nXRP8NNOMtb4LySU" \
-H "Authorization: Bearer $PAY402_SECRET_KEY"const response = await fetch("https://wallet.402pay.co/api/v1/wallet/transactions/wtx_nXRP8NNOMtb4LySU", {
headers: {
Authorization: `Bearer ${process.env.PAY402_SECRET_KEY}`,
},
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://wallet.402pay.co/api/v1/wallet/transactions/wtx_nXRP8NNOMtb4LySU",
headers={
"Authorization": f"Bearer {os.environ['PAY402_SECRET_KEY']}",
},
)
data = response.json()["data"]Response200 OK
{
"data": {
"id": "wtx_nXRP8NNOMtb4LySU",
"kind": "wallet_transaction",
"direction": "in",
"status": "confirmed",
"asset": "USDC",
"network": "ethereum",
"amount": "49.00",
"value_usd": "49.00",
"network_fee_usd": null,
"address": "0x9a3c416D4A81669C01f4515bBDEB93C45d3813fe",
"from_address": "0x136e44a2738dea5217e8d6745463d2a9a84d1421",
"to_address": "0x9a3c416D4A81669C01f4515bBDEB93C45d3813fe",
"tx_hash": "0xc16a611d90302ba917593ed9743f5e734a556e8d2f35bb0d60a2ca02ac99bb20",
"explorer_url": "https://etherscan.io/tx/0xc16a611d90302ba917593ed9743f5e734a556e8d2f35bb0d60a2ca02ac99bb20",
"payment_id": "pmt_QI02vLdJGd48hBbg",
"note": "",
"created_at": "2026-09-26T21:23:10.247Z"
}
}