Get the available discounts from invoices line items in Stripe.
Table Specific Information
Server-Side Query Support
The 本製品 uses the Stripe API to filter the results by the following columns and operators while the rest of the filter is executed client-side within the 本製品.
- InvoiceId supports the following operator: =.
- AccountId supports the following operator: =.
The provider supports the use of all columns as criteria in the WHERE clause of SELECT statements, as long as the SupportEnhancedSQL property is set to True. If the SupportEnhancedSQL property is set to False, you still can retrieve:
-Invoice Line Items Discount list:
SELECT * FROM InvoiceLineItemDiscounts WHERE InvoiceId='in_1MRUu5SC4snQ4WkOvjaIxRGJ'
|The Id of the discount object.
|The Id of the invoice.
|The Id of the customer.
|Date that the coupon was applied.
|If the coupon has a duration of repeating, the date that this discount will end. If the coupon has a duration of once or forever, this attribute will be null.
|The Id of the coupon.
|Amount (in the currency specified) that is taken off the subtotal of any invoices for this customer.
|If amount_off has been set, the three-letter ISO code for the currency of the amount to take off.
|Name of the coupon displayed to customers on, for instance, invoices or receipts.
|The creation date.
|Describes how long a customer who applies this coupon will get the discount. One of forever, once, and repeating.
|If duration is repeating, the number of months the coupon applies. Null if coupon duration is forever or once.
|Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon. For example, a coupon with a percent_off of 50 will make a $100 invoice $50 instead.
|Date after which the coupon can no longer be redeemed.
|Number of times this coupon has been applied to a customer.
|Taking account of the above properties, whether this coupon can still be applied to a customer.
|Maximum number of times this coupon can be redeemed, in total, across all customers, before it is no longer valid.
|The promotion code applied to create this discount.
|The subscription that this coupon is applied to, if it is applied to a particular subscription.
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
|The Id of the connected account to get invoices for.