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

# 从订阅中移除促销

> 结束订阅上当前生效的促销。下一次收费按全额价格计算，促销以原因 REMOVED 结束

结束订阅上当前生效的促销。促销的 `status` 变为 `ENDED`，其 `end_reason` 变为 `REMOVED`。下一次收费按全额价格计算。

如需再次为订阅提供折扣，请 [应用促销](https://docs.y.uno/zh-hans/reference/subscriptions/update-subscription.md)。新的副本从已使用 0 个周期开始。

## 错误

| HTTP | `code` | 触发条件 |
| :- | :- | :- |
| `409` | `SUBSCRIPTION_PROMOTION_NOT_ACTIVE` | 订阅没有生效中的促销。响应中包含 `current_status`：其最新一次促销的状态，即 `COMPLETED` 或 `ENDED`；如果订阅从未有过促销，则为 `null`。 |

有关所有代码，请参阅 [订阅促销错误代码](https://docs.y.uno/zh-hans/reference/subscriptions/subscription-promotion-error-codes.md)。


## OpenAPI

````yaml openapi/zh-hans/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: 从订阅中移除促销
      description: >-
        结束订阅上生效的促销。该促销的 `status` 变为 `ENDED`，其 `end_reason` 变为
        `REMOVED`。下一次扣款按全价收取。
      operationId: remove-subscription-promotion
      parameters:
        - name: subscription_id
          in: path
          description: 订阅的唯一标识符。
          schema:
            type: string
          required: true
      responses:
        '200':
          description: 200。订阅，其促销的状态为 `ENDED`，`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: >-
                      订阅上存储的促销副本。请参阅[订阅促销对象](/zh-hans/reference/subscriptions/the-subscription-promotion-object)。
                    properties:
                      id:
                        type: string
                        description: 促销的 ID（UUID）。
                      name:
                        type: string
                      discount:
                        type: object
                        description: >-
                          带 `value` 的 `PERCENTAGE`，或带 `amount` 和 `currency` 的
                          `FIXED`。
                        properties:
                          type:
                            type: string
                            enum:
                              - PERCENTAGE
                              - FIXED
                          value:
                            type: number
                            description: 仅限 `PERCENTAGE`。范围为 0 到 100，最多 2 位小数。
                          amount:
                            type: number
                            description: 仅限 `FIXED`。按币种的小数位数表示。
                          currency:
                            type: string
                            description: 仅限 `FIXED`。ISO 4217 代码。
                      cycles:
                        type: object
                        properties:
                          total:
                            type: integer
                          used:
                            type: integer
                            description: 自应用以来已计入的周期：已批准的扣款、试用周期和 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。订阅没有生效的促销。响应包含 `current_status`：其最近一次促销的状态（`COMPLETED` 或
            `ENDED`），如果订阅从未有过促销，则为 `null`。
          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: 订阅最近一次促销的状态，`COMPLETED` 或 `ENDED`。如果订阅从未有过促销，则为 `null`。
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.