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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Supprimer une promotion d'un plan

> Supprime une promotion d'un plan d'abonnement. Les abonnements qui ont déjà la promotion en conservent leur copie

Supprime l'association d'une promotion à un plan. Le plan n'offre plus la promotion, elle ne peut donc plus être appliquée aux nouveaux abonnements du plan. Les abonnements qui ont déjà la promotion ne sont pas modifiés : ils conservent leur copie jusqu'à ce qu'elle soit `COMPLETED` ou `ENDED`.

La réponse n'a pas de corps. Pour mettre fin à la promotion sur un seul abonnement, utilisez [Supprimer une promotion d'un abonnement](https://docs.y.uno/fr/reference/subscriptions/remove-subscription-promotion.md).

> [!NOTE]
>
> **Modifier `cycles`**
>
> Les associations ne sont pas modifiables. Pour modifier `cycles` ou `on_pause`, supprimez l'association avec cet endpoint, puis [associez de nouveau la promotion](https://docs.y.uno/fr/reference/plans/attach-plan-promotion.md).

## Erreurs

| HTTP | `code` | Quand |
| :- | :- | :- |
| `404` | `PLAN_NOT_FOUND` | Le plan n'existe pas. |
| `404` | `PROMOTION_NOT_FOUND` | La promotion n'est pas associée à ce plan. |


## OpenAPI

````yaml openapi/fr/plans/remove-plan-promotion.json DELETE /subscriptions/plans/{plan_id}/promotions/{promotion_id}
openapi: 3.1.0
info:
  title: plans
  version: 1.0.0
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
  - url: https://api.eu.y.uno/v1
    description: Production (EMEA)
security:
  - sec0: []
    sec1: []
paths:
  /subscriptions/plans/{plan_id}/promotions/{promotion_id}:
    delete:
      summary: Retirer une promotion d'un plan
      description: >-
        Retire l'association d'une promotion au plan. Les abonnements qui ont
        déjà la promotion ne sont pas modifiés : ils conservent leur copie
        jusqu'à ce qu'elle soit `COMPLETED` ou `ENDED`.
      operationId: remove-plan-promotion
      parameters:
        - in: header
          name: X-Account-Code
          required: true
          schema:
            type: string
          description: >-
            Le `account_id` figurant dans votre [Dashboard
            Yuno](https://dashboard.y.uno/developers) (UUID). Obligatoire : son
            omission renvoie `400 BAD_REQUEST` ("Invalid x-account-code
            header.").
        - name: plan_id
          in: path
          description: L'identifiant unique du plan.
          schema:
            type: string
          required: true
        - name: promotion_id
          in: path
          description: L'ID de la promotion à retirer du plan (UUID).
          schema:
            type: string
          required: true
      responses:
        '204':
          description: >-
            204. La promotion a été retirée du plan. La réponse n'a pas de
            corps.
        '404':
          description: >-
            404. Le plan n'existe pas (`PLAN_NOT_FOUND`), ou la promotion n'est
            pas associée à ce plan (`PROMOTION_NOT_FOUND`).
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: PROMOTION_NOT_FOUND
                    messages:
                      - Promotion not found.
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: public-api-key
      x-default: <Your public-api-key>
    sec1:
      type: apiKey
      in: header
      name: private-secret-key
      x-default: <Your private-secret-key>

````

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