# DeleteCustomersCustomerDiscount

From **Stripe API**.

`DELETE /v1/customers/{customer}/discount`

<p>Removes the currently applied discount on a customer.</p>

## Parameters

### `customer`

- Location: path
- Required: true
- Type: `string`
- maxLength: `5000`

## Request body

- Required: false
### `application/x-www-form-urlencoded`

- Type: `object`

```json
{"additionalProperties":false,"type":"object"}
```

## Security

### `basicAuth`

- Type: `http`
- Request header: `Authorization`
- Scheme: `basic`
Send credentials in the `Authorization` request header using the `Basic` scheme.

Basic HTTP authentication. Allowed headers-- Authorization: Basic <api_key> | Authorization: Basic <base64 hash of `api_key:`>

### `bearerAuth`

- Type: `http`
- Request header: `Authorization`
- Scheme: `bearer`
- Bearer format: `auth-scheme`
Send the token in the `Authorization` request header using the `Bearer` scheme.

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

## Responses

### `200`

Successful response.

### `application/json`

- Type: `object`

```json
{"properties":{"checkout_session":{"description":"The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.","maxLength":5000,"nullable":true,"type":"string"},"coupon":{"$ref":"#/components/schemas/coupon"},"customer":{"anyOf":[{"maxLength":5000,"type":"string"},{"$ref":"#/components/schemas/customer"},{"$ref":"#/components/schemas/deleted_customer"}],"description":"The ID of the customer associated with this discount.","nullable":true,"x-expansionResources":{"oneOf":[{"$ref":"#/components/schemas/customer"},{"$ref":"#/components/schemas/deleted_customer"}]}},"deleted":{"description":"Always true for a deleted object","enum":[true],"type":"boolean"},"id":{"description":"The ID of the discount object. Discounts cannot be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array.","maxLength":5000,"type":"string"},"invoice":{"description":"The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice.","maxLength":5000,"nullable":true,"type":"string"},"invoice_item":{"description":"The invoice item `id` (or invoice line item `id` for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.","maxLength":5000,"nullable":true,"type":"string"},"object":{"description":"String representing the object's type. Objects of the same type share the same value.","enum":["discount"],"type":"string"},"promotion_code":{"anyOf":[{"maxLength":5000,"type":"string"},{"$ref":"#/components/schemas/promotion_code"}],"description":"The promotion code applied to create this discount.","nullable":true,"x-expansionResources":{"oneOf":[{"$ref":"#/components/schemas/promotion_code"}]}},"start":{"description":"Date that the coupon was applied.","format":"unix-time","type":"integer"},"subscription":{"description":"The subscription that this coupon is applied to, if it is applied to a particular subscription.","maxLength":5000,"nullable":true,"type":"string"}},"required":["coupon","deleted","id","object","start"],"title":"DeletedDiscount","type":"object","x-expandableFields":["coupon","customer","promotion_code"],"x-resourceId":"deleted_discount"}
```

### `default`

Error response.

### `application/json`

- Type: `object`

An error response from the Stripe API

```json
{"description":"An error response from the Stripe API","properties":{"error":{"$ref":"#/components/schemas/api_errors"}},"required":["error"],"type":"object"}
```

## Request examples

### cURL

```shell
curl --request DELETE \
  --url https://api.stripe.com/v1/customers/{customer}/discount \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data '{}'
```
