GET https://devs.ouya.tv/api/v1/discover
[ouya-store-api.git] / api / devs.ouya.tv / api-v1-credit_card.post.rst
1 ================================================
2 ``POST https://devs.ouya.tv/api/v1/credit_card``
3 ================================================
4
5 Prepare the credit card registration process and fetch a one-time token
6 for the wpstn.com (world pay) credit card processor.
7
8
9 HTTP request
10 ============
11 Protocol
12   ``https``
13 Method
14   ``POST``
15 Host
16   ``devs.ouya.tv``
17 Path
18   ``/api/v1/credit_card``
19 Headers
20   Standard headers
21
22   ``Content-Type``
23     ``application/x-www-form-urlencoded``
24 GET parameters
25   ``auth_token``
26     Same data as in standard header ``X-OUYA-AuthToken``
27
28   ``zipcode``
29     Postal code entered on the credit card form.
30 POST parameters
31   ``auth_token``:
32     Same data as in standard header ``X-OUYA-AuthToken``
33
34
35 HTTP response
36 =============
37 Status code
38   ``200 OK`` 
39 Content type
40   ``application/json; charset=utf-8``
41
42 Example:
43
44 .. include:: api-v1-credit_card.post.response.json
45    :code:
46
47 The ``one_time_token`` is used in the following ``POST`` request to
48 the URL determined in ``redirect_url``.
49
50 See `POST https://ott9.wpstn.com/live/`_.