Reference

Endpoint Retrieve an Invoice Line Items


Name

get_invoice_lines

Description

When retrieving an invoice, you’ll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. [API reference]

Parameters

Parameter Required Options
Name: InvoiceId

Label: Invoice Id

Retrieve an invoice line items for the Invoice Id.
YES

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
Id DT_WSTR nvarchar(255) 255
InvoiceItemId DT_WSTR nvarchar(255) 255
SubscriptionId DT_WSTR nvarchar(1020) 1020
Object DT_WSTR nvarchar(100) 100
Amount DT_I8 bigint
AmountDecimal DT_WSTR nvarchar(100) 100
Currency DT_WSTR nvarchar(100) 100
Description DT_WSTR nvarchar(1020) 1020
DiscountAmounts DT_WSTR nvarchar(1020) 1020
Discounts DT_WSTR nvarchar(100) 100
Discountable DT_BOOL bit
Livemode DT_BOOL bit
PeriodEnd DT_DBTIMESTAMP datetime
PeriodStart DT_DBTIMESTAMP datetime
Plan DT_WSTR nvarchar(1020) 1020
PriceID DT_WSTR nvarchar(255) 255
PriceObject DT_WSTR nvarchar(100) 100
PriceActive DT_BOOL bit
PriceBillingScheme DT_WSTR nvarchar(100) 100
PriceCreated DT_DBTIMESTAMP datetime
PriceCurrency DT_WSTR nvarchar(100) 100
PriceLivemode DT_BOOL bit
PriceLookupKey DT_WSTR nvarchar(1020) 1020
PriceNickname DT_WSTR nvarchar(1020) 1020
PriceProductId DT_WSTR nvarchar(100) 100
PriceRecurringTrialPeriodDays DT_I4 int
PriceTiersMode DT_WSTR nvarchar(1020) 1020
PriceTransformQuantity DT_WSTR nvarchar(1020) 1020
PriceType DT_WSTR nvarchar(100) 100
PriceUnitAmount DT_I8 bigint
PriceUnitAmountDecimal DT_WSTR nvarchar(100) 100
Proration DT_BOOL bit
Quantity DT_I8 bigint
TaxAmounts DT_WSTR nvarchar(100) 100
TaxRates DT_WSTR nvarchar(100) 100
Type DT_WSTR nvarchar(100) 100
If the column you are looking for is missing, consider customizing Stripe Connector.

Input 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.

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
Retrieve an Invoice Line Items
Required Parameters
Invoice Id Fill-in the parameter...
SSIS API Source - Read from table or endpoint

API Destination

API Destination - Stripe
This connector support read/write operations for Stripe APIs
Stripe
Retrieve an Invoice Line Items
Required Parameters
Invoice Id Fill-in the parameter...
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Retrieve an invoice line items

SELECT * FROM get_invoice_lines
WHERE InvoiceId = 'abcd-1234-invoiceid'

SQL Server

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

Retrieve an invoice line items

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_invoice_lines
WHERE InvoiceId = ''abcd-1234-invoiceid''';

EXEC (@MyQuery) AT [LS_TO_STRIPE_IN_GATEWAY];