Home / Servers / Stripe API / post_invoiceitems
Create an invoice item
An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.
Create an invoice item Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified. [POST /v1/invoiceitems]
Name on the gateway: stripe_api__post_invoiceitems · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
amount | integer | The integer amount in cents (or local equivalent) of the charge to be applied… |
currency | string | Three-letter ISO currency code, in lowercase. Must be a supported currency. |
customer | string | The ID of the customer to bill for this invoice item. |
customer_account | string | The ID of the account representing the customer to bill for this invoice item. |
description | string | An arbitrary string which you can attach to the invoice item. The description… |
discountable | boolean | Controls whether discounts apply to this invoice item. Defaults to false for… |
discounts | array | The coupons and promotion codes to redeem into discounts for the invoice item… |
expand | array | Specifies which fields in the response should be expanded. |
invoice | string | The ID of an existing invoice to add this invoice item to. For subscription… |
metadata | object | Set of key-value pairs that you can attach to an object. This can be useful… |
period | object | The period associated with this invoice item. When set to different values… |
price_data | object | Data used to generate a new Price object inline. |
pricing | object | The pricing information for the invoice item. |
quantity | integer | Non-negative integer. The quantity of units for the invoice item. Use… |
quantity_decimal | string | Non-negative decimal with at most 12 decimal places. The quantity of units for… |
subscription | string | The ID of a subscription to add this invoice item to. When left blank, the… |
tax_behavior | exclusive | inclusive | unspecified | Only required if a default tax behavior) was not provided in the Stripe Tax… |
tax_code | string | A tax code ID. |
tax_rates | array | The tax rates which apply to the invoice item. When set, the default_tax_rates… |
unit_amount_decimal | string | The decimal unit amount in cents (or local equivalent) of the charge to be… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "stripe_api__post_invoiceitems",
"arguments": {}
}Or connect the Stripe API server directly, which lists 606 tools including this one:
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create an invoice item tool with amount set to ….