Stripe · Schema
PostCreditNotesRequest
CommerceFinancial ServicesFintechPaymentsT1StripeAgentic CommercePoint-of-SalePayment Processing
Properties
| Name | Type | Description |
|---|---|---|
| amount | integer | The integer amount in cents (or local equivalent) representing the total amount of the credit note. |
| credit_amount | integer | The 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_at | integer | 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. |
| expand | array | Specifies which fields in the response should be expanded. |
| invoice | string | ID of the invoice. |
| lines | array | Line items that make up the credit note. |
| memo | string | The credit note's memo appears on the credit note PDF. |
| metadata | object | Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individu |
| out_of_band_amount | integer | The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe. |
| reason | string | Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory` |
| refund | string | ID of an existing refund to link this credit note to. |
| refund_amount | integer | The 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 | object | When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/stripe/main/json-schema/stripe-post-credit-notes-request-schema.json",
"title": "PostCreditNotesRequest",
"x-generated": "2026-10-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/stripe-credit-notes-api-openapi.yml#/components/schemas/PostCreditNotesRequest",
"type": "object",
"required": [
"invoice"
],
"properties": {
"amount": {
"description": "The integer amount in cents (or local equivalent) representing the total amount of the credit note.",
"type": "integer"
},
"credit_amount": {
"description": "The 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.",
"type": "integer"
},
"effective_at": {
"description": "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.",
"format": "unix-time",
"type": "integer"
},
"expand": {
"description": "Specifies which fields in the response should be expanded.",
"items": {
"maxLength": 5000,
"type": "string"
},
"type": "array"
},
"invoice": {
"description": "ID of the invoice.",
"maxLength": 5000,
"type": "string"
},
"lines": {
"description": "Line items that make up the credit note.",
"items": {
"properties": {
"amount": {
"type": "integer"
},
"description": {
"maxLength": 5000,
"type": "string"
},
"invoice_line_item": {
"maxLength": 5000,
"type": "string"
},
"quantity": {
"type": "integer"
},
"tax_amounts": {
"anyOf": [
{
"items": {
"properties": {
"amount": {
"type": "integer"
},
"tax_rate": {
"maxLength": 5000,
"type": "string"
},
"taxable_amount": {
"type": "integer"
}
},
"required": [
"amount",
"tax_rate",
"taxable_amount"
],
"title": "tax_amount_with_tax_rate_param",
"type": "object"
},
"type": "array"
},
{
"enum": [
""
],
"type": "string"
}
]
},
"tax_rates": {
"anyOf": [
{
"items": {
"maxLength": 5000,
"type": "string"
},
"type": "array"
},
{
"enum": [
""
],
"type": "string"
}
]
},
"type": {
"enum": [
"custom_line_item",
"invoice_line_item"
],
"type": "string"
},
"unit_amount": {
"type": "integer"
},
"unit_amount_decimal": {
"format": "decimal",
"type": "string"
}
},
"required": [
"type"
],
"title": "credit_note_line_item_params",
"type": "object"
},
"type": "array"
},
"memo": {
"description": "The credit note's memo appears on the credit note PDF.",
"maxLength": 5000,
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.",
"type": "object"
},
"out_of_band_amount": {
"description": "The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe.",
"type": "integer"
},
"reason": {
"description": "Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`",
"enum": [
"duplicate",
"fraudulent",
"order_change",
"product_unsatisfactory"
],
"type": "string"
},
"refund": {
"description": "ID of an existing refund to link this credit note to.",
"type": "string"
},
"refund_amount": {
"description": "The 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.",
"type": "integer"
},
"shipping_cost": {
"description": "When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.",
"properties": {
"shipping_rate": {
"maxLength": 5000,
"type": "string"
}
},
"title": "credit_note_shipping_cost",
"type": "object"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/stripe-post-credit-notes-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.