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
.
entity_id
.discounts[entity_type]
is one of item_level_discount
, item_level_coupon
, document_level_discount
, or document_level_coupon
.coupon
or a discount
, this is the ID of the coupon or discount.discounts[entity_type]
is item_level_coupon
or document_level_coupon
.