{"_id":"56326e9fdf556c0d00cd08e2","parentDoc":null,"project":"544fc17e698ab40800b4f891","category":{"_id":"56326e9ddf556c0d00cd08d2","project":"544fc17e698ab40800b4f891","version":"56326e9cdf556c0d00cd08ca","pages":["56326e9fdf556c0d00cd08e0","56326e9fdf556c0d00cd08e1","56326e9fdf556c0d00cd08e2","56326e9fdf556c0d00cd08e3","56326e9fdf556c0d00cd08e4","56326e9fdf556c0d00cd08e5","56326e9fdf556c0d00cd08e6","56326e9fdf556c0d00cd08e7","56326e9fdf556c0d00cd08e8"],"__v":1,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-01T08:07:30.539Z","from_sync":false,"order":8,"slug":"wallets","title":"Wallets"},"editedParams2":true,"__v":6,"version":{"_id":"56326e9cdf556c0d00cd08ca","project":"544fc17e698ab40800b4f891","__v":2,"createdAt":"2015-10-29T19:08:12.724Z","releaseDate":"2015-10-29T19:08:12.724Z","categories":["56326e9ddf556c0d00cd08cb","56326e9ddf556c0d00cd08cc","56326e9ddf556c0d00cd08cd","56326e9ddf556c0d00cd08ce","56326e9ddf556c0d00cd08cf","56326e9ddf556c0d00cd08d0","56326e9ddf556c0d00cd08d1","56326e9ddf556c0d00cd08d2","56326e9ddf556c0d00cd08d3","56326e9ddf556c0d00cd08d4","56d942ac337fd11300d6a251"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"collector","version_clean":"2.1.0","version":"2.1"},"editedParams":true,"user":"544fc065698ab40800b4f888","updates":["55a2dca59c68de2b00206d42","5698fabdd36db20d00ddba4c","56e81cfd1bf35022003ddd98","57c7c75759cd4b0e00b88865","58327bb09e67ee0f00fd44b8","58441cd54263680f00c99f59","59d3d5e54a34d2001add1bf7"],"next":{"pages":[],"description":""},"createdAt":"2015-05-01T08:18:39.622Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"get","results":{"codes":[{"status":200,"language":"json","code":"{\n   \"crypto-accounts\":[\n      {\n         \"id\":\"2r45ab4\",\n         \"name\":\"Default Account\",\n         \"currency\":\"BTC\",\n         \"balance\":\"0.00030000\",\n         \"pending_balance\":\"0.00000000\",\n         \"default_address\":\"3MTaArYfiHQK6jwjYJm17jsKDU2VQStw7d\"\n      }\n   ]\n}","name":""}]},"settings":"","examples":{"codes":[{"language":"python","code":"import requests\n\nTOKEN = 'YOUR TOKEN'\nurl = 'https://coins.ph/api/v3/crypto-accounts'\n\nheaders = {\n    'Authorization': 'Bearer {}'.format(TOKEN),\n    'Content-Type': 'application/json;charset=UTF-8',\n    'Accept': 'application/json'\n}\n\nrequests.get(url, headers=headers)"}]},"auth":"required","params":[{"_id":"554336df62b30e0d004b16c6","ref":"","in":"query","required":false,"desc":"Specifies the currency of the account to retrieve. Valid values are `BTC` and `PBTC`. Optional.","default":"","type":"string","name":"currency"}],"url":"/api/v3/crypto-accounts/"},"isReference":false,"order":2,"body":"This endpoint enables users to see details about their accounts. Accounts hold the user's balance, such as BTC or PHP. A list of the user's accounts will be returned.\n\n## Properties\n\n* **id** - Unique identifier for the account.\n* **name** - Descriptive name for the account.\n* **currency** - The type of currency that the account can hold, such as `BTC` and `PBTC`.\n* **balance** - The current balance that the account has.\n* **pending_balance** - Incoming pending balance.\n* **default_address** - The default address used when the account is specified as a recipient.","excerpt":"Retrieve existing crypto-accounts","slug":"crypto-accounts","type":"endpoint","title":"crypto-accounts"}

getcrypto-accounts

Retrieve existing crypto-accounts

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

currency:
string
Specifies the currency of the account to retrieve. Valid values are `BTC` and `PBTC`. Optional.

Examples


Result Format


Documentation

This endpoint enables users to see details about their accounts. Accounts hold the user's balance, such as BTC or PHP. A list of the user's accounts will be returned. ## Properties * **id** - Unique identifier for the account. * **name** - Descriptive name for the account. * **currency** - The type of currency that the account can hold, such as `BTC` and `PBTC`. * **balance** - The current balance that the account has. * **pending_balance** - Incoming pending balance. * **default_address** - The default address used when the account is specified as a recipient.