Preview a credit note

GET {{baseUrl}}/v1/credit_notes/preview?invoice=<string>

Get a preview of a credit note without creating it.

Request Params

KeyDatatypeRequiredDescription
amountstringThe integer amount in cents (or local equivalent) representing the total amount of the credit note.
credit_amountstringThe integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
effective_atstringThe date when this credit note is in effect. Same as created unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.
expand[0]stringSpecifies which fields in the response should be expanded.
expand[1]stringSpecifies which fields in the response should be expanded.
invoicestring(Required) ID of the invoice.
lines[0][type]stringLine items that make up the credit note.
lines[0][amount]stringLine items that make up the credit note.
lines[0][description]stringLine items that make up the credit note.
lines[0][invoice_line_item]stringLine items that make up the credit note.
lines[0][quantity]stringLine items that make up the credit note.
lines[0][tax_amounts][0][amount]stringLine items that make up the credit note.
lines[0][tax_amounts][0][tax_rate]stringLine items that make up the credit note.
lines[0][tax_amounts][0][taxable_amount]stringLine items that make up the credit note.
lines[0][tax_amounts][1][amount]stringLine items that make up the credit note.
lines[0][tax_amounts][1][tax_rate]stringLine items that make up the credit note.
lines[0][tax_amounts][1][taxable_amount]stringLine items that make up the credit note.
lines[0][tax_rates][0]stringLine items that make up the credit note.
lines[0][tax_rates][1]stringLine items that make up the credit note.
lines[0][unit_amount]stringLine items that make up the credit note.
lines[0][unit_amount_decimal]stringLine items that make up the credit note.
lines[1][type]stringLine items that make up the credit note.
lines[1][amount]stringLine items that make up the credit note.
lines[1][description]stringLine items that make up the credit note.
lines[1][invoice_line_item]stringLine items that make up the credit note.
lines[1][quantity]stringLine items that make up the credit note.
lines[1][tax_amounts][0][amount]stringLine items that make up the credit note.
lines[1][tax_amounts][0][tax_rate]stringLine items that make up the credit note.
lines[1][tax_amounts][0][taxable_amount]stringLine items that make up the credit note.
lines[1][tax_amounts][1][amount]stringLine items that make up the credit note.
lines[1][tax_amounts][1][tax_rate]stringLine items that make up the credit note.
lines[1][tax_amounts][1][taxable_amount]stringLine items that make up the credit note.
lines[1][tax_rates][0]stringLine items that make up the credit note.
lines[1][tax_rates][1]stringLine items that make up the credit note.
lines[1][unit_amount]stringLine items that make up the credit note.
lines[1][unit_amount_decimal]stringLine items that make up the credit note.
memostringThe credit note's memo appears on the credit note PDF.
out_of_band_amountstringThe integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe.
reasonstringReason for issuing this credit note, one of duplicate, fraudulent, order_change, or product_unsatisfactory
refundstringID of an existing refund to link this credit note to.
refund_amountstringThe integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
shipping_cost[shipping_rate]stringWhen shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring