Retrievee a credit note's preview items

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

When retrieving a credit note preview, you’ll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items.

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.
ending_beforestringA cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list.
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.
limitstringA limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
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.
starting_afterstringA cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring