Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swagger: '2.0'
- info:
- description: Redeem
- version: 1.0.0
- title: Store API
- contact:
- url: 'https://xsolla.com'
- email: gc_team_w@xsolla.com
- securityDefinitions:
- XsollaLoginAdminJWT:
- type: apiKey
- in: header
- name: Authorization
- 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.'
- paths:
- '/v2/game_delivery/xsolla_login/redeem_key':
- post:
- summary: Redeem key by client
- description: |
- Grants entitlement by provided key
- produces:
- - application/json
- security:
- - XsollaLoginAdminJWT: []
- parameters:
- - in: body
- name: body
- required: true
- schema:
- $ref: "#/definitions/RedeemKeyModel"
- responses:
- 204:
- description: Successful redeem
- definitions:
- RedeemKeyModel:
- type: object
- required:
- - project_id
- - digital_content_sku
- - key
- - language
- properties:
- project_id:
- type: integer
- example: 37412
- digital_content_sku:
- type: string
- example: 'spacewar'
- key:
- type: string
- example: 'XXXX-TTTT-YYYY-ZZZZ'
- language:
- type: string
- example: 'en'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement