Some details info
[ouya-store-api.git] / api / devs.ouya.tv / api-v1-wallet.rst
1 ==========================================
2 ``GET https://devs.ouya.tv/api/v1/wallet``
3 ==========================================
4
5 Get the account balance and currency.
6
7 Usage
8 =====
9 After user registration, before the credit card input form is shown.
10
11
12 HTTP request
13 ============
14 Protocol
15   ``https``
16 Method
17   ``GET``
18 Host
19   ``devs.ouya.tv``
20 Path
21   ``/api/v1/wallet``
22 Headers
23   Standard headers
24 GET parameters
25   ``auth_token``
26     Same data as in standard header ``X-OUYA-AuthToken``
27
28
29 HTTP response
30 =============
31 Status code
32   ``200 OK`` 
33 Content type
34   ``application/json; charset=utf-8``
35
36
37 Example without credit card data
38 --------------------------------
39 .. include:: api-v1-wallet.response.json
40    :code:
41
42 FIXME: Find out if we get that response when giving a dummy number
43 during registration (4111 1111 1111 1111).
44
45
46 Example with credit card data
47 -----------------------------
48 .. include:: api-v1-wallet.response-2.json
49    :code:
50
51 FIXME: Find out if we can disable credit card input by setting
52 ``requiresPaymentMethod`` to ``false``.