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

# Suspendre un compte

> Suspends an account you provisioned, right away. Inbound and outbound calls, outgoing SMS and the AI receptionist stop for every member of the account: each member's status becomes `SUSPENDED`, and their eSIM lines are suspended. The account keeps its numbers, its eSIMs and its history, and its billing does not change. Incoming SMS are stored without any notification. Idempotent: suspending an account that is already suspended changes nothing and sends no second webhook. Allo sends `partner.account.suspended` to your webhook endpoint. Requires the `PARTNER` scope.

> [!NOTE]
>
> **Scope requis :** `PARTNER`

Suspend immédiatement un compte que vous avez provisionné, par exemple quand votre client ne vous paie plus. Le compte garde ses numéros, ses eSIM et son historique : [Réactiver un compte](https://help.withallo.com/fr/v2/api-reference/white-label/resume-account.md) remet tout en place. La réponse renvoie le compte avec `status: SUSPENDED`.

## Ce qui s'arrête

La suspension s'applique à tous les membres et à tous les numéros du compte. Le `status` de chaque membre passe à `SUSPENDED`, et un membre que vous [ajoutez](https://help.withallo.com/fr/v2/api-reference/white-label/add-member.md) pendant la suspension est `SUSPENDED` dès le départ.

* **Les appels entrants** sont refusés : ils ne sonnent ni sur les apps ni sur les eSIM.
* **Les appels sortants** passés depuis les apps Allo diffusent un court message à la place, qui indique que la ligne est suspendue et invite à contacter le fournisseur. Le message ne cite pas Allo.
* **Les SMS sortants** sont refusés avec `403 ACCOUNT_SUSPENDED`. Sur `/v2/sms`, l'endpoint utilisé par les apps Allo, le code d'erreur est `Allo.9`.
* **La réceptionniste IA** ne répond plus, car les appels entrants s'arrêtent avant de l'atteindre.
* **Les lignes eSIM** sont suspendues auprès du réseau mobile, puisque leur titulaire est `SUSPENDED`. Cela prend en général quelques secondes. Si le réseau ne confirme pas tout de suite, Allo réessaie toutes les 5 minutes. D'ici là, les appels et SMS sur l'eSIM elle-même peuvent encore passer.

## Ce qui reste

* Les numéros du compte, ses eSIM et son historique d'appels et de messages.
* **Les SMS entrants** sont enregistrés dans la conversation, sans notification ni réponse automatique.
* **La connexion.** Les membres peuvent toujours ouvrir les apps Allo et consulter leur historique. Ils ne peuvent ni appeler ni envoyer de SMS.
* **La facturation ne change pas.** L'abonnement que vous payez pour le compte continue et se renouvelle normalement. Pour arrêter la facturation, [désactivez le compte](https://help.withallo.com/fr/v2/api-reference/partner/delete-account.md).

## Webhook et idempotence

Allo envoie [`partner.account.suspended`](https://help.withallo.com/fr/v2/api-reference/webhooks/event-catalog#partneraccountsuspended) à votre propre endpoint webhook, pas à celui du compte. Sans endpoint webhook, lisez le statut avec [Obtenir un compte](https://help.withallo.com/fr/v2/api-reference/partner/get-account.md).

La requête est idempotente. Suspendre un compte déjà suspendu ne change rien, et Allo n'envoie pas de second webhook.

`{id}` est l'identifiant du compte renvoyé par Créer un compte. Un compte que votre API key n'a pas créé, ou déjà désactivé, renvoie `404 PARTNER_ACCOUNT_NOT_FOUND`.


## OpenAPI

````yaml POST /v2/api/partner/accounts/{id}/suspend
openapi: 3.0.3
info:
  title: Allo API
  description: >-
    Allo API provides programmatic access to your Allo account, allowing you to
    manage webhooks, retrieve calls and contacts, and send SMS messages.


    All requests to `/v1/api/**` endpoints automatically go through quota
    checking and scope validation.
  version: 1.0.0
  contact:
    name: Allo Support
servers:
  - url: https://api.withallo.com
    description: Production server
security: []
tags:
  - name: Summary Templates
    description: >-
      Manage call summary templates that control how AI-generated call summaries
      are structured for your team.
  - name: Webhooks
    description: >-
      Manage webhook endpoints to receive real-time notifications about events
      in your Allo account. Each endpoint subscribes to one or more event topics
      and is verified with a signing secret.
  - name: Calls
    description: >-
      Retrieve and search call records with filtering and pagination. Filter
      calls by your Allo phone number.
  - name: Contacts
    description: >-
      Search and retrieve contact information with sorting and pagination.
      Includes engagement level tracking.
  - name: SMS
    description: Send SMS messages to phone numbers using your Allo numbers.
  - name: Fax
    description: >-
      Send a PDF as a fax from an Allo line with fax turned on. Sent and
      received faxes appear in conversation items.
  - name: Phone Numbers
    description: Retrieve information about your Allo phone numbers.
  - name: Analytics
    description: Pre-computed call metrics, team performance, and outbound dial funnel
  - name: CRM
    description: Manage people, companies, and deals in your CRM.
  - name: Notes
    description: >-
      Internal team notes on conversations and CRM people, with @mention
      support. Notes are never visible to the contact.
  - name: Threads
    description: >-
      Team discussion threads attached to a conversation item (call, SMS, or
      conversation note). One thread per item.
  - name: AI Receptionist
    description: >-
      Read and write the AI receptionist configuration of a phone line: business
      details, voice, prompt, capabilities, business hours, transfer rules,
      scheduling calendars and knowledge sources.
  - name: Inboxes
    description: >-
      Personal inboxes: saved views of one or more lines, optionally narrowed to
      phone-menu options, with their own filters and notification setting.
paths:
  /v2/api/partner/accounts/{id}/suspend:
    post:
      tags:
        - White label
      summary: Suspend account
      description: >-
        Suspends an account you provisioned, right away. Inbound and outbound
        calls, outgoing SMS and the AI receptionist stop for every member of the
        account: each member's status becomes `SUSPENDED`, and their eSIM lines
        are suspended. The account keeps its numbers, its eSIMs and its history,
        and its billing does not change. Incoming SMS are stored without any
        notification. Idempotent: suspending an account that is already
        suspended changes nothing and sends no second webhook. Allo sends
        `partner.account.suspended` to your webhook endpoint. Requires the
        `PARTNER` scope.
      operationId: suspendPartnerAccount
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The account id returned by Create account (`usr-*`).
      responses:
        '200':
          description: The account, with its new status
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: usr-575966AF3661061265263C58882BC409D2A427B8
                      phone_numbers:
                        type: array
                        items:
                          type: string
                        example:
                          - '+33712345678'
                      status:
                        type: string
                        description: >-
                          The account's status: `ACTIVE`, or `SUSPENDED` while
                          the account is suspended with Suspend account.
                        example: ACTIVE
                      activated:
                        type: boolean
                        description: True once the customer has signed in on a device.
                        example: false
                      partner_client_ref:
                        type: string
                        nullable: true
                        example: crm-12345
              example:
                data:
                  id: usr-575966AF3661061265263C58882BC409D2A427B8
                  phone_numbers:
                    - '+33712345678'
                  status: SUSPENDED
                  activated: true
                  partner_client_ref: crm-12345
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '403':
          description: The API key lacks the PARTNER scope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
        '404':
          description: >-
            No account with this id was provisioned by your API key, or the
            account is deactivated (PARTNER_ACCOUNT_NOT_FOUND).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
        '429':
          $ref: '#/components/responses/ApiRateLimited'
      security:
        - ApiKeyAuth: []
components:
  responses:
    ApiUnauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiRateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            request_id:
              type: string
            retry_after_seconds:
              type: integer
              nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````

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