Stripe · Schema
PostInvoice_ItemsInvoiceitemRequest
CommerceFinancial ServicesFintechPaymentsT1StripeAgentic CommercePoint-of-SalePayment Processing
Properties
| Name | Type | Description |
|---|---|---|
| amount | integer | The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. If you want to apply a credit to the customer's account, pass a negative amount. |
| description | string | An arbitrary string which you can attach to the invoice item. The description is displayed in the invoice for easy tracking. |
| discountable | boolean | Controls whether discounts apply to this invoice item. Defaults to false for prorations or negative invoice items, and true for all other invoice items. Cannot be set to true for prorations. |
| discounts | object | The coupons & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts. |
| expand | array | Specifies which fields in the response should be expanded. |
| 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 |
| period | object | The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recogni |
| price | string | The ID of the price object. |
| price_data | object | Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. |
| quantity | integer | Non-negative integer. The quantity of units for the invoice item. |
| tax_behavior | string | Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax setti |
| tax_code | object | A [tax code](https://stripe.com/docs/tax/tax-categories) ID. |
| tax_rates | object | The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item. Pass an empty string to remove previously-defined tax rates. |
| unit_amount | integer | The integer unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This unit_amount will be multiplied by the quantity to get the full amount. If you want to a |
| unit_amount_decimal | string | Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/stripe/main/json-schema/stripe-post-invoice-items-invoiceitem-request-schema.json",
"title": "PostInvoice_ItemsInvoiceitemRequest",
"x-generated": "2026-10-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/stripe-invoice-api-openapi.yml#/components/schemas/PostInvoice_ItemsInvoiceitemRequest",
"type": "object",
"properties": {
"amount": {
"description": "The integer amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. If you want to apply a credit to the customer's account, pass a negative amount.",
"type": "integer"
},
"description": {
"description": "An arbitrary string which you can attach to the invoice item. The description is displayed in the invoice for easy tracking.",
"maxLength": 5000,
"type": "string"
},
"discountable": {
"description": "Controls whether discounts apply to this invoice item. Defaults to false for prorations or negative invoice items, and true for all other invoice items. Cannot be set to true for prorations.",
"type": "boolean"
},
"discounts": {
"anyOf": [
{
"items": {
"properties": {
"coupon": {
"maxLength": 5000,
"type": "string"
},
"discount": {
"maxLength": 5000,
"type": "string"
}
},
"title": "discounts_data_param",
"type": "object"
},
"type": "array"
},
{
"enum": [
""
],
"type": "string"
}
],
"description": "The coupons & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts."
},
"expand": {
"description": "Specifies which fields in the response should be expanded.",
"items": {
"maxLength": 5000,
"type": "string"
},
"type": "array"
},
"metadata": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"enum": [
""
],
"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`."
},
"period": {
"description": "The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.",
"properties": {
"end": {
"format": "unix-time",
"type": "integer"
},
"start": {
"format": "unix-time",
"type": "integer"
}
},
"required": [
"end",
"start"
],
"title": "period",
"type": "object"
},
"price": {
"description": "The ID of the price object.",
"maxLength": 5000,
"type": "string"
},
"price_data": {
"description": "Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.",
"properties": {
"currency": {
"type": "string"
},
"product": {
"maxLength": 5000,
"type": "string"
},
"tax_behavior": {
"enum": [
"exclusive",
"inclusive",
"unspecified"
],
"type": "string"
},
"unit_amount": {
"type": "integer"
},
"unit_amount_decimal": {
"format": "decimal",
"type": "string"
}
},
"required": [
"currency",
"product"
],
"title": "one_time_price_data",
"type": "object"
},
"quantity": {
"description": "Non-negative integer. The quantity of units for the invoice item.",
"type": "integer"
},
"tax_behavior": {
"description": "Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.",
"enum": [
"exclusive",
"inclusive",
"unspecified"
],
"type": "string"
},
"tax_code": {
"anyOf": [
{
"type": "string"
},
{
"enum": [
""
],
"type": "string"
}
],
"description": "A [tax code](https://stripe.com/docs/tax/tax-categories) ID."
},
"tax_rates": {
"anyOf": [
{
"items": {
"maxLength": 5000,
"type": "string"
},
"type": "array"
},
{
"enum": [
""
],
"type": "string"
}
],
"description": "The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item. Pass an empty string to remove previously-defined tax rates."
},
"unit_amount": {
"description": "The integer unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This unit_amount will be multiplied by the quantity to get the full amount. If you want to apply a credit to the customer's account, pass a negative unit_amount.",
"type": "integer"
},
"unit_amount_decimal": {
"description": "Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.",
"format": "decimal",
"type": "string"
}
}
}
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-invoice-items-invoiceitem-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.