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

# Unenroll Merchant

> Unenroll one or more descriptors. Pass `descriptor_ids` (obtain ids from `GET /api/v2/descriptors`); a single legacy `descriptor_id` is also accepted. Descriptors that were still `Pending` (never live with the provider) are removed immediately and returned under `removed`. Descriptors that were live are marked `PendingRemoval` — a visible "removing" state on the API and dashboard — and returned under `queued`; Chargeblast completes the provider-side de-registration (Ethoca ~48 hours, RDR ~2 weeks, CDRN ~24 hours), after which the record is deleted and your settings reflect the removal. Any ids that do not belong to your account are returned under `notFound`.



## OpenAPI

````yaml post /api/unenroll
openapi: 3.0.1
info:
  title: Chargeblast API
  version: 0.1.0
servers:
  - url: https://api.chargeblast.com
security: []
tags:
  - name: Credit Requests
  - name: Sync Data
  - name: Alerts
  - name: Disputes
  - name: Enrollment
paths:
  /api/unenroll:
    post:
      tags:
        - Enrollment
      summary: Unenroll Merchant
      description: >-
        Unenroll one or more descriptors. Pass `descriptor_ids` (obtain ids from
        `GET /api/v2/descriptors`); a single legacy `descriptor_id` is also
        accepted. Descriptors that were still `Pending` (never live with the
        provider) are removed immediately and returned under `removed`.
        Descriptors that were live are marked `PendingRemoval` — a visible
        "removing" state on the API and dashboard — and returned under `queued`;
        Chargeblast completes the provider-side de-registration (Ethoca ~48
        hours, RDR ~2 weeks, CDRN ~24 hours), after which the record is deleted
        and your settings reflect the removal. Any ids that do not belong to
        your account are returned under `notFound`.
      operationId: unenroll
      parameters:
        - name: X-API-Key
          required: true
          in: header
          schema:
            type: string
          description: Your API key. Sent in the `X-API-Key` header.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UnenrollMerchantRequest'
        required: true
      responses:
        '200':
          description: Unenrollment queued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnenrollMerchantResponse'
        '400':
          description: Validation failed. No descriptor ids were supplied.
        '401':
          description: Missing or invalid API key.
components:
  schemas:
    UnenrollMerchantRequest:
      type: object
      description: >-
        Descriptors to unenroll. Supply `descriptor_ids`; a single legacy
        `descriptor_id` is also accepted and folded into the list.
      properties:
        descriptor_ids:
          type: array
          items:
            type: string
          description: >-
            Descriptor ids to unenroll, e.g. `desc_xxxxxxxxxxxxx`. Obtain them
            from `GET /api/v2/descriptors`.
        descriptor_id:
          type: string
          nullable: true
          description: Legacy single descriptor id. Prefer `descriptor_ids`.
    UnenrollMerchantResponse:
      type: object
      required:
        - removed
        - queued
        - skipped
        - notFound
        - unenrolled
      properties:
        removed:
          type: array
          items:
            type: string
          description: >-
            Descriptor ids that were still `Pending` (never live with the
            provider) and so were removed immediately.
        queued:
          type: array
          items:
            type: string
          description: >-
            Descriptor ids that were live and are now marked `PendingRemoval`.
            They stay visible until Chargeblast confirms provider
            de-registration, then they are removed.
        skipped:
          type: array
          items:
            type: string
          description: >-
            Owned descriptor ids left untouched because their status was not
            actionable (`Processing` / `InReview`, or already-terminal
            `Disabled` / `Rejected` / `Surpressed`). Distinct from `notFound`.
        notFound:
          type: array
          items:
            type: string
          description: Requested ids that did not match a descriptor on your account.
        unenrolled:
          type: array
          items:
            type: string
          description: >-
            Deprecated: use `removed` and `queued`. Retained as their union (all
            descriptor ids acted on) for backward compatibility.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.