Optionalamount_Optionalpayment_The PaymentRecord refund details to link to this credit note. Required when type is payment_record_refund.
OptionalrefundID of an existing refund to link this credit note to. Required when type is refund.
OptionaltypeType of the refund, one of refund or payment_record_refund. Defaults to refund.
Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.