CreditNote
Issue a credit note to adjust an invoice's amount after the invoice is finalized.
Related guide: Credit notes
Summary
Types
@type t() :: %Stripe.Resources.CreditNote{ amount: term(), amount_shipping: term(), created: term(), currency: term(), customer: term(), customer_account: term(), customer_balance_transaction: term(), discount_amount: term(), discount_amounts: term(), effective_at: term(), id: term(), invoice: term(), lines: term(), livemode: term(), memo: term(), metadata: term(), number: term(), object: term(), out_of_band_amount: term(), pdf: term(), post_payment_amount: term(), pre_payment_amount: term(), pretax_credit_amounts: term(), reason: term(), refunds: term(), shipping_cost: term(), status: term(), subtotal: term(), subtotal_excluding_tax: term(), total: term(), total_excluding_tax: term(), total_taxes: term(), type: term(), voided_at: term() }
amount- The integer amount in cents (or local equivalent) representing the total amount of the credit note, including tax.amount_shipping- This is the sum of all the shipping amounts.created- Time at which the object was created. Measured in seconds since the Unix epoch. Format: Unix timestamp.currency- Three-letter ISO currency code, in lowercase. Must be a supported currency. Format: ISO 4217 currency code.customer- ID of the customer. Expandable.customer_account- ID of the account representing the customer. Max length: 5000. Nullable.customer_balance_transaction- Customer balance transaction related to this credit note. Nullable. Expandable.discount_amount- The integer amount in cents (or local equivalent) representing the total amount of discount that was credited.discount_amounts- The aggregate amounts calculated per discount for all line items. Expandable.effective_at- The date when this credit note is in effect. Same ascreatedunless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. Format: Unix timestamp. Nullable.id- Unique identifier for the object. Max length: 5000.invoice- ID of the invoice. Expandable.lines- Line items that make up the credit note Expandable.livemode- If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.memo- Customer-facing text that appears on the credit note PDF. Max length: 5000. Nullable.metadata- Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Nullable.number- A unique number that identifies this particular credit note and appears on the PDF of the credit note and its associated invoice. Max length: 5000.object- String representing the object's type. Objects of the same type share the same value. Possible values:credit_note.out_of_band_amount- Amount that was credited outside of Stripe. Nullable.pdf- The link to download the PDF of the credit note. Max length: 5000.post_payment_amount- The amount of the credit note that was refunded to the customer, credited to the customer's balance, credited outside of Stripe, or any combination thereof.pre_payment_amount- The amount of the credit note by which the invoice'samount_remainingandamount_duewere reduced.pretax_credit_amounts- The pretax credit amounts (ex: discount, credit grants, etc) for all line items. Expandable.reason- Reason for issuing this credit note, one ofduplicate,fraudulent,order_change, orproduct_unsatisfactoryPossible values:duplicate,fraudulent,order_change,product_unsatisfactory. Nullable.refunds- Refunds related to this credit note. Expandable.shipping_cost- The details of the cost of shipping, including the ShippingRate applied to the invoice. Nullable. Expandable.status- Status of this credit note, one ofissuedorvoid. Learn more about voiding credit notes. Possible values:issued,void.subtotal- The integer amount in cents (or local equivalent) representing the amount of the credit note, excluding exclusive tax and invoice level discounts.subtotal_excluding_tax- The integer amount in cents (or local equivalent) representing the amount of the credit note, excluding all tax and invoice level discounts. Nullable.total- The integer amount in cents (or local equivalent) representing the total amount of the credit note, including tax and all discount.total_excluding_tax- The integer amount in cents (or local equivalent) representing the total amount of the credit note, excluding tax, but including discounts. Nullable.total_taxes- The aggregate tax information for all line items. Nullable. Expandable.type- Type of this credit note, one ofpre_paymentorpost_payment. Apre_paymentcredit note means it was issued when the invoice was open. Apost_paymentcredit note means it was issued when the invoice was paid. Possible values:mixed,post_payment,pre_payment.voided_at- The time that the credit note was voided. Format: Unix timestamp. Nullable.