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

# Unsubscribes a device

> This endpoint removes the association between a customer’s device and its active subscription.  
Once unsubscribed, the device identified by installationId will no longer 
receive notifications for the specified customer.



## OpenAPI

````yaml openapi/push-v1.json DELETE /v1/customers/{customerId}/subscription
openapi: 3.0.1
info:
  title: Push.Api
  version: v1
servers:
  - url: https://{host}/push
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /v1/customers/{customerId}/subscription:
    delete:
      tags:
        - S2S
      summary: Unsubscribes a device
      description: "This endpoint removes the association between a customer’s device and its active subscription.  \r\nOnce unsubscribed, the device identified by installationId will no longer \r\nreceive notifications for the specified customer."
      parameters:
        - name: customerId
          in: path
          description: >-
            The unique identifier of the customer whose device is being
            unsubscribed.
          required: true
          schema:
            type: string
        - name: installationId
          in: query
          description: The unique identifier of the device installation to unsubscribe.
          schema:
            type: string
      responses:
        '200':
          description: Success
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
components:
  schemas:
    Microsoft.AspNetCore.Mvc.ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        Opaque Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````