credit_note_id string, not null
The unique ID of the credit note this table belongs to.
coupon_set_code string, null
The
coupon code, if applicable, used to provide the discount. The
coupon ID is available in
entity_id
.
description string, null
A description for this deduction.
discount_type string, null
The type of discount applied to the line item. Relevant only when discounts[entity_type]
is one of item_level_discount
, item_level_coupon
, document_level_discount
, or document_level_coupon
.
entity_id string, null
When the deduction is due to a
coupon
or a
discount, this is the ID of the coupon or discount.
entity_type string, not null
The type of deduction and the amount to which it is applied.
line_item_id string, null
The unique ID of the line item that this deduction is for. This is required when discounts[entity_type]
is item_level_coupon
or document_level_coupon
.