1 =======================================================
2 ``GET https://devs.ouya.tv/api/v1/games/xxx/purchases``
3 =======================================================
5 Check which features have been bought in an app (if the app has been
8 Each game may have multiple products that can be bought.
9 One of them may be the "promotedProduct" in the discover section, and
10 that one can be bought in the discover store / play menu app details.
15 - When an app/game is featured and shown on the main menu ("home"),
16 it is checked if the app has already been purchased.
17 - When opening the game details the "buy" button is shown if the
18 "promotedProduct" is in the list of purchases
19 - When a game starts it checks if it has been bought.
31 ``/api/v1/games/xxx/purchases``
36 Example: ``/api/v1/games/com.ChrisChung.CatlateralDamage/purchases``
41 Same as ``X-OUYA-AuthToken``
43 ``com.ChrisChung.CatlateralDamage``
45 Same as the one in the path.
55 ``application/json; charset=utf-8``
57 The response is a JSON objec containing three properties:
60 Base 64 encoded initialization vector for encryption
62 Base 64 encoded FIXME. Must be 128/192/256 bits long.
64 Base64 encoded encrypted data
66 The decrypted ``blob`` contains again a JSON object with three properties:
72 This blob is again base64-encoded JSON and contains the actual data:
73 A JSON with a single property "purchases" whose value is
74 an array of receipts/purchases.
76 Each receipt has the following properties:
79 Required. Milliseconds.
81 Optional. Milliseconds.
83 Product key. Required. Alternative name: ``sku``.
87 Transaction UUID. Required.
93 Optional. Default ``USD``.
100 .. include:: api-v1-games-xxx-purchases.response.json
103 Decrypted receipt list:
105 .. include:: api-v1-games-xxx-purchases.response-decrypted.json