# CreatePraiseRewardManagerAsync

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1/praises/reward-manager:
    post:
      summary: CreatePraiseRewardManagerAsync
      deprecated: false
      description: ออกเอกสาร Praise สำหรับ Reward Manager (รองรับหลายผู้รับ)
      operationId: CreatePraiseRewardManagerAsync
      tags:
        - empeo/Engagement/Praise
        - Praise
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PraiseRewardManagerRequestBffModel'
            examples: {}
      responses:
        '200':
          description: Success response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResultBffPraiseRewardManagerResult'
          headers: {}
          x-apidog-name: ''
        '400':
          description: Bad Request
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ApiResultBffString'
          headers: {}
          x-apidog-name: ''
        '403':
          description: Invalid access rights
          content:
            application/json:
              schema: *ref_0
          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: QiyZABetp17C78S1wAPdk
                schemeIds:
                  - bearerAuth
            required: true
            use:
              id: QiyZABetp17C78S1wAPdk
            scopes:
              QiyZABetp17C78S1wAPdk:
                bearerAuth: []
      x-codeSamples:
        - lang: cURL
          source: >
            curl -X POST
            "https://api.gofive.co.th/empeo/api/v1/praises/reward-manager" \
              -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
              -H "Content-Type: application/json" \
              -d '{
                "companyName": "Acme",
                "praiseName": "Thank you",
                "receiverEmployeeNo": ["EMP001", "EMP002"],
                "description": "Example",
                "isOfferToken": false,
                "offerTokenName": "",
                "offerTokenAmount": 0,
                "attachments": []
              }'
      x-apidog-folder: empeo/Engagement/Praise
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-27378681-run
components:
  schemas:
    PraiseRewardManagerRequestBffModel:
      type: object
      properties:
        companyName:
          type: string
          description: ชื่อบริษัทที่ใช้หา CompanyId
        praiseName:
          type: string
          description: ชื่อ Praise (รองรับ Name/Name_EN)
        receiverEmployeeNo:
          type: array
          items:
            type: string
          description: รายชื่อพนักงานผู้รับ (EmployeeNo) ในบริษัทเดียวกัน
        description:
          type: string
          description: รายละเอียดที่ใช้ในเอกสาร
        isOfferToken:
          type: boolean
          description: เปิดใช้งานการให้ Token หรือไม่
        offerTokenName:
          type: string
          description: ชื่อ Token (รองรับ Name/Name_EN)
        offerTokenAmount:
          type: integer
          description: จำนวน Token ที่ให้
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/EngageTransactionAttachmentModel'
          description: รายการไฟล์แนบ
      x-apidog-orders:
        - companyName
        - praiseName
        - receiverEmployeeNo
        - description
        - isOfferToken
        - offerTokenName
        - offerTokenAmount
        - attachments
      required:
        - companyName
        - praiseName
        - receiverEmployeeNo
        - description
        - isOfferToken
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    EngageTransactionAttachmentModel:
      type: object
      properties:
        engageTransactionId:
          type: integer
          description: รหัสธุรกรรม (ถ้ามี)
        attachmentNo:
          type: integer
          description: ลำดับไฟล์แนบ
        attachmentMimeType:
          type: string
          description: MimeType ของไฟล์
        attachmentFilename:
          type: string
          description: ชื่อไฟล์
        attachmentSize:
          type: integer
          description: ขนาดไฟล์ (bytes)
        attachmentURL:
          type: string
          description: URL ไฟล์แนบ
        attachmentThumbnailURL:
          type: string
          description: URL thumbnail
      x-apidog-orders:
        - engageTransactionId
        - attachmentNo
        - attachmentMimeType
        - attachmentFilename
        - attachmentSize
        - attachmentURL
        - attachmentThumbnailURL
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ApiResultBffPraiseRewardManagerResult:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
        errorList: &ref_1
          $ref: '#/components/schemas/PraiseRewardManagerResultBffModel'
        totals:
          type: integer
          nullable: true
        data: *ref_1
      x-apidog-orders:
        - statusCode
        - message
        - error
        - errorList
        - totals
        - data
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    PraiseRewardManagerResultBffModel:
      type: object
      properties:
        docNo:
          type: string
        documentStatus:
          type: integer
        totalReceivers:
          type: integer
      x-apidog-orders:
        - docNo
        - documentStatus
        - totalReceivers
      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: []

```
