{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","examples":{"codes":[{"language":"text","code":""}]},"method":"get","params":[],"results":{"codes":[{"status":200,"language":"json","code":"","name":""}]},"settings":""},"next":{"description":"","pages":[]},"title":"Lookup User","type":"endpoint","slug":"lookup-user","excerpt":"","body":"#Look up a MassPay user by ID\n\n## Building the request\n\nWhen building your request you'll need to use 1 field:\n- `walletId` - The identifier for the wallet\n\n## API Endpoint\nhttps://api.sendwyre.com/v2/wallet/{walletId}\n\n## Params\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"key\",\n    \"h-1\": \"type\",\n    \"h-2\": \"description\",\n    \"h-3\": \"required\",\n    \"0-0\": \"walletId\",\n    \"0-1\": \"String\",\n    \"0-2\": \"id of the wallet\",\n    \"0-3\": \"true\"\n  },\n  \"cols\": 4,\n  \"rows\": 1\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -XGET 'https://api.sendwyre.com/v2/wallet/{wallet-id}' \\\\\\n  -H \\\"X-Api-Key: {api-key}\\\" \\\\\\n  -H \\\"X-Api-Signature: {signature}\\\" \\\\\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n   “owner”: “account:[account-ID]“,\\n   “callbackUrl”: null,\\n   “depositAddresses”: {\\n       “BTC”: “1FNAkNVt3gXdS3PZ1tDvetbcafKPsJPQTG”\\n   },\\n   “totalBalances”: {\\n       “USD”: 4.96\\n   },\\n   “availableBalances”: {\\n       “USD”: 4.96\\n   },\\n   “verificationData”: null,\\n   “balances”: {\\n       “USD”: 4.96\\n   },\\n   “srn”: “wallet:[Wallet-ID]“,\\n   “createdAt”: 1497861843000,\\n   “notes”: “test1”,\\n   “name”: “richard”,\\n   “id”: “[Wallet-ID]”\\n}\",\n      \"language\": \"json\",\n      \"name\": \"200 ok\"\n    }\n  ]\n}\n[/block]\n\n#Look up a MassPay user by name\n\n## Building the request\n\nWhen building your request you'll need to use 1 field:\n- `name` - Your identifier for the user\n\n## API Endpoint\nhttps://api.sendwyre.com/v2/wallet\n\n## Params\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"key\",\n    \"h-1\": \"type\",\n    \"h-2\": \"description\",\n    \"h-3\": \"required\",\n    \"0-0\": \"name\",\n    \"0-1\": \"String\",\n    \"0-2\": \"Your identifier\",\n    \"0-3\": \"true\"\n  },\n  \"cols\": 4,\n  \"rows\": 1\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -XGET 'https://api.sendwyre.com/v2/wallet' \\\\\\n  -H \\\"X-Api-Key: {api-key}\\\" \\\\\\n  -H \\\"X-Api-Signature: {signature}\\\" \\\\\\n  -d name={your-identifier}\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]","updates":[],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"56eb341d9b984b29002136ae","category":{"sync":{"isSync":false,"url":""},"pages":["56e9fea046ea9b0e001ddda0","56e9fecacda7120e00b5b13c","56ea01757e21ac0e00131024","56ea0a0679708c0e002b6031","56ea0b117e21ac0e0013102f","56ea13b0cf35bf0e00adb8df","56eb33659b984b29002136a8","56eb341d9b984b29002136ae","56eb342f3d6fdb3200a72302"],"title":"Wallet Management","slug":"beta","order":9,"from_sync":false,"reference":false,"_id":"56e9fe9779708c0e002b6026","version":"55909cb433090f0d004d25d8","__v":9,"createdAt":"2016-03-17T00:47:19.023Z","project":"558b53f749dc4f0d00517de0"},"user":"54f5fae5b175300d00d44b2f","version":{"version":"2","version_clean":"2.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["55909cb433090f0d004d25d9","55909cb433090f0d004d25da","55909cb433090f0d004d25db","55909cb433090f0d004d25dc","56c72c00197f9f1700c811db","56c72df5b3625c0d00422c9e","56e1b646150ed52d0062c652","56e9fe9779708c0e002b6026","57312dc94245100e001743f4","57646a570742400e00c04701","5894c96f4d9c7e27002e42ba"],"_id":"55909cb433090f0d004d25d8","project":"558b53f749dc4f0d00517de0","releaseDate":"2015-06-29T01:17:40.214Z","createdAt":"2015-06-29T01:17:40.214Z","forked_from":"558b53f749dc4f0d00517de3","__v":8},"__v":4,"createdAt":"2016-03-17T22:47:57.976Z","githubsync":"","parentDoc":null,"project":"558b53f749dc4f0d00517de0"}
#Look up a MassPay user by ID ## Building the request When building your request you'll need to use 1 field: - `walletId` - The identifier for the wallet ## API Endpoint https://api.sendwyre.com/v2/wallet/{walletId} ## Params [block:parameters] { "data": { "h-0": "key", "h-1": "type", "h-2": "description", "h-3": "required", "0-0": "walletId", "0-1": "String", "0-2": "id of the wallet", "0-3": "true" }, "cols": 4, "rows": 1 } [/block] [block:code] { "codes": [ { "code": "curl -v -XGET 'https://api.sendwyre.com/v2/wallet/{wallet-id}' \\\n -H \"X-Api-Key: {api-key}\" \\\n -H \"X-Api-Signature: {signature}\" \\", "language": "curl" } ] } [/block] [block:code] { "codes": [ { "code": "{\n “owner”: “account:[account-ID]“,\n “callbackUrl”: null,\n “depositAddresses”: {\n “BTC”: “1FNAkNVt3gXdS3PZ1tDvetbcafKPsJPQTG”\n },\n “totalBalances”: {\n “USD”: 4.96\n },\n “availableBalances”: {\n “USD”: 4.96\n },\n “verificationData”: null,\n “balances”: {\n “USD”: 4.96\n },\n “srn”: “wallet:[Wallet-ID]“,\n “createdAt”: 1497861843000,\n “notes”: “test1”,\n “name”: “richard”,\n “id”: “[Wallet-ID]”\n}", "language": "json", "name": "200 ok" } ] } [/block] #Look up a MassPay user by name ## Building the request When building your request you'll need to use 1 field: - `name` - Your identifier for the user ## API Endpoint https://api.sendwyre.com/v2/wallet ## Params [block:parameters] { "data": { "h-0": "key", "h-1": "type", "h-2": "description", "h-3": "required", "0-0": "name", "0-1": "String", "0-2": "Your identifier", "0-3": "true" }, "cols": 4, "rows": 1 } [/block] [block:code] { "codes": [ { "code": "curl -v -XGET 'https://api.sendwyre.com/v2/wallet' \\\n -H \"X-Api-Key: {api-key}\" \\\n -H \"X-Api-Signature: {signature}\" \\\n -d name={your-identifier}", "language": "curl" } ] } [/block]