Customers
delete/v1/customers/{customer}/discount

Delete a customer discount

Removes the currently applied discount on a customer.

Path parameters

NameDescription
customer*

Request body

object (no properties in spec)

Response

FieldTypeDescription
checkout_sessionstring

The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode.

customerstring | customer | deleted_customer

The ID of the customer associated with this discount.

customer_accountstring

The ID of the account representing the customer associated with this discount.

deleted*boolean

Always true for a deleted object

id*string

The ID of the discount object. Discounts can't be fetched by ID. Use expand[]=discounts in API calls to expand discount IDs in an array.

invoicestring

The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice.

invoice_itemstring

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.

object*string

String representing the object's type. Objects of the same type share the same value.

promotion_codestring | promotion_code

The promotion code applied to create this discount.

source*discount_source
2 nested fields
FieldTypeDescription
couponstring | coupon

The coupon that was redeemed to create this discount.

type*string

The source type of the discount.

start*integer (unix-time)

Date that the coupon was applied.

subscriptionstring

The subscription that this coupon is applied to, if it is applied to a particular subscription.

subscription_itemstring

The subscription item that this coupon is applied to, if it is applied to a particular subscription item.