Note: If consolidated invoicing is enabled, the attribute subscription_id
is unavailable when the invoice has line items from multiple subscriptions. The individual subscription IDs are seen under line_items.subscription_id
.
coupon
or a discount
, this is the ID of the coupon or discount.