> ## 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 by VIN

> Cancel policy by VIN



## OpenAPI

````yaml /cartpl-api-reference-v2/openapi.json post /v2/clients/policies/cancellation
openapi: 3.0.1
info:
  title: OpenAPI For Motor Insurance
  description: API's that you need to use to issue insurance policies to your clients
  license:
    name: MIT
  version: 2.0.0
servers:
  - url: https://sandbox.yasmina.ai/api
    description: Sandbox
  - url: https://production.yasmina.ai/api
    description: Production
security:
  - bearerAuth: []
paths:
  /v2/clients/policies/cancellation:
    post:
      tags:
        - Policies
      summary: Cancel policy by VIN
      description: Cancel policy by VIN
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                cancellation_document:
                  type: string
                  description: >-
                    Supporting document of why policy was deleted. Could be
                    resignation document.
                  format: binary
      responses:
        '204':
          description: Cancellation success
        '400':
          description: Bad request
          content:
            application/json:
              example:
                code: '40010'
                message: Policy is already canceled
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: '40010'
                  message:
                    type: string
                    example: 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

````