> ## 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.

# Cancel policy

> Cancel a Life S&P policy (e.g., within cooling-off period).



## OpenAPI

````yaml /life-snp/openapi.json post /policies/{lifePolicy}/cancellation
openapi: 3.0.1
info:
  title: OpenAPI For Life Savings & Protection (Bank)
  description: >-
    APIs used by a bank channel to quote, issue, cancel, and claim on Life
    Savings & Protection policies.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://sandbox.yasmina.ai/api/v1/life-snp
  - url: https://production.yasmina.ai/api/v1/life-snp
security:
  - bearerAuth: []
paths:
  /policies/{lifePolicy}/cancellation:
    post:
      tags:
        - Policies
      summary: Cancel policy
      description: Cancel a Life S&P policy (e.g., within cooling-off period).
      parameters:
        - required: true
          name: lifePolicy
          in: path
          schema:
            type: integer
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                cancellation_document:
                  type: string
                  format: binary
                  description: Supporting document stating reason for cancellation.
      responses:
        '204':
          description: Cancellation success
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: '40010'
                  message:
                    type: string
                    example: Policy is already canceled
              example:
                code: '40010'
                message: Policy is already canceled
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                example: '40101'
              message:
                type: string
                example: Unauthenticated
    NotFound:
      description: Record not found
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                example: '40401'
              message:
                type: string
                example: Not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````