> ## 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 abonnement

> Met fin à la promotion active d'un abonnement. Le prochain prélèvement est au prix complet, et la promotion se termine avec le motif REMOVED

Met fin à la promotion active d'un abonnement. Le `status` de la promotion devient `ENDED` et son `end_reason` devient `REMOVED`. Le prochain prélèvement est au prix complet.

Pour accorder de nouveau une remise à l'abonnement, [appliquez une promotion](https://docs.y.uno/fr/reference/subscriptions/update-subscription.md). La nouvelle copie démarre avec 0 cycle utilisé.

## Erreurs

| HTTP | `code` | Quand |
| :- | :- | :- |
| `409` | `SUBSCRIPTION_PROMOTION_NOT_ACTIVE` | L'abonnement n'a aucune promotion active. La réponse inclut `current_status` : le statut de sa dernière promotion, `COMPLETED` ou `ENDED`, ou `null` si l'abonnement n'en a jamais eu. |

Consultez [Codes d'erreur des promotions d'abonnement](https://docs.y.uno/fr/reference/subscriptions/subscription-promotion-error-codes.md) pour tous les codes.


## OpenAPI

````yaml openapi/fr/subscriptions/remove-subscription-promotion.json DELETE /subscriptions/{subscription_id}/promotion
openapi: 3.1.0
info:
  title: subscription
  version: 1.0.2
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/{subscription_id}/promotion:
    delete:
      summary: Retirer une promotion d'un abonnement
      description: >-
        Met fin à la promotion active de l'abonnement. Le `status` de la
        promotion devient `ENDED` et son `end_reason` devient `REMOVED`. Le
        prochain débit est au prix plein.
      operationId: remove-subscription-promotion
      parameters:
        - name: subscription_id
          in: path
          description: L'identifiant unique de l'abonnement.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: >-
            200. L'abonnement, avec sa promotion au statut `ENDED` et
            `end_reason` `REMOVED`.
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: e98ef674-9baa-4f7a-8da4-4c812c4749a4
                    status: ACTIVE
                    promotion:
                      id: 8f2d6c1e-3b7a-4c55-9a1e-2f4d8b7c6a10
                      name: Welcome 20% x3
                      discount:
                        type: PERCENTAGE
                        value: 20
                      cycles:
                        total: 3
                        used: 1
                        remaining: 2
                      on_pause: KEEP
                      status: ENDED
                      applied_at: '2026-11-02T14:00:00Z'
                      ended_at: '2026-11-10T09:00:00Z'
                      end_reason: REMOVED
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  promotion:
                    type: object
                    description: >-
                      La copie de la promotion enregistrée sur l'abonnement.
                      Voir [L'objet Promotion
                      d'abonnement](/fr/reference/subscriptions/the-subscription-promotion-object).
                    properties:
                      id:
                        type: string
                        description: L'identifiant de la promotion (UUID).
                      name:
                        type: string
                      discount:
                        type: object
                        description: >-
                          `PERCENTAGE` avec `value`, ou `FIXED` avec `amount` et
                          `currency`.
                        properties:
                          type:
                            type: string
                            enum:
                              - PERCENTAGE
                              - FIXED
                          value:
                            type: number
                            description: >-
                              `PERCENTAGE` uniquement. De 0 à 100, avec 2
                              décimales au maximum.
                          amount:
                            type: number
                            description: >-
                              `FIXED` uniquement. Avec les décimales de la
                              devise.
                          currency:
                            type: string
                            description: '`FIXED` uniquement. Code ISO 4217.'
                      cycles:
                        type: object
                        properties:
                          total:
                            type: integer
                          used:
                            type: integer
                            description: >-
                              Cycles comptés depuis son application : débits
                              approuvés, cycles d'essai et cycles à 100 %.
                          remaining:
                            type: integer
                      on_pause:
                        type: string
                        enum:
                          - KEEP
                          - END
                      status:
                        type: string
                        enum:
                          - ACTIVE
                          - COMPLETED
                          - ENDED
                      applied_at:
                        type: string
                        format: date-time
                      ended_at:
                        type: string
                        format: date-time
                        nullable: true
                      end_reason:
                        type: string
                        nullable: true
                        enum:
                          - REPLACED
                          - REMOVED
                          - PLAN_CHANGE
                          - PAUSE
                          - CANCELED
        '409':
          description: >-
            409. L'abonnement n'a aucune promotion active. La réponse inclut
            `current_status` : le statut de sa dernière promotion (`COMPLETED`
            ou `ENDED`), ou `null` si l'abonnement n'en a jamais eu.
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: SUBSCRIPTION_PROMOTION_NOT_ACTIVE
                    messages:
                      - The subscription has no active promotion.
                    current_status: COMPLETED
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
                  current_status:
                    type: string
                    nullable: true
                    description: >-
                      Le statut de la dernière promotion de l'abonnement,
                      `COMPLETED` ou `ENDED`. `null` si l'abonnement n'a jamais
                      eu de promotion.
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.