POST /v1/invoiceitems/{invoiceitem}
Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it’s attached to is closed.
Servers
- https://api.stripe.com/
Path parameters
Name | Type | Required | Description |
---|---|---|---|
invoiceitem |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/x-www-form-urlencoded" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
discounts |
No |
The coupons, promotion codes & 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. |
|
pricing |
Object | No |
The pricing information for the invoice item. |
pricing.price |
String | No | |
description |
String | No |
An arbitrary string which you can attach to the invoice item. The description is displayed in the invoice for easy tracking. |
tax_rates |
No |
The tax rates which apply to the invoice item. When set, the |
|
tax_code |
No |
A tax code ID. |
|
expand[] |
Array | No |
Specifies which fields in the response should be expanded. |
quantity |
Integer | No |
Non-negative integer. The quantity of units for the invoice item. |
metadata |
No |
Set of key-value pairs 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 |
|
period |
Object | No |
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 enabled, the period will be used to recognize and defer revenue. See the Revenue Recognition documentation for details. |
period.end |
Integer | Yes | |
period.start |
Integer | Yes | |
unit_amount_decimal |
String | No |
The decimal unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This |
amount |
Integer | No |
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. |
discountable |
Boolean | No |
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. |
price_data |
Object | No |
Data used to generate a new Price object inline. |
price_data.unit_amount |
Integer | No | |
price_data.unit_amount_decimal |
String | No | |
price_data.product |
String | Yes | |
price_data.tax_behavior |
String | No |
Possible values:
|
price_data.currency |
String | Yes | |
tax_behavior |
String | No |
Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of Possible values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.