Reference

Endpoint Delete an Invoice Item


Name

delete_invoice_item

Description

Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they’re not attached to invoices, or if it’s attached to a draft invoice. [API reference]

Related Tables

InvoiceItems

Parameters

Parameter Required Options
Name: Id

Label: Invoice Item Id

Delete an invoice item for the Invoice Id.
YES

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime.
If the column you are looking for is missing, consider customizing Stripe Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
Id DT_WSTR nvarchar(4000) 4000
Required columns that you need to supply are bolded.

Examples

SSIS

Use Stripe Connector in API Source or in API Destination SSIS Data Flow components to read or write data.

API Source

API Source - Stripe
This connector support read/write operations for Stripe APIs
Stripe
Delete an Invoice Item
Required Parameters
Invoice Item Id Fill-in the parameter...
Optional Parameters
ContineOn404Error True
SSIS API Source - Read from table or endpoint

API Destination

This Endpoint belongs to the InvoiceItems table, therefore it is better to use it, instead of accessing the endpoint directly. Use this table and table-operation pair to delete an invoice item:

API Destination - Stripe
This connector support read/write operations for Stripe APIs
Stripe
InvoiceItems
Delete
Required Parameters
Invoice Item Id Fill-in the parameter...
Optional Parameters
ContineOn404Error True
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Delete an invoice item

SELECT * FROM InvoiceItems
WHERE Id = 'abcd-1234-id'

delete_invoice_item endpoint belongs to InvoiceItems table(s), and can therefore be used via those table(s).

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Delete an invoice item

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM InvoiceItems
WHERE Id = ''abcd-1234-id''';

EXEC (@MyQuery) AT [LS_TO_STRIPE_IN_GATEWAY];

delete_invoice_item endpoint belongs to InvoiceItems table(s), and can therefore be used via those table(s).