A Credit Note is a document that specifies the money owed by a business to its customer. The seller usually issues a Credit Note for the same or lower amount than the invoice, and then repays the money to the customer or set it off against other 'due' invoices.
Chargebee supports two types of Credit Notes - Adjustment Credit Note and Refundable Credit Note.
- Adjustment Credit Notes are created for the 'unpaid' component of the invoice and it can have statuses - Adjusted and Voided.
- Refundable Credit Notes are created for 'paid' component of the invoice and it can have statuses - Refunded, Refund Due and Voided.
The credits available in the Refundable Credit Notes will be automatically applied when a new invoice gets generated for the customer.
Note: If you have enabled consolidated invoicing, to know the subscriptions attached with a credit note you have to refer line_item's subscription_id. The credit note's subscription_id should not be used (which will be null if the credit note has lines from multiple subscriptions).
Sample credit note [ JSON ]
{
"allocations": [],
"amount_allocated": 0,
"amount_available": 500,
"amount_refunded": 0,
"base_currency_code": "USD",
"create_reason_code": "Product Unsatisfactory",
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWSy4m5e",
"date": 1517501405,
"deleted": false,
"exchange_rate": 1,
"fractional_correction": 0,
"id": "__demo_cn__1",
"line_item_discounts": [],
"line_item_taxes": [],
"line_items": [{
"amount": 500,
"customer_id": "__test__KyVnHhSBWSy4m5e",
"date_from": 1517501405,
"date_to": 1517501405,
"description": "Support Charge",
"discount_amount": 0,
"entity_type": "adhoc",
"id": "li___test__KyVnHhSBWSyHE5r",
"is_taxed": false,
"item_level_discount_amount": 0,
"object": "line_item",
"pricing_model": "flat_fee",
"quantity": 1,
"tax_amount": 0,
"tax_exempt_reason": "tax_not_configured",
"unit_amount": 500
}],
"linked_refunds": [],
"object": "credit_note",
"price_type": "tax_exclusive",
"reason_code": "product_unsatisfactory",
"reference_invoice_id": "__demo_inv__1",
"resource_version": 1517501405000,
"round_off_amount": 0,
"status": "refund_due",
"sub_total": 500,
"taxes": [],
"total": 500,
"type": "refundable",
"updated_at": 1517501405
}
API Index URL GET
https://{site}.chargebee.com/api/v2/credit_notes
Credit-note id.
string, max chars=50
The identifier of the customer this Credit Note belongs to.
string, max chars=50
The identifier of the subscription this Credit Note belongs to.
Note: If
consolidated invoicing is enabled, to know the subscriptions attached with this Credit Note you have to refer
line_item's subscription_id. This attribute should
not be used (which will be
null if this credit note has lines from multiple subscriptions).
optional, string, max chars=50
The identifier of the invoice against which this Credit Note is issued.
string, max chars=50
The credit note type.
enumerated stringPossible values are
adjustmentAdjustment Credit Note.refundableRefundable Credit Note.
The reason for issuing this Credit Note. The following reason codes are supported now[Deprecated; use the
create_reason_code parameter instead].
optional, enumerated stringPossible values are
write_offThis reason will be set automatically for the Credit Notes created during invoice Write Off operation.subscription_changeThis reason will be set automatically for Credit Notes created during Change Subscription operation when proration is enabled.subscription_cancellationThis reason will be set automatically for Credit Notes created during cancel subscription operation.subscription_pauseThis reason will be automatically set to credit notes created during pause/resume subscription operation.chargebackCan be set when you are recording your customer Chargebacks.product_unsatisfactoryProduct Unsatisfactory.service_unsatisfactoryService Unsatisfactory.order_changeOrder Change.order_cancellationOrder Cancellation.waiverWaiver.otherCan be set when none of the above reason codes are applicable.fraudulentFRAUDULENT.
Show all values[+]
The credit note status.
enumerated stringPossible values are
adjustedWhen the Credit Note has been adjusted against an invoice.refundedWhen the entire credits (Credit Note amount) have been used (i.e either allocated to invoices or refunded).refund_dueWhen the credits are yet to be used, or have been partially used.voidedWhen the Credit Note has been cancelled.
VAT number of the customer for whom this Credit Note is raised.
optional, string, max chars=20
The date the Credit Note is issued.
optional, timestamp(UTC) in seconds
The price type of the Credit Note.
enumerated string, default=tax_exclusivePossible values are
tax_exclusiveAll amounts in the document are exclusive of tax.tax_inclusiveAll amounts in the document are inclusive of tax.
The currency code (ISO 4217 format) for the credit note.
string, max chars=3
Credit Note amount in cents.
optional, in cents, default=0, min=0
The amount allocated to the invoices.
optional, in cents, default=0, min=0
The refunds issued from this Credit Note.
optional, in cents, default=0, min=0
The yet to be used credits of this Credit Note.
optional, in cents, default=0, min=0
The time this Credit Note got fully used.
optional, timestamp(UTC) in seconds
Timestamp indicating the date & time this credit note got voided.
optional, timestamp(UTC) in seconds
Version number of this resource. Each update of this resource results in incremental change of this number. This attribute will be present only if the resource has been updated after 2016-09-28.
optional, long
Timestamp indicating when this Credit Note was last updated. This attribute will be present only if the resource has been updated after 2016-09-28.
optional, timestamp(UTC) in seconds
The Credit Note sub-total.
in cents, min=0
sub_total_in_local_currency
Invoice subtotal in the currency of the place of supply.
optional, in cents, min=0
Total invoice amount in the currency of the place of supply.
optional, in cents, min=0
The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed.
optional, string, max chars=null
Indicates the rounded-off amount.
optional, in cents, min=0
Indicates the fractional correction amount.
optional, in cents, min=0
Indicates that this resource has been deleted.
boolean
Reason code for creating the credit note. Must be one from a list of reason codes set in the Chargebee app in Settings > Configure Chargebee > Reason Codes > Credit Notes > Create Credit Note. Must be passed if set as mandatory in the app. The codes are case-sensitive.
optional, string, max chars=100
The line items of this Credit Note.
optional, list of line_item
Uniquely identifies a line_item.
optional, string, max chars=40
A unique identifier for the subscription this line item belongs to.
optional, string, max chars=3
Start date of this line item.
timestamp(UTC) in seconds
End date of this line item.
timestamp(UTC) in seconds
Unit amount of the line item.
in cents
- Product Catalog 2.0: Quantity of the recurring item which is represented by this line item. For
metered
line
items, this value is updated from usages once when the invoice is generated as pending
and finally when the
invoice is closed.
- Product Catalog 1.0: Quantity of the recurring item which is represented by this line item.
.
optional, integer, default=1
Total amount of this line item. Typically equals to unit amount x quantity.
optional, in cents
The
pricing scheme for this item. In Product Catalog v2, the
pricing scheme for this item price.
optional, enumerated stringPossible values are
flat_feeA fixed price that is not quantity-based.per_unitA fixed price per unit quantity.tieredThe per unit price is based on the tier that the total quantity falls in.volumeThere are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.stairstepA quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.
Specifies whether this line item is taxed or not.
boolean, default=false
The tax amount charged for this item.
optional, in cents, default=0, min=0
Rate of tax used to calculate tax for this lineitem.
optional, double, min=0.0, max=100.0
The decimal representation of the unit amount of the
line_item
. The value is in major units of the currency. Returned when the
line_item
is quantity-based and
multi-decimal pricing is enabled.
optional, string, max chars=33
The decimal representation of the quantity of this line_item. Returned when the
line_item
is quantity-based and
multi-decimal pricing is enabled.
optional, string, max chars=33
The decimal representation of the amount for the
line_item
, in major units of the currency. Typically equals to
unit_amount_in_decimal
x
quantity_in_decimal
. Returned when
multi-decimal pricing is enabled.
optional, string, max chars=33
Total discounts for this line.
optional, in cents, min=0
item_level_discount_amount
Line Item-level discounts for this line.
optional, in cents, min=0
Detailed description about this line item.
string, max chars=250
Detailed description about this item.
string, max chars=500
Specifies the modelled entity this line item is based on.
enumerated stringPossible values are
plan_setupIndicates that this lineitem is based on 'Plan Setup' charge. The 'entity_id' attribute specifies the plan id.planIndicates that this lineitem is based on 'Plan' entity. The 'entity_id' attribute specifies the plan id.addonIndicates that this lineitem is based on 'Addon' entity. The 'entity_id' attribute specifies the addon id.adhocIndicates that this lineitem is not modelled. i.e created adhoc. So the 'entity_id' attribute will be null in this case.
The reason due to which the line item price/amount is exempted from tax.
optional, enumerated stringPossible values are
tax_not_configuredIf tax is not enabled for the site.region_non_taxableIf the product sold is not taxable in this region, but it is taxable in other regions, hence this region is not part of the Taxable jurisdiction.exportYou are not registered for tax in the customer’s region. This is also the reason code when both billing_address
and shipping_address
have not been provided for the customer and subscription respectively.customer_exemptIf the Customer is marked as Tax exempt.product_exemptIf the Plan or Addon is marked as Tax exempt.zero_ratedIf the rate of tax is 0% and no Sales/ GST tax is collectable for that line item.reverse_chargeIf the Customer is identified as B2B customer (when VAT Number is entered), applicable for EU only.high_value_physical_goodsIf physical goods are sold from outside Australia to customers in Australia, and the price of all the physical good line items is greater than AUD 1000, then tax will not be applied.
The identifier of the modelled entity this line item is based on. Will be null for 'adhoc' entity type.
optional, string, max chars=100
A unique identifier for the customer this line item belongs to.
optional, string, max chars=100
The list of discounts applied to this Credit Note.
optional, list of discount
Discount amount.
in cents, min=0
Detailed description of this discount line item.
optional, string, max chars=250
Type of this Discount line item.
enumerated stringPossible values are
item_level_couponRepresents the 'Item' level coupons applied to this invoice. Further the 'entity_id' attribute specifies the coupon id this discount is based on.document_level_couponRepresents the 'Document' level coupons applied to this document. Further the 'entity_id' attribute specifies the coupon id this discount is based on.promotional_creditsRepresents the Promotional Credits item in invoice. The 'entity_id' attribute will be null in this case.prorated_creditsRepresents the credit adjustment items in invoice. The 'entity_id' attribute will be null in this case.
The identifier of the modelled entity this line item is based on. Will be null for 'Prorated Credits' & 'Promotional Credits'.
optional, string, max chars=100
The list of discount(s) applied for each line item of this invoice.
optional, list of line_item_discount
Line item discount attributes
The unique reference id of the line item for which the discount is applicable.
string, max chars=50
Type of this discount line item.
enumerated stringPossible values are
item_level_couponRepresents the 'Item' level coupons applied to this invoice. Further the 'coupon_id' attribute specifies the coupon id this discount is based on.document_level_couponRepresents the 'Document' level coupons applied to this document. Further the 'coupon_id' attribute specifies the coupon id this discount is based on.promotional_creditsRepresents the Promotional Credits item in invoice. The 'coupon_id' attribute will be null in this case.prorated_creditsRepresents the credit adjustment items in invoice. The 'coupon_id' attribute will be null in this case.
Coupon id.
optional, string, max chars=50
Discount amount.
in cents, min=0
The list of tiers applicable for this line item.
optional, list of line_item_tier
Line item tier attributes
Uniquely identifies a line_item.
optional, string, max chars=40
The lower limit of a range of units for the tier.
integer, min=0
The upper limit of a range of units for the tier.
optional, integer
The number of units purchased in a range.
integer, min=0
The price of the tier if the charge model is a stairtstep
pricing , or the price of each unit in the tier if the charge model is tiered
/volume
pricing.
in cents, min=0
The decimal representation of the the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as
ending_unit_in_decimal
of the next lower tier. Returned only when the
line_items.pricing_model
is
tiered
,
volume
or
stairstep
and
multi-decimal pricing is enabled.
optional, string, max chars=33
The decimal representation of the highest value of quantity in this tier. This attribute is not applicable for the highest tier. For all other tiers, it must be equal to the
starting_unit_in_decimal
of the next higher tier. Returned only when the
line_items.pricing_model
is
tiered
,
volume
or stairstep and
multi-decimal pricing is enabled.
optional, string, max chars=33
The decimal representation of the quantity purchased from this tier. Returned when the
line_item
is quantity-based and
multi-decimal pricing is enabled.
optional, string, max chars=33
The decimal representation of the per-unit price for the tier when the
pricing_model
is
tiered
or
volume
. When the
pricing_model
is
stairstep
, it is the decimal representation of the total price for
line_item
. The value is in major units of the currency. Returned when the
line_item
is quantity-based and
multi-decimal pricing is enabled.
optional, string, max chars=40
The tax-lines of this Credit Note.
optional, list of tax
The name of the tax applied. E.g. GST.
string, max chars=100
The tax amount.
in cents, min=0
Description of the tax item.
optional, string, max chars=250
The list of taxes applied on line items.
optional, list of line_item_tax
The unique reference id of the line item for which the tax is applicable.
optional, string, max chars=40
The name of the tax applied.
string, max chars=100
The rate of tax used to calculate tax amount.
double, default=0.0, min=0.0, max=100.0
Indicates if tax is applied only on a portion of the line item amount.
optional, boolean
Indicates the non-compliance tax that should not be reported to the jurisdiction.
optional, boolean
Indicates the actual portion of the line item amount that is taxable.
in cents, min=0
The tax amount.
in cents, min=0
The type of tax jurisdiction.
optional, enumerated stringPossible values are
countryThe tax jurisdiction is a country.federalThe tax jurisdiction is a federal.stateThe tax jurisdiction is a state.countyThe tax jurisdiction is a county.cityThe tax jurisdiction is a city.specialSpecial tax jurisdiction.unincorporatedCombined tax of state and county.otherJurisdictions other than the ones listed above.
The name of the tax jurisdiction.
optional, string, max chars=250
The tax jurisdiction code.
optional, string, max chars=250
tax_amount_in_local_currency
Total tax amount in the currency of the place of supply. This is applicable only for Invoice and Credit Notes API.
optional, in cents, min=0
The currency code (ISO 4217 format) of the place of supply in which VAT needs to be converted and displayed. This is applicable only for Invoice and Credit Notes API.
optional, string, max chars=null
Refunds issued from this Credit Note.
optional, list of credit_note_transaction
Uniquely identifies the transaction.
string, max chars=40
The transaction amount applied to this invoice.
in cents, min=0
timestamp(UTC) in seconds
The status of this transaction.
optional, enumerated stringPossible values are
in_progressTransaction is being processed by the gateway. This typically happens for direct debit transactions or, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method.successThe transaction is successful.voidedThe transaction got voided or authorization expired at gateway.failureTransaction failed. Refer the 'error_code' and 'error_text' fields to know the reason for failure.timeoutTransaction failed because of Gateway not accepting the connection.needs_attentionConnection with Gateway got terminated abruptly. So, status of this transaction needs to be resolved manually.
Indicates when this transaction occurred.
optional, timestamp(UTC) in seconds
Total amount of the transaction.
optional, in cents, min=1
Reason code for the refund. Must be one from a list of reason codes set in the Chargebee app in Settings > Configure Chargebee > Reason Codes > Credit Notes > Refund Credit Note. Must be passed if set as mandatory in the app. The codes are case-sensitive.
optional, string, max chars=100
Invoice allocations made from this Credit Note.
optional, list of applied_credit
Amount of this refund transaction.
in cents, min=0
Indicates when this refund occured.
timestamp(UTC) in seconds
Closing date of the invoice. Typically this is the date on which invoice is generated.
optional, timestamp(UTC) in seconds
Current status of the invoice.
enumerated stringPossible values are
paidIndicates a paid invoice.postedIndicates the payment is not yet collected and will be in this state till the due date to indicate the due period.payment_dueIndicates the payment is not yet collected and is being retried as per retry settings.not_paidIndicates the payment is not made and all attempts to collect is failed.voidedIndicates a voided invoice.pending- Product Catalog 2.0: The invoice is
yet to be closed (sent for payment collection). An invoice is generated with this
status
when it has line items that
belong to items that are metered
or when the subscription.create_pending_invoices
attribute is set to true
.
- Product Catalog 1.0:
The invoice is yet to be
closed (sent for payment collection). All invoices are generated with this status
when Metered
Billing is enabled for the site.
.
Creates a Credit Note for an Invoice.
Sample Request
curl https://{site}.chargebee.com/api/v2/credit_notes \
-u {site_api_key}:\
-d reference_invoice_id="__demo_inv__1" \
-d total=500 \
-d type="refundable" \
-d reason_code="product_unsatisfactory" \
-d customer_notes="Products were returned because they were defective"
copy
curl https://{site}.chargebee.com/api/v2/credit_notes \
-u {site_api_key}:\
-d reference_invoice_id="__demo_inv__1" \
-d total=500 \
-d type="refundable" \
-d reason_code="product_unsatisfactory" \
-d customer_notes="Products were returned because they were defective"
Sample Response [ JSON ]
Show more...
{
"credit_note": {
"allocations": [],
"amount_allocated": 0,
"amount_available": 500,
"amount_refunded": 0,
"base_currency_code": "USD",
"create_reason_code": "Product Unsatisfactory",
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWSy4m5e",
"date": 1517501405,
"deleted": false,
"exchange_rate": 1,
"fractional_correction": 0,
"id": "__demo_cn__1",
"line_item_discounts": [],
"line_item_taxes": [],
"line_items": [
{
"amount": 500,
"customer_id": "__test__KyVnHhSBWSy4m5e",
"date_from": 1517501405,
"date_to": 1517501405,
"description": "Support Charge",
"discount_amount": 0,
"entity_type": "adhoc",
"id": "li___test__KyVnHhSBWSyHE5r",
"is_taxed": false,
"item_level_discount_amount": 0,
"object": "line_item",
"pricing_model": "flat_fee",
"quantity": 1,
"tax_amount": 0,
"tax_exempt_reason": "tax_not_configured",
"unit_amount": 500
},
{..}
],
"linked_refunds": [],
"object": "credit_note",
"price_type": "tax_exclusive",
"reason_code": "product_unsatisfactory",
"reference_invoice_id": "__demo_inv__1",
"resource_version": 1517501405000,
"round_off_amount": 0,
"status": "refund_due",
"sub_total": 500,
"taxes": [],
"total": 500,
"type": "refundable",
"updated_at": 1517501405
},
"invoice": {
"adjustment_credit_notes": [],
"amount_adjusted": 0,
"amount_due": 0,
"amount_paid": 1000,
"amount_to_collect": 0,
"applied_credits": [],
"base_currency_code": "USD",
"billing_address": {
"first_name": "Duncan",
"last_name": "Walpole",
"object": "billing_address",
"validation_status": "not_validated"
},
"credits_applied": 0,
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWSy4m5e",
"date": 1517501404,
"deleted": false,
"due_date": 1517501404,
"dunning_attempts": [],
"exchange_rate": 1,
"first_invoice": true,
"has_advance_charges": false,
"id": "__demo_inv__1",
"is_gifted": false,
"issued_credit_notes": [
{
"cn_create_reason_code": "Product Unsatisfactory",
"cn_date": 1517501405,
"cn_id": "__demo_cn__1",
"cn_reason_code": "product_unsatisfactory",
"cn_status": "refund_due",
"cn_total": 500
},
{..}
],
"line_items": [
{
"amount": 1000,
"customer_id": "__test__KyVnHhSBWSy4m5e",
"date_from": 1517501404,
"date_to": 1517501404,
"description": "Support Charge",
"discount_amount": 0,
"entity_type": "adhoc",
"id": "li___test__KyVnHhSBWSy9k5l",
"is_taxed": false,
"item_level_discount_amount": 0,
"object": "line_item",
"pricing_model": "flat_fee",
"quantity": 1,
"tax_amount": 0,
"tax_exempt_reason": "tax_not_configured",
"unit_amount": 1000
},
{..}
],
"linked_orders": [],
"linked_payments": [
{
"applied_amount": 1000,
"applied_at": 1517501404,
"txn_amount": 1000,
"txn_date": 1517501404,
"txn_id": "txn___test__KyVnHhSBWSyEh5m",
"txn_status": "success"
},
{..}
],
"net_term_days": 0,
"new_sales_amount": 1000,
"object": "invoice",
"paid_at": 1517501404,
"price_type": "tax_exclusive",
"recurring": false,
"resource_version": 1517501405000,
"round_off_amount": 0,
"status": "paid",
"sub_total": 1000,
"tax": 0,
"term_finalized": true,
"total": 1000,
"updated_at": 1517501405,
"write_off_amount": 0
}
}
URL Format POST
https://{site}.chargebee.com/api/v2/credit_notes
The identifier of the invoice against which this Credit Note is issued.
required, string, max chars=50
Credit Note amount in cents. You can either pass the total parameter or the line_items parameter. Passing both will result in an error.
optional, in cents, default=0, min=0
The credit note type.
required, enumerated stringPossible values are
adjustmentAdjustment Credit Note.refundableRefundable Credit Note.
The reason for issuing this Credit Note. The following reason codes are supported now[Deprecated; use the
create_reason_code parameter instead].
optional, enumerated stringPossible values are
product_unsatisfactoryProduct Unsatisfactory.service_unsatisfactoryService Unsatisfactory.order_changeOrder Change.order_cancellationOrder Cancellation.waiverWaiver.otherCan be set when none of the above reason codes are applicable.
Show all values[+]
Reason code for creating the credit note. Must be one from a list of reason codes set in the Chargebee app in Settings > Configure Chargebee > Reason Codes > Credit Notes > Create Credit Note. Must be passed if set as mandatory in the app. The codes are case-sensitive.
optional, string, max chars=100
The date the Credit Note is issued.
optional, timestamp(UTC) in seconds
A note to be added for this operation, to the credit note. This note is displayed on customer-facing documents such as the
Credit Note PDF.
optional, string, max chars=2000
An internal
comment to be added for this operation, to the credit note. This comment is displayed on the Chargebee UI. It is not displayed on any customer-facing
Hosted Page or any document such as the
Credit Note PDF.
optional, string, max chars=300
Parameters for line_items. Multiple line_items can be passed by specifying unique indices.
pass parameters as line_items[<param name>][<idx:0..n>]
line_items[reference_line_item_id][0..n]
Uniquely identifies a line_item.
required, string, max chars=40
line_items[unit_amount][0..n]
Unit amount of the line item. Required for FLAT_FEE, PER_UNIT and VOLUME pricing model.
optional, in cents
line_items[unit_amount_in_decimal][0..n]
The decimal representation of the unit amount of the
line_item
. The value is in major units of the currency. Applicable for the line_item when the
pricing_model
is
flat_fee
,
per_unit
or
volume
. Can be provided only when
multi-decimal pricing is enabled.
optional, string, max chars=33
line_items[quantity][0..n]
Quantity of the line item. Required for PER_UNIT and VOLUME pricing model.
optional, integer, default=1
line_items[quantity_in_decimal][0..n]
The decimal representation of the quantity of the
line_item
. Applicable for the
line_item
when the
pricing_model
is
per_unit
and
volume
. Can be provided only when
multi-decimal pricing is enabled.
optional, string, max chars=33
Amount of the line item. Applicable only for STAIRSTEP, TIERED pricing_model.
optional, in cents
line_items[date_from][0..n]
Start date of this line item.
optional, timestamp(UTC) in seconds
line_items[date_to][0..n]
End date of this line item.
optional, timestamp(UTC) in seconds
line_items[description][0..n]
Description for the line item.
optional, string, max chars=250
Resource object representing credit_note.
always returned
Resource object representing invoice.
always returned
Retrieves the Credit Note identified by the specified Credit Note number.
Sample Request
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__7 \
-u {site_api_key}:
copy
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__7 \
-u {site_api_key}:
Sample Response [ JSON ]
Show more...
{"credit_note": {
"allocations": [],
"amount_allocated": 0,
"amount_available": 500,
"amount_refunded": 0,
"base_currency_code": "USD",
"create_reason_code": "Product Unsatisfactory",
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWT0XH7a",
"date": 1517501414,
"deleted": false,
"exchange_rate": 1,
"fractional_correction": 0,
"id": "__demo_cn__7",
"line_item_discounts": [],
"line_item_taxes": [],
"line_items": [
{
"amount": 500,
"customer_id": "__test__KyVnHhSBWT0XH7a",
"date_from": 1517501414,
"date_to": 1517501414,
"description": "Support Charge",
"discount_amount": 0,
"entity_type": "adhoc",
"id": "li___test__KyVnHhSBWT0c77n",
"is_taxed": false,
"item_level_discount_amount": 0,
"object": "line_item",
"pricing_model": "flat_fee",
"quantity": 1,
"tax_amount": 0,
"tax_exempt_reason": "tax_not_configured",
"unit_amount": 500
},
{..}
],
"linked_refunds": [],
"object": "credit_note",
"price_type": "tax_exclusive",
"reason_code": "product_unsatisfactory",
"reference_invoice_id": "__demo_inv__7",
"resource_version": 1517501414000,
"round_off_amount": 0,
"status": "refund_due",
"sub_total": 500,
"taxes": [],
"total": 500,
"type": "refundable",
"updated_at": 1517501414
}}
URL Format GET
https://{site}.chargebee.com/api/v2/credit_notes/{credit_note_id}
Resource object representing credit_note.
always returned
Sample admin console URL
https://{site}.chargebee.com/admin-console/credit_notes/123x
Gets the credit note as PDF. The returned URL is secure and allows download. The URL will expire in 60 minutes.
Sample Request
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__4/pdf \
-X POST \
-u {site_api_key}:
copy
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__4/pdf \
-X POST \
-u {site_api_key}:
Sample Response [ JSON ]
Show more...
{"download": {
"download_url": "https://cb-local-downloads.s3.amazonaws.com/yourapp/credit_note/__test__KyVnHhSBWSzKF6n.pdf?response-content-disposition=attachment%3Bfilename%3Dyourapp%2Fcredit_note%2F__test__KyVnHhSBWSzKF6n.pdf&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20200924T161012Z&X-Amz-SignedHeaders=host&X-Amz-Expires=59&X-Amz-Credential=AKIAJI4SN7ONHAOGLOGA%2F20200924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=e4aae0313d24d0b5bd73d4292711dd15f94811f0e7a28a271fc92ce3606037ff",
"object": "download",
"valid_till": 1600963872
}}
URL Format POST
https://{site}.chargebee.com/api/v2/credit_notes/{credit_note_id}/pdf
Determines the pdf should be rendered as inline or attachment in the browser.
optional, enumerated string, default=attachmentPossible values are
attachmentpdf is rendered as attachment in the browser.inlinepdf is rendered as inline in the browser.
Resource object representing download.
always returned
Refunds a credit note to the payment source associated with the transaction.
A refundable credit note can be created from a paid or partially-paid invoice. Such credit notes can be refunded to the payment source used for paying the invoice.
Note:
Only a refundable credit note can be refunded.
Sample Request
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__6/refund \
-u {site_api_key}:\
-d customer_notes="Refunding as customer canceled the order." \
-d refund_amount=1000
copy
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__6/refund \
-u {site_api_key}:\
-d customer_notes="Refunding as customer canceled the order." \
-d refund_amount=1000
Sample Response [ JSON ]
Show more...
{
"credit_note": {
"allocations": [],
"amount_allocated": 0,
"amount_available": 0,
"amount_refunded": 1000,
"base_currency_code": "USD",
"create_reason_code": "Product Unsatisfactory",
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWT0N17C",
"date": 1517501413,
"deleted": false,
"exchange_rate": 1,
"fractional_correction": 0,
"id": "__demo_cn__6",
"line_item_discounts": [],
"line_item_taxes": [],
"line_items": [
{
"amount": 1000,
"customer_id": "__test__KyVnHhSBWT0N17C",
"date_from": 1517501413,
"date_to": 1517501413,
"description": "Support Charge",
"discount_amount": 0,
"entity_type": "adhoc",
"id": "li___test__KyVnHhSBWT0Rm7P",
"is_taxed": false,
"item_level_discount_amount": 0,
"object": "line_item",
"pricing_model": "flat_fee",
"quantity": 1,
"tax_amount": 0,
"tax_exempt_reason": "tax_not_configured",
"unit_amount": 1000
},
{..}
],
"linked_refunds": [
{
"applied_amount": 1000,
"applied_at": 1517501413,
"txn_amount": 1000,
"txn_date": 1517501413,
"txn_id": "txn___test__KyVnHhSBWT0Tk7T",
"txn_status": "success"
},
{..}
],
"object": "credit_note",
"price_type": "tax_exclusive",
"reason_code": "product_unsatisfactory",
"reference_invoice_id": "__demo_inv__6",
"refunded_at": 1517501413,
"resource_version": 1517501413000,
"round_off_amount": 0,
"status": "refunded",
"sub_total": 1000,
"taxes": [],
"total": 1000,
"type": "refundable",
"updated_at": 1517501413
},
"transaction": {
"amount": 1000,
"base_currency_code": "USD",
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWT0N17C",
"date": 1517501413,
"deleted": false,
"exchange_rate": 1,
"gateway": "chargebee",
"gateway_account_id": "gw___test__KyVnGlSBWSxm7Jj",
"id": "txn___test__KyVnHhSBWT0Tk7T",
"id_at_gateway": "cb___test__KyVnHhSBWT0Q57L",
"linked_credit_notes": [
{
"applied_amount": 1000,
"applied_at": 1517501413,
"cn_create_reason_code": "Product Unsatisfactory",
"cn_date": 1517501413,
"cn_id": "__demo_cn__6",
"cn_reason_code": "product_unsatisfactory",
"cn_reference_invoice_id": "__demo_inv__6",
"cn_status": "refunded",
"cn_total": 1000
},
{..}
],
"masked_card_number": "************1111",
"object": "transaction",
"payment_method": "card",
"payment_source_id": "pm___test__KyVnHhSBWT0Ni7E",
"refunded_txn_id": "txn___test__KyVnHhSBWT0Py7K",
"resource_version": 1517501413000,
"status": "success",
"type": "refund",
"updated_at": 1517501413
}
}
URL Format POST
https://{site}.chargebee.com/api/v2/credit_notes/{credit_note_id}/refund
Amount to be refunded. If not specified, the entire refundable amount for this credit note will be refunded.
optional, integer, min=1
A note to be added for this operation, to the credit note. This note is displayed on customer-facing documents such as the
Credit Note PDF.
optional, string, max chars=2000
Reason code for the refund. Must be one from a list of reason codes set in the Chargebee app in Settings > Configure Chargebee > Reason Codes > Credit Notes > Refund Credit Note. Must be passed if set as mandatory in the app. The codes are case-sensitive.
optional, string, max chars=100
Resource object representing credit_note.
always returned
Resource object representing transaction.
always returned
This API records the refund of credit notes.
Read more about recording refunds here.
Once the full-refund of the credit note has been successfully recorded, the status of the credit note changes to Refunded.
Sample Request
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__5/record_refund \
-u {site_api_key}:\
-d comment="Refunding as customer canceled the order." \
-d transaction[amount]=100 \
-d transaction[payment_method]="bank_transfer" \
-d transaction[date]=1517501412
copy
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__5/record_refund \
-u {site_api_key}:\
-d comment="Refunding as customer canceled the order." \
-d transaction[amount]=100 \
-d transaction[payment_method]="bank_transfer" \
-d transaction[date]=1517501412
Sample Response [ JSON ]
Show more...
{
"credit_note": {
"allocations": [],
"amount_allocated": 0,
"amount_available": 400,
"amount_refunded": 100,
"base_currency_code": "USD",
"create_reason_code": "Product Unsatisfactory",
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWT0B66o",
"date": 1517501412,
"deleted": false,
"exchange_rate": 1,
"fractional_correction": 0,
"id": "__demo_cn__5",
"line_item_discounts": [],
"line_item_taxes": [],
"line_items": [
{
"amount": 500,
"customer_id": "__test__KyVnHhSBWT0B66o",
"date_from": 1517501412,
"date_to": 1517501412,
"description": "Support Charge",
"discount_amount": 0,
"entity_type": "adhoc",
"id": "li___test__KyVnHhSBWT0IE71",
"is_taxed": false,
"item_level_discount_amount": 0,
"object": "line_item",
"pricing_model": "flat_fee",
"quantity": 1,
"tax_amount": 0,
"tax_exempt_reason": "tax_not_configured",
"unit_amount": 500
},
{..}
],
"linked_refunds": [
{
"applied_amount": 100,
"applied_at": 1517501412,
"txn_amount": 100,
"txn_date": 1517501412,
"txn_id": "txn___test__KyVnHhSBWT0Jm75",
"txn_status": "success"
},
{..}
],
"object": "credit_note",
"price_type": "tax_exclusive",
"reason_code": "product_unsatisfactory",
"reference_invoice_id": "__demo_inv__5",
"resource_version": 1517501413000,
"round_off_amount": 0,
"status": "refund_due",
"sub_total": 500,
"taxes": [],
"total": 500,
"type": "refundable",
"updated_at": 1517501413
},
"transaction": {
"amount": 100,
"base_currency_code": "USD",
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWT0B66o",
"date": 1517501412,
"deleted": false,
"exchange_rate": 1,
"gateway": "not_applicable",
"id": "txn___test__KyVnHhSBWT0Jm75",
"linked_credit_notes": [
{
"applied_amount": 100,
"applied_at": 1517501412,
"cn_create_reason_code": "Product Unsatisfactory",
"cn_date": 1517501412,
"cn_id": "__demo_cn__5",
"cn_reason_code": "product_unsatisfactory",
"cn_reference_invoice_id": "__demo_inv__5",
"cn_status": "refund_due",
"cn_total": 500
},
{..}
],
"object": "transaction",
"payment_method": "bank_transfer",
"resource_version": 1517501413000,
"status": "success",
"type": "refund",
"updated_at": 1517501413
}
}
URL Format POST
https://{site}.chargebee.com/api/v2/credit_notes/{credit_note_id}/record_refund
Reason code for the refund. Must be one from a list of reason codes set in the Chargebee app in Settings > Configure Chargebee > Reason Codes > Credit Notes > Refund Credit Note. Must be passed if set as mandatory in the app. The codes are case-sensitive.
optional, string, max chars=100
Remarks, if any, on the refund.
optional, string, max chars=300
Parameters for transaction
pass parameters as transaction[<param name>]
Amount to be recorded as refunded. If this parameter is not passed then the entire refundable amount will be recorded as refunded.
optional, in cents, min=1
transaction[payment_method]
The payment method of this transaction.
required, enumerated string, default=cardPossible values are
cashCash.checkCheck.chargebackOnly applicable for a transaction of type
= refund
. This value is set by Chargebee when an automated chargeback occurs. You can also set this explicitly when recording a refund.bank_transferBank Transfer.otherPayment Methods other than the above types.
Show all values[+]
transaction[reference_number]
The reference number for this transaction. For example, the check number when
payment_method
=
check
.
optional, string, max chars=100
Indicates when this transaction occurred.
required, timestamp(UTC) in seconds
Resource object representing credit_note.
always returned
Resource object representing transaction.
always returned
Use this API to void a credit note. A voided credit is a null entity and cannot be used again. A credit note which has already been voided or refunded cannot be voided. An error message will be displayed when you render such credit notes void.
Note: When adjustment credit notes are voided, the associated invoice will reflect as NOT PAID, and the amount in the invoice will be recalculated to reflect the amount after considering the voided credit note.
Sample Request
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__8/void \
-X POST \
-u {site_api_key}:
copy
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__8/void \
-X POST \
-u {site_api_key}:
Sample Response [ JSON ]
Show more...
{
"credit_note": {
"allocations": [],
"amount_allocated": 0,
"amount_available": 500,
"amount_refunded": 0,
"base_currency_code": "USD",
"create_reason_code": "Product Unsatisfactory",
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWT0fn7r",
"date": 1517501414,
"deleted": false,
"exchange_rate": 1,
"fractional_correction": 0,
"id": "__demo_cn__8",
"line_item_discounts": [],
"line_item_taxes": [],
"line_items": [
{
"amount": 500,
"customer_id": "__test__KyVnHhSBWT0fn7r",
"date_from": 1517501414,
"date_to": 1517501414,
"description": "Support Charge",
"discount_amount": 0,
"entity_type": "adhoc",
"id": "li___test__KyVnHhSBWT0kV84",
"is_taxed": false,
"item_level_discount_amount": 0,
"object": "line_item",
"pricing_model": "flat_fee",
"quantity": 1,
"tax_amount": 0,
"tax_exempt_reason": "tax_not_configured",
"unit_amount": 500
},
{..}
],
"linked_refunds": [],
"object": "credit_note",
"price_type": "tax_exclusive",
"reason_code": "product_unsatisfactory",
"reference_invoice_id": "__demo_inv__8",
"resource_version": 1517501414000,
"round_off_amount": 0,
"status": "voided",
"sub_total": 500,
"taxes": [],
"total": 500,
"type": "refundable",
"updated_at": 1517501414,
"voided_at": 1517501414
},
"invoice": {
"adjustment_credit_notes": [],
"amount_adjusted": 0,
"amount_due": 0,
"amount_paid": 1000,
"amount_to_collect": 0,
"applied_credits": [],
"base_currency_code": "USD",
"billing_address": {
"first_name": "Duncan",
"last_name": "Walpole",
"object": "billing_address",
"validation_status": "not_validated"
},
"credits_applied": 0,
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWT0fn7r",
"date": 1517501414,
"deleted": false,
"due_date": 1517501414,
"dunning_attempts": [],
"exchange_rate": 1,
"first_invoice": true,
"has_advance_charges": false,
"id": "__demo_inv__8",
"is_gifted": false,
"issued_credit_notes": [
{
"cn_create_reason_code": "Product Unsatisfactory",
"cn_date": 1517501414,
"cn_id": "__demo_cn__8",
"cn_reason_code": "product_unsatisfactory",
"cn_status": "voided",
"cn_total": 500
},
{..}
],
"line_items": [
{
"amount": 1000,
"customer_id": "__test__KyVnHhSBWT0fn7r",
"date_from": 1517501414,
"date_to": 1517501414,
"description": "Support Charge",
"discount_amount": 0,
"entity_type": "adhoc",
"id": "li___test__KyVnHhSBWT0iC7y",
"is_taxed": false,
"item_level_discount_amount": 0,
"object": "line_item",
"pricing_model": "flat_fee",
"quantity": 1,
"tax_amount": 0,
"tax_exempt_reason": "tax_not_configured",
"unit_amount": 1000
},
{..}
],
"linked_orders": [],
"linked_payments": [
{
"applied_amount": 1000,
"applied_at": 1517501414,
"txn_amount": 1000,
"txn_date": 1517501414,
"txn_id": "txn___test__KyVnHhSBWT0ir7z",
"txn_status": "success"
},
{..}
],
"net_term_days": 0,
"new_sales_amount": 1000,
"object": "invoice",
"paid_at": 1517501414,
"price_type": "tax_exclusive",
"recurring": false,
"resource_version": 1517501414000,
"round_off_amount": 0,
"status": "paid",
"sub_total": 1000,
"tax": 0,
"term_finalized": true,
"total": 1000,
"updated_at": 1517501414,
"write_off_amount": 0
}
}
URL Format POST
https://{site}.chargebee.com/api/v2/credit_notes/{credit_note_id}/void
Reason for voiding credit note. This comment will be added to the credit note.
optional, string, max chars=300
Resource object representing credit_note.
always returned
Lists all the Credit Notes.
Sample Request
curl https://{site}.chargebee.com/api/v2/credit_notes \
-G \
-u {site_api_key}:\
--data-urlencode limit=3 \
--data-urlencode type[is]="refundable" \
--data-urlencode sort_by[asc]="date"
copy
curl https://{site}.chargebee.com/api/v2/credit_notes \
-G \
-u {site_api_key}:\
--data-urlencode limit=3 \
--data-urlencode type[is]="refundable" \
--data-urlencode sort_by[asc]="date"
Sample Response [ JSON ]
Show more...
{"list": [
{"credit_note": {
"allocations": [],
"amount_allocated": 0,
"amount_available": 500,
"amount_refunded": 0,
"base_currency_code": "USD",
"create_reason_code": "Product Unsatisfactory",
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWSy4m5e",
"date": 1517501405,
"deleted": false,
"exchange_rate": 1,
"fractional_correction": 0,
"id": "__demo_cn__1",
"line_item_discounts": [],
"line_item_taxes": [],
"line_items": [
{
"amount": 500,
"customer_id": "__test__KyVnHhSBWSy4m5e",
"date_from": 1517501405,
"date_to": 1517501405,
"description": "Support Charge",
"discount_amount": 0,
"entity_type": "adhoc",
"id": "li___test__KyVnHhSBWSyHE5r",
"is_taxed": false,
"item_level_discount_amount": 0,
"object": "line_item",
"pricing_model": "flat_fee",
"quantity": 1,
"tax_amount": 0,
"tax_exempt_reason": "tax_not_configured",
"unit_amount": 500
},
{..}
],
"linked_refunds": [],
"object": "credit_note",
"price_type": "tax_exclusive",
"reason_code": "product_unsatisfactory",
"reference_invoice_id": "__demo_inv__1",
"resource_version": 1517501405000,
"round_off_amount": 0,
"status": "refund_due",
"sub_total": 500,
"taxes": [],
"total": 500,
"type": "refundable",
"updated_at": 1517501405
}},
{..}
]}
URL Format GET
https://{site}.chargebee.com/api/v2/credit_notes
The number of resources to be returned.
optional, integer, default=10, min=1, max=100
Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set offset
to the value of next_offset
obtained in the previous iteration of the API call.
optional, string, max chars=1000
If set to true, includes the deleted resources in the response. For the deleted resources in the response, the 'deleted' attribute will be 'true'.
optional, boolean, default=false
Sorts based on the specified attribute.
Supported attributes : date
Supported sort-orders : asc, desc
Example → sort_by[asc] = "date"
This will sort the result based on the 'date' attribute in ascending(earliest first) order.
optional, string filter
Credit-note id.
Supported operators : is, is_not, starts_with, in, not_in
Example → id[is_not] = "CN_123"
optional, string filter
The identifier of the customer this Credit Note belongs to.
Supported operators : is, is_not, starts_with, in, not_in
Example → customer_id[is] = "4gmiXbsjdm"
optional, string filter
subscription_id[<operator>]
To filter based on subscription_id. NOTE: Not to be used if consolidated invoicing feature is enabled.
Supported operators : is, is_not, starts_with, is_present, in, not_in
Example → subscription_id[is] = "4gmiXbsjdm"
optional, string filter
reference_invoice_id[<operator>]
The identifier of the invoice against which this Credit Note is issued.
Supported operators : is, is_not, starts_with, in, not_in
Example → reference_invoice_id[is] = "INVOICE_876"
optional, string filter
The credit note type. Possible values are : adjustment, refundable.
Supported operators : is, is_not, in, not_in
Example → type[is_not] = "adjustment"
optional, enumerated string filter
The reason for issuing this Credit Note. The following reason codes are supported now[Deprecated; use the
create_reason_code parameter instead]. Possible values are :
write_off, subscription_change, subscription_cancellation, subscription_pause, chargeback, product_unsatisfactory, service_unsatisfactory, order_change, order_cancellation, waiver, other, fraudulent.Supported operators : is, is_not, in, not_in
Example → reason_code[is_not] = "waiver"optional, enumerated string filter
create_reason_code[<operator>]
Reason code for creating the credit note. Must be one from a list of reason codes set in the Chargebee app in Settings > Configure Chargebee > Reason Codes > Credit Notes > Create Credit Note. Must be passed if set as mandatory in the app. The codes are case-sensitive.
Supported operators : is, is_not, starts_with, in, not_in
Example → create_reason_code[is_not] = "Other"
optional, string filter
The credit note status. Possible values are : adjusted, refunded, refund_due, voided.
Supported operators : is, is_not, in, not_in
Example → status[is] = "adjusted"
optional, enumerated string filter
The date the Credit Note is issued.
Supported operators : after, before, on, between
Example → date[before] = "1435054328"
optional, timestamp(UTC) in seconds filter
Credit Note amount in cents.
Supported operators : is, is_not, lt, lte, gt, gte, between
Example → total[gt] = "1200"
optional, in cents filter
The price type of the Credit Note. Possible values are : tax_exclusive, tax_inclusive.
Supported operators : is, is_not, in, not_in
Example → price_type[is] = "tax_exclusive"
optional, enumerated string filter
amount_allocated[<operator>]
The amount allocated to the invoices.
Supported operators : is, is_not, lt, lte, gt, gte, between
Example → amount_allocated[is_not] = "1200"
optional, in cents filter
amount_refunded[<operator>]
The refunds issued from this Credit Note.
Supported operators : is, is_not, lt, lte, gt, gte, between
Example → amount_refunded[lt] = "130"
optional, in cents filter
amount_available[<operator>]
The yet to be used credits of this Credit Note.
Supported operators : is, is_not, lt, lte, gt, gte, between
Example → amount_available[is] = "1400"
optional, in cents filter
Timestamp indicating the date & time this credit note got voided.
Supported operators : after, before, on, between
Example → voided_at[on] = "1435054328"
optional, timestamp(UTC) in seconds filter
To filter based on updated at. This attribute will be present only if the resource has been updated after 2016-09-28.
Supported operators : after, before, on, between
Example → updated_at[after] = "1243545465"
optional, timestamp(UTC) in seconds filter
Resource object representing credit_note.
always returned
next_offset
This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter “offset”.
optional, string, max chars=1000
This API deletes a credit note. A credit note once deleted, is deleted permanently. You cannot delete a credit which has already been deleted or refunded. If you try to delete a refunded or deleted credit note, an error message will be displayed.
Sample Request
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__2/delete \
-X POST \
-u {site_api_key}:
copy
curl https://{site}.chargebee.com/api/v2/credit_notes/__demo_cn__2/delete \
-X POST \
-u {site_api_key}:
Sample Response [ JSON ]
Show more...
{"credit_note": {
"allocations": [],
"amount_allocated": 0,
"amount_available": 500,
"amount_refunded": 0,
"base_currency_code": "USD",
"create_reason_code": "Product Unsatisfactory",
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWSyLN5v",
"date": 1517501405,
"deleted": false,
"exchange_rate": 1,
"fractional_correction": 0,
"id": "__demo_cn__2",
"line_item_discounts": [],
"line_item_taxes": [],
"line_items": [
{
"amount": 500,
"customer_id": "__test__KyVnHhSBWSyLN5v",
"date_from": 1517501405,
"date_to": 1517501405,
"description": "Service Charge",
"discount_amount": 0,
"entity_type": "adhoc",
"id": "li___test__KyVnHhSBWSyQ668",
"is_taxed": false,
"item_level_discount_amount": 0,
"object": "line_item",
"pricing_model": "flat_fee",
"quantity": 1,
"tax_amount": 0,
"tax_exempt_reason": "tax_not_configured",
"unit_amount": 500
},
{..}
],
"linked_refunds": [],
"object": "credit_note",
"price_type": "tax_exclusive",
"reason_code": "product_unsatisfactory",
"reference_invoice_id": "__demo_inv__2",
"resource_version": 1517501405000,
"round_off_amount": 0,
"status": "refund_due",
"sub_total": 500,
"taxes": [],
"total": 500,
"type": "refundable",
"updated_at": 1517501405
}}
URL Format POST
https://{site}.chargebee.com/api/v2/credit_notes/{credit_note_id}/delete
Reason for deleting this credit note. This comment will be added to the associated invoice entity.
optional, string, max chars=300
Resource object representing credit_note.
always returned