# Allocate Coins 

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/enkash-coins/allocate-coin:
    post:
      summary: 'Allocate Coins '
      deprecated: false
      description: >-
        This API facilitates the allocation of Coins according to the event
        configured.
      tags:
        - Rewards & Incentives/APIs - Reward/Point Management
      parameters:
        - name: authorization
          in: header
          description: ''
          required: true
          example: Bearer oBPOndfOxpjOvReBnipyNdUuqB4
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                companyId:
                  type: string
                  description: Company ID of the user to which coins are allocated
                event:
                  type: string
                  description: Event Name
                requestId:
                  type: string
                  description: Unique Request ID For coins allocation
                userId:
                  type: string
                  description: User ID of user for which coins are allocated
              required:
                - companyId
                - event
                - requestId
                - userId
              x-apidog-orders:
                - companyId
                - event
                - requestId
                - userId
            example:
              companyId: CEK0TCW2W8
              event: REFERRAL_EVENT
              requestId: COIN_REQ1234567
              userId: EKQZVMQK
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  payload:
                    type: string
                  response_code:
                    type: integer
                  response_message:
                    type: string
                required:
                  - payload
                  - response_code
                  - response_message
                x-apidog-orders:
                  - payload
                  - response_code
                  - response_message
              example:
                payload: Successfully allocated enkash Coins
                response_code: 0
                response_message: Success
          headers: {}
          x-apidog-name: Success
      security:
        - bearer: []
      x-apidog-folder: Rewards & Incentives/APIs - Reward/Point Management
      x-apidog-status: developing
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-9796917-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
