· 6 years ago · Jan 29, 2020, 09:10 AM
1swagger: '2.0'
2info:
3 description: Redeem
4 version: 1.0.0
5 title: Store API
6 contact:
7 url: 'https://xsolla.com'
8 email: gc_team_w@xsolla.com
9securityDefinitions:
10 XsollaLoginAdminJWT:
11 type: apiKey
12 in: header
13 name: Authorization
14 description: 'By default, the Xsolla Login User JWT (Bearer token) is used for authorization. As an alternative, you can use the Pay Station Access Token. You can generate your own token (learn more here: https://developers.xsolla.com/api/v2/getting-started/#api_token_ui) or use the test token: Bearer eop1wd1YAtoZUPdHssHEFj9eA0HBHufR.'
15paths:
16 '/v2/game_delivery/xsolla_login/redeem_key':
17 post:
18 summary: Redeem key by client
19 description: |
20 Grants entitlement by provided key
21 produces:
22 - application/json
23 security:
24 - XsollaLoginAdminJWT: []
25 parameters:
26 - in: body
27 name: body
28 required: true
29 schema:
30 $ref: "#/definitions/RedeemKeyModel"
31 responses:
32 204:
33 description: Successful redeem
34definitions:
35 RedeemKeyModel:
36 type: object
37 required:
38 - project_id
39 - digital_content_sku
40 - key
41 - language
42 properties:
43 project_id:
44 type: integer
45 example: 37412
46 digital_content_sku:
47 type: string
48 example: 'spacewar'
49 key:
50 type: string
51 example: 'XXXX-TTTT-YYYY-ZZZZ'
52 language:
53 type: string
54 example: 'en'