---
title: "Remove the coupon applied to a payment"
method: DELETE
path: "/api/server/payment/{paymentId}/coupon"
tags: ["Payment"]
---

# Remove the coupon applied to a payment

`DELETE /api/server/payment/{paymentId}/coupon`

**Removes the coupon previously applied to a pending payment** and restores the original amount. Routes to the same coupon system as the apply endpoint.

## Path parameters

- `paymentId` string, required

## Response `200`

Remove the coupon applied to a payment successful

- CouponResultDto
  - `paymentId` string, required — The payment ID
  - `paymentType` 'ONE_TIME' | 'SUBSCRIPTION', required — Whether the payment is a single one-time payment or the first payment of a subscription
  - `status` string, required — The payment status
  - `amount` number, required — The amount in cents (excluding taxes), after any discount
  - `amountTaxesIncluded` number, nullable — The total amount including taxes in cents, after any discount
  - `currency` string, required — The currency
  - `couponDiscountInCents` number, nullable — Discount applied on the HT amount in cents (null if no coupon)
  - `coupon` CouponDto
    - `code` string, required — Coupon code
    - `discountType` 'PERCENTAGE' | 'FIXED_AMOUNT', required — Discount type
    - `discountAmountInCents` number, required — Discount applied on the HT (tax-exclusive) amount, in cents
    - `finalAmountInCents` number, required — HT (tax-exclusive) amount after discount, in cents

## Other responses

- `400` — No coupon applied to the payment; payment already processed; payment not in server-to-server mode; or card payments not unlocked
- `401` — Unauthorized - Invalid API key
- `404` — Payment not found for the given user

---

[API](https://skmtc.dev/inflowpay/apis/inflow-api.md) · [All operations](https://skmtc.dev/inflowpay/apis/inflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inflowpay/inflow-api/revisions/3012dd3dd14a/schema)
