View as Markdown
API Spec (JSON)
API Spec (YAML)
Compact modeHides field descriptions and other prose for a more compact, scannable view of the API reference.Webhook for credit note creation.
application/json
Details of the credit note when created.
TypeScript Definitions
Use the request body type in TypeScript.
linksobject<Link>[]Optionalresource_typeenum<ResourceType>Requiredevent_typeenum<EventType>Requiredresourceobject<CreditNoteWithId>Requiredbilling_entity_codestring<BillingEntityCode>Requiredissuing_datestring<Date>Requiredcredit_statusenum<CreditNoteStatus>Optionalrefund_statusenum<RefundStatus>Optionalreasonenum<CreditNoteReason>Requiredtotal_amountobject<Amount>Requiredcurrency_codestring<Currency>Requiredtaxes_amountobject<Amount>Requiredcurrency_codestring<Currency>Requiredsub_total_excluding_taxes_amountobject<Amount>Requiredcurrency_codestring<Currency>Requiredbalance_amountobject<Amount>Requiredcurrency_codestring<Currency>Requiredcredit_amountobject<Amount>Requiredcurrency_codestring<Currency>Requiredrefund_amountobject<Amount>Requiredcurrency_codestring<Currency>Requiredcreated_atstring<DateTimeWithZone>Requiredupdated_atstring<DateTimeWithZone>Requireditemsobject<CreditNoteItemObject>[]Optionalamountobject<Amount>Requiredcurrency_codestring<Currency>Requiredfeeobject<FeeObject>Requiredapplied_taxesobject<CreditNoteAppliedTaxObject>[]Optionalbase_amountobject<Amount>Optionalcurrency_codestring<Currency>Requiredamountobject<Amount>Optionalcurrency_codestring<Currency>Requiredcreated_atstring<DateTimeWithZone>OptionalExample Requests
/usage-billing.credit-note.created