# GetPraiseTypesAsync

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1/praises/types:
    get:
      summary: GetPraiseTypesAsync
      deprecated: false
      description: ดึงรายการ Praise ที่ active ใช้งานได้
      operationId: GetPraiseTypesAsync
      tags:
        - empeo/Engagement/Praise
        - Praise
      parameters:
        - name: companyName
          in: query
          description: ''
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Success response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResultBffPraiseTypeList'
          headers: {}
          x-apidog-name: ''
        '204':
          description: No Content
          headers: {}
          x-apidog-name: ''
        '403':
          description: Invalid access rights
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ApiResultBffString'
          headers: {}
          x-apidog-name: ''
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: ''
      security:
        - bearerAuth: []
          x-apidog:
            schemeGroups:
              - id: 9XhEIDhrC7bJ1gqpNqjYw
                schemeIds:
                  - bearerAuth
            required: true
            use:
              id: 9XhEIDhrC7bJ1gqpNqjYw
            scopes:
              9XhEIDhrC7bJ1gqpNqjYw:
                bearerAuth: []
      x-codeSamples:
        - lang: cURL
          source: >
            curl -X GET
            "https://api.gofive.co.th/empeo/api/v1/praises/types?companyName=Acme"
            \
              -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
      x-apidog-folder: empeo/Engagement/Praise
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-27378680-run
components:
  schemas:
    ApiResultBffPraiseTypeList:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
        errorList:
          type: array
          items: &ref_1
            $ref: '#/components/schemas/PraiseTypeBffModel'
        totals:
          type: integer
          nullable: true
        data:
          type: array
          items: *ref_1
      x-apidog-orders:
        - statusCode
        - message
        - error
        - errorList
        - totals
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    PraiseTypeBffModel:
      type: object
      properties:
        praiseId:
          type: integer
          description: รหัส Praise
        praiseName:
          type: string
          description: ชื่อ Praise
        emotion:
          type: string
          description: อารมณ์/อีโมจิของ Praise
        tokenId:
          type: integer
          description: Token Id หลัก
        tokenName:
          type: string
          description: ชื่อ Token หลัก
        tokenAmount:
          type: integer
          description: จำนวน Token หลัก
        description:
          type: string
          description: รายละเอียดของ Praise
        isOfferToken:
          type: boolean
          description: เปิดใช้งานการให้ Token เพิ่มเติมหรือไม่
        offerTokenId:
          type: integer
          description: Token Id ที่เสนอให้เพิ่มเติม (ถ้ามี)
          nullable: true
        offerTokenName:
          type: string
          description: ชื่อ Token ที่เสนอให้เพิ่มเติม
        offerTokenAmount:
          type: integer
          description: จำนวน Token ที่เสนอให้เพิ่มเติม
        isOnlyRewardManager:
          type: boolean
          description: จำกัดให้ใช้เฉพาะ Reward Manager หรือไม่
        isActive:
          type: boolean
          description: สถานะการใช้งาน
      x-apidog-orders:
        - praiseId
        - praiseName
        - emotion
        - tokenId
        - tokenName
        - tokenAmount
        - description
        - isOfferToken
        - offerTokenId
        - offerTokenName
        - offerTokenAmount
        - isOnlyRewardManager
        - isActive
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ApiResultBffString:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
        errorList:
          type: string
        totals:
          type: integer
          nullable: true
        data:
          type: string
      x-apidog-orders:
        - statusCode
        - message
        - error
        - errorList
        - totals
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: ใส่ JWT Token ในรูปแบบ Bearer {token}
    bearer:
      type: bearer
      scheme: bearer
servers:
  - url: https://api.gofive.co.th
    description: Production
security:
  - bearerAuth: []
    x-apidog:
      schemeGroups:
        - id: uyL_cJmK7q60QJZRTi5ot
          schemeIds:
            - bearerAuth
      required: true
      use:
        id: uyL_cJmK7q60QJZRTi5ot
      scopes:
        uyL_cJmK7q60QJZRTi5ot:
          bearerAuth: []

```
