Attributes
- idstring
Unique identifier for the object.
- currencyenum
Three-letter ISO currency code, in lowercase. Must be a supported currency.
- invoicestringExpandable
ID of the invoice.
- linesobject
Line items that make up the credit note
- lines.
objectstring String representing the object’s type. Objects of the same type share the same value. Always has the value
list
. - lines.
dataarray of objects Details about each object.
- lines.
data. idstring Unique identifier for the object.
- lines.
data. objectstring String representing the object’s type. Objects of the same type share the same value.
- lines.
data. amountinteger The integer amount in cents representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
- lines.
data. descriptionnullable string Description of the item being credited.
- lines.
data. discount_ amountintegerDeprecated The integer amount in cents representing the discount being credited for this line item.
- lines.
data. discount_ amountsarray of objects The amount of discount calculated per discount for this line item
- lines.
data. discount_amounts. amountinteger The amount, in cents, of the discount.
- lines.
data. discount_amounts. discountstringExpandable The discount that was applied to get this discount amount.
- lines.
data. invoice_ line_ itemnullable string ID of the invoice line item being credited
- lines.
data. livemodeboolean Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - lines.
data. pretax_ credit_ amountsarray of objects The pretax credit amounts (ex: discount, credit grants, etc) for this line item.
- lines.
data. pretax_credit_amounts. amountinteger The amount, in cents, of the pretax credit amount.
- lines.
data. pretax_credit_amounts. credit_ balance_ transactionnullable stringExpandable The credit balance transaction that was applied to get this pretax credit amount.
- lines.
data. pretax_credit_amounts. discountnullable stringExpandable The discount that was applied to get this pretax credit amount.
- lines.
data. pretax_credit_amounts. typeenum Type of the pretax credit amount referenced.
Possible enum valuescredit_
balance_ transaction The pretax credit amount is from a credit balance transaction.
discount
The pretax credit amount is from a discount.
- lines.
data. quantitynullable integer The number of units of product being credited.
- lines.
data. tax_ ratesarray of objects The tax rates which apply to the line item.
- lines.
data. tax_rates. idstring Unique identifier for the object.
- lines.
data. tax_rates. objectstring String representing the object’s type. Objects of the same type share the same value.
- lines.
data. tax_rates. activeboolean Defaults to
true
. When set tofalse
, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. - lines.
data. tax_rates. countrynullable string Two-letter country code (ISO 3166-1 alpha-2).
- lines.
data. tax_rates. createdtimestamp Time at which the object was created. Measured in seconds since the Unix epoch.
- lines.
data. tax_rates. descriptionnullable string An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
- lines.
data. tax_rates. display_ namestring The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
- lines.
data. tax_rates. effective_ percentagenullable float Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product’s taxability and whether the user is registered to collect taxes in the corresponding jurisdiction.
- lines.
data. tax_rates. flat_ amountnullable object The amount of the tax rate when the
rate_
istype flat_
. Tax rates withamount rate_
type percentage
can vary based on the transaction, resulting in this field beingnull
. This field exposes the amount and currency of the flat tax rate.- lines.
data. tax_rates. flat_amount. amountinteger Amount of the tax when the
rate_
istype flat_
. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).amount - lines.
data. tax_rates. flat_amount. currencystring Three-letter ISO currency code, in lowercase.
- lines.
data. tax_rates. inclusiveboolean This specifies if the tax rate is inclusive or exclusive.
- lines.
data. tax_rates. jurisdictionnullable string The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
- lines.
data. tax_rates. jurisdiction_ levelnullable enum The level of the jurisdiction that imposes this tax rate. Will be
null
for manually defined tax rates.Possible enum valuescity
country
county
district
multiple
state
- lines.
data. tax_rates. livemodeboolean Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - lines.
data. tax_rates. metadatanullable object 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.
- lines.
data. tax_rates. percentagefloat Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.
- lines.
data. tax_rates. rate_ typenullable enum Indicates the type of tax rate applied to the taxable amount. This value can be
null
when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.Possible enum valuesflat_
amount A fixed amount applied as tax, regardless of the taxable amount, such as a retail delivery fee.
percentage
A tax rate expressed as a percentage of the taxable amount, such as the sales tax rate in California.
- lines.
data. tax_rates. statenullable string ISO 3166-2 subdivision code, without country prefix. For example, “NY” for New York, United States.
- lines.
data. tax_rates. tax_ typenullable enum The high-level tax type, such as
vat
orsales_
.tax Possible enum valuesamusement_
tax Amusement Tax
communications_
tax Communications Tax
gst
Goods and Services Tax
hst
Harmonized Sales Tax
igst
Integrated Goods and Services Tax
jct
Japanese Consumption Tax
lease_
tax Chicago Lease Tax
pst
Provincial Sales Tax
qst
Quebec Sales Tax
retail_
delivery_ fee Retail Delivery Fee
Show 4 more
- lines.
data. taxesnullable array of objects The tax information of the line item.
- lines.
data. taxes. amountinteger The amount of the tax, in cents.
- lines.
data. taxes. tax_ behaviorenum Whether this tax is inclusive or exclusive.
Possible enum valuesexclusive
inclusive
- lines.
data. taxes. tax_ rate_ detailsnullable object Additional details about the tax rate. Only present when
type
istax_
.rate_ details - lines.
data. taxes. taxability_ reasonenum The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
Possible enum valuescustomer_
exempt No tax is applied as the customer is exempt from tax.
not_
available The reasoning behind this tax is not available.
not_
collecting No tax is collected either because you are not registered to collect tax in this jurisdiction, or because the non-taxable product tax code (
txcd_
) was used.00000000 not_
subject_ to_ tax No tax is imposed on this transaction.
not_
supported No tax applied. Stripe doesn’t support this jurisdiction, territory, or product.
portion_
product_ exempt A portion of the price is exempt from tax.
portion_
reduced_ rated A portion of the price is taxed at a reduced rate.
portion_
standard_ rated A portion of the price is taxed at the standard rate.
product_
exempt The product or service is nontaxable or exempt from tax.
product_
exempt_ holiday The product or service is not taxed due to a sales tax holiday.
Show 6 more - lines.
data. taxes. taxable_ amountnullable integer The amount on which tax is calculated, in cents.
- lines.
data. taxes. typeenum The type of tax information.
- lines.
data. typeenum The type of the credit note line item, one of
invoice_
orline_ item custom_
. When the type isline_ item invoice_
there is an additionalline_ item invoice_
property on the resource the value of which is the id of the credited line item on the invoice.line_ item Possible enum valuescustom_
line_ item invoice_
line_ item - lines.
data. unit_ amountnullable integer The cost of each unit of product being credited.
- lines.
data. unit_ amount_ decimalnullable decimal string Same as
unit_
, but contains a decimal value with at most 12 decimal places.amount
- lines.
has_ moreboolean True if this list has another page of items after this one that can be fetched.
- lines.
urlstring The URL where this list can be accessed.
- memonullable string
Customer-facing text that appears on the credit note PDF.
- metadatanullable object
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.
- reasonnullable enum
Reason for issuing this credit note, one of
duplicate
,fraudulent
,order_
, orchange product_
unsatisfactory Possible enum valuesduplicate
Credit issued for a duplicate payment or charge
fraudulent
Credit note issued for fraudulent activity
order_
change Credit note issued for order change
product_
unsatisfactory Credit note issued for unsatisfactory product
- statusenum
Status of this credit note, one of
issued
orvoid
. Learn more about voiding credit notes.Possible enum valuesissued
The credit note has been issued.
void
The credit note has been voided.
- subtotalinteger
The integer amount in cents representing the amount of the credit note, excluding exclusive tax and invoice level discounts.
- totalinteger
The integer amount in cents representing the total amount of the credit note, including tax and all discount.
More attributes
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- amountinteger
The integer amount in cents representing the total amount of the credit note, including tax.
- amount_
shippinginteger This is the sum of all the shipping amounts.
- createdtimestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
- customerstringExpandable
ID of the customer.
- customer_
balance_ transactionnullable stringExpandable Customer balance transaction related to this credit note.
- discount_
amountintegerDeprecated The integer amount in cents representing the total amount of discount that was credited.
- discount_
amountsarray of objects The aggregate amounts calculated per discount for all line items.
- discount_amounts.
amountinteger The amount, in cents, of the discount.
- discount_amounts.
discountstringExpandable The discount that was applied to get this discount amount.
- effective_
atnullable timestamp The 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. - livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - numberstring
A unique number that identifies this particular credit note and appears on the PDF of the credit note and its associated invoice.
- out_
of_ band_ amountnullable integer Amount that was credited outside of Stripe.
- pdfstring
The link to download the PDF of the credit note.
- post_
payment_ amountinteger 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_ amountinteger The amount of the credit note by which the invoice’s
amount_
andremaining amount_
were reduced.due - pretax_
credit_ amountsarray of objects The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
- pretax_credit_amounts.
amountinteger The amount, in cents, of the pretax credit amount.
- pretax_credit_amounts.
credit_ balance_ transactionnullable stringExpandable The credit balance transaction that was applied to get this pretax credit amount.
- pretax_credit_amounts.
discountnullable stringExpandable The discount that was applied to get this pretax credit amount.
- pretax_credit_amounts.
typeenum Type of the pretax credit amount referenced.
Possible enum valuescredit_
balance_ transaction The pretax credit amount is from a credit balance transaction.
discount
The pretax credit amount is from a discount.
- refundsarray of objects
Refunds related to this credit note.
- refunds.
amount_ refundedinteger Amount of the refund that applies to this credit note, in cents.
- refunds.
refundstringExpandable ID of the refund.
- shipping_
costnullable object The details of the cost of shipping, including the ShippingRate applied to the invoice.
- shipping_cost.
amount_ subtotalinteger Total shipping cost before any taxes are applied.
- shipping_cost.
amount_ taxinteger Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
- shipping_cost.
amount_ totalinteger Total shipping cost after taxes are applied.
- shipping_cost.
shipping_ ratenullable stringExpandable The ID of the ShippingRate for this invoice.
- shipping_cost.
taxesnullable array of objectsExpandable The taxes applied to the shipping rate.
- shipping_cost.
taxes. amountinteger Amount of tax applied for this rate.
- shipping_cost.
taxes. rateobject The tax rate applied.
- shipping_cost.
taxes. rate. idstring Unique identifier for the object.
- shipping_cost.
taxes. rate. objectstring String representing the object’s type. Objects of the same type share the same value.
- shipping_cost.
taxes. rate. activeboolean Defaults to
true
. When set tofalse
, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. - shipping_cost.
taxes. rate. countrynullable string Two-letter country code (ISO 3166-1 alpha-2).
- shipping_cost.
taxes. rate. createdtimestamp Time at which the object was created. Measured in seconds since the Unix epoch.
- shipping_cost.
taxes. rate. descriptionnullable string An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
- shipping_cost.
taxes. rate. display_ namestring The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
- shipping_cost.
taxes. rate. effective_ percentagenullable float Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product’s taxability and whether the user is registered to collect taxes in the corresponding jurisdiction.
- shipping_cost.
taxes. rate. flat_ amountnullable object The amount of the tax rate when the
rate_
istype flat_
. Tax rates withamount rate_
type percentage
can vary based on the transaction, resulting in this field beingnull
. This field exposes the amount and currency of the flat tax rate.- shipping_cost.
taxes. rate. flat_amount. amountinteger Amount of the tax when the
rate_
istype flat_
. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).amount - shipping_cost.
taxes. rate. flat_amount. currencystring Three-letter ISO currency code, in lowercase.
- shipping_cost.
taxes. rate. inclusiveboolean This specifies if the tax rate is inclusive or exclusive.
- shipping_cost.
taxes. rate. jurisdictionnullable string The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
- shipping_cost.
taxes. rate. jurisdiction_ levelnullable enum The level of the jurisdiction that imposes this tax rate. Will be
null
for manually defined tax rates.Possible enum valuescity
country
county
district
multiple
state
- shipping_cost.
taxes. rate. livemodeboolean Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - shipping_cost.
taxes. rate. metadatanullable object 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.
- shipping_cost.
taxes. rate. percentagefloat Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.
- shipping_cost.
taxes. rate. rate_ typenullable enum Indicates the type of tax rate applied to the taxable amount. This value can be
null
when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.Possible enum valuesflat_
amount A fixed amount applied as tax, regardless of the taxable amount, such as a retail delivery fee.
percentage
A tax rate expressed as a percentage of the taxable amount, such as the sales tax rate in California.
- shipping_cost.
taxes. rate. statenullable string ISO 3166-2 subdivision code, without country prefix. For example, “NY” for New York, United States.
- shipping_cost.
taxes. rate. tax_ typenullable enum The high-level tax type, such as
vat
orsales_
.tax Possible enum valuesamusement_
tax Amusement Tax
communications_
tax Communications Tax
gst
Goods and Services Tax
hst
Harmonized Sales Tax
igst
Integrated Goods and Services Tax
jct
Japanese Consumption Tax
lease_
tax Chicago Lease Tax
pst
Provincial Sales Tax
qst
Quebec Sales Tax
retail_
delivery_ fee Retail Delivery Fee
Show 4 more
- shipping_cost.
taxes. taxability_ reasonnullable enum The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
Possible enum valuescustomer_
exempt No tax is applied as the customer is exempt from tax.
not_
collecting No tax is collected either because you are not registered to collect tax in this jurisdiction, or because the non-taxable product tax code (
txcd_
) was used.00000000 not_
subject_ to_ tax No tax is imposed on this transaction.
not_
supported No tax applied. Stripe doesn’t support this jurisdiction, territory, or product.
portion_
product_ exempt A portion of the price is exempt from tax.
portion_
reduced_ rated A portion of the price is taxed at a reduced rate.
portion_
standard_ rated A portion of the price is taxed at the standard rate.
product_
exempt The product or service is nontaxable or exempt from tax.
product_
exempt_ holiday The product or service is not taxed due to a sales tax holiday.
proportionally_
rated The shipping cost tax rate is calculated as a weighted average of the other line items’ rates, weighted by their amounts.
Show 5 more - shipping_cost.
taxes. taxable_ amountnullable integer The amount on which tax is calculated, in cents.
- subtotal_
excluding_ taxnullable integer The integer amount in cents representing the amount of the credit note, excluding all tax and invoice level discounts.
- total_
excluding_ taxnullable integer The integer amount in cents representing the total amount of the credit note, excluding tax, but including discounts.
- total_
taxesnullable array of objects The aggregate tax information for all line items.
- total_taxes.
amountinteger The amount of the tax, in cents.
- total_taxes.
tax_ behaviorenum Whether this tax is inclusive or exclusive.
Possible enum valuesexclusive
inclusive
- total_taxes.
tax_ rate_ detailsnullable object Additional details about the tax rate. Only present when
type
istax_
.rate_ details - total_taxes.
taxability_ reasonenum The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
Possible enum valuescustomer_
exempt No tax is applied as the customer is exempt from tax.
not_
available The reasoning behind this tax is not available.
not_
collecting No tax is collected either because you are not registered to collect tax in this jurisdiction, or because the non-taxable product tax code (
txcd_
) was used.00000000 not_
subject_ to_ tax No tax is imposed on this transaction.
not_
supported No tax applied. Stripe doesn’t support this jurisdiction, territory, or product.
portion_
product_ exempt A portion of the price is exempt from tax.
portion_
reduced_ rated A portion of the price is taxed at a reduced rate.
portion_
standard_ rated A portion of the price is taxed at the standard rate.
product_
exempt The product or service is nontaxable or exempt from tax.
product_
exempt_ holiday The product or service is not taxed due to a sales tax holiday.
Show 6 more - total_taxes.
taxable_ amountnullable integer The amount on which tax is calculated, in cents.
- total_taxes.
typeenum The type of tax information.
- typeenum
Type of this credit note, one of
pre_
orpayment post_
. Apayment pre_
credit note means it was issued when the invoice was open. Apayment post_
credit note means it was issued when the invoice was paid.payment Possible enum valuesmixed
post_
payment pre_
payment - voided_
atnullable timestamp The time that the credit note was voided.
{ "id": "cn_1MxvRqLkdIwHu7ixY0xbUcxk", "object": "credit_note", "amount": 1099, "amount_shipping": 0, "created": 1681750958, "currency": "usd", "customer": "cus_NjLgPhUokHubJC", "customer_balance_transaction": null, "discount_amount": 0, "discount_amounts": [], "invoice": "in_1MxvRkLkdIwHu7ixABNtI99m", "lines": { "object": "list", "data": [ { "id": "cnli_1MxvRqLkdIwHu7ixFpdhBFQf", "object": "credit_note_line_item", "amount": 1099, "description": "T-shirt", "discount_amount": 0, "discount_amounts": [], "invoice_line_item": "il_1MxvRlLkdIwHu7ixnkbntxUV", "livemode": false, "quantity": 1, "tax_rates": [], "taxes": [], "type": "invoice_line_item", "unit_amount": 1099, "unit_amount_decimal": "1099" } ], "has_more": false, "url": "/v1/credit_notes/cn_1MxvRqLkdIwHu7ixY0xbUcxk/lines" }, "livemode": false, "memo": null, "metadata": {}, "number": "C9E0C52C-0036-CN-01", "out_of_band_amount": null, "pdf": "https://pay.stripe.com/credit_notes/acct_1M2JTkLkdIwHu7ix/test_YWNjdF8xTTJKVGtMa2RJd0h1N2l4LF9Oak9FOUtQNFlPdk52UXhFd2Z4SU45alpEd21kd0Y4LDcyMjkxNzU50200cROQsSK2/pdf?s=ap", "pre_payment_amount": 1099, "post_payment_amount": 0, "reason": null, "refunds": [], "shipping_cost": null, "status": "issued", "subtotal": 1099, "subtotal_excluding_tax": 1099, "total": 1099, "total_excluding_tax": 1099, "total_taxes": [], "type": "pre_payment", "voided_at": null}