> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oneofnone.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Issue reward grant



## OpenAPI

````yaml post /v1/rewards/{id}/grants
openapi: 3.1.0
info:
  title: One of None API
  version: 1.0.0
  description: >-
    The One of None API manages product collections, registrations, short URLs,
    team operations, and rewards used by storefront integrations including
    Shopify discounts and redemption flows.
servers:
  - url: https://api.oneofnone.io
security:
  - ApiKeyAuth: []
paths:
  /v1/rewards/{id}/grants:
    post:
      summary: Issue reward grant
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IssueRewardGrantBody'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IssueRewardGrantResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    IssueRewardGrantBody:
      type: object
      properties:
        teamAppUserId:
          type: string
          format: uuid
        sourceComponentId:
          type:
            - string
            - 'null'
          minLength: 1
          maxLength: 200
        sourceLayoutId:
          type:
            - string
            - 'null'
          format: uuid
      required:
        - teamAppUserId
      additionalProperties: false
    IssueRewardGrantResponse:
      type: object
      properties:
        grantId:
          type: string
          format: uuid
        token:
          type: string
        redirectUrl:
          type: string
        expiresAt:
          type: string
      required:
        - grantId
        - token
        - redirectUrl
        - expiresAt
      additionalProperties: false
    GenericErrorResponse:
      type: object
      properties:
        message:
          type: string
        code:
          type: string
        details:
          type: object
          additionalProperties: {}
      required:
        - message
        - code
      additionalProperties: {}
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````