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

# Issue the policy

> Issues the company's policy from one of the quotes it was given: the employees as they were priced, the provider that priced them, and its total as the premium. A company has one policy waiting to be paid for at a time; issuing again before payment replaces it.



## OpenAPI

````yaml /medical-api-reference/openapi.json post /policies
openapi: 3.0.1
info:
  title: OpenAPI For SME Medical Insurance
  description: API's that you need to use to request insurance(s) for your clients
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://production.yasmina.ai/api/v1/medical
  - url: https://sandbox.yasmina.ai/api/v1/medical
security:
  - bearerAuth: []
paths:
  /policies:
    post:
      tags:
        - Policies
      summary: Issue the policy
      description: >-
        Issues the company's policy from one of the quotes it was given: the
        employees as they were priced, the provider that priced them, and its
        total as the premium. A company has one policy waiting to be paid for at
        a time; issuing again before payment replaces it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - quote_request_id
                - quote_price_id
              properties:
                quote_request_id:
                  type: string
                  format: uuid
                  description: The `id` of the quote request.
                quote_price_id:
                  type: string
                  format: uuid
                  description: The `quote_price_id` of the chosen provider's quote.
                redirect_url:
                  type: string
                  description: >-
                    Where to send the customer once they have paid. `policyID`
                    in it is replaced with the policy's id.
                  example: https://www.example.com?yasmina_policy_id=policyID
      responses:
        '201':
          description: The company's policy, pending payment
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
components:
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                example: '40101'
              message:
                type: string
                example: Unauthenticated
    UnprocessableEntity:
      description: Unprocessable Entity
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````