Reference

Endpoint Get Product Prices


Name

get_product_prices

Description

Related Tables

ProductPrices

Parameters

Parameter Required Options
Name: Country

Label: Country Code

Name: Currency

Label: Currency Code

Name: PageSize

Label: PageSize

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
Product DT_WSTR nvarchar(200) 200
Country DT_WSTR nvarchar(8) 8
Currency DT_WSTR nvarchar(12) 12
Price DT_R8 float
PriceDisplay DT_WSTR nvarchar(50) 50
Discount2DiscountPercent DT_R8 float
Discount2DiscountValue DT_R8 float
Discount2DiscountValueDisplay DT_WSTR nvarchar(50) 50
Discount2UnitPrice DT_R8 float
Discount2UnitPriceDisplay DT_WSTR nvarchar(50) 50
Discount3DiscountPercent DT_R8 float
Discount3DiscountValue DT_R8 float
Discount3DiscountValueDisplay DT_WSTR nvarchar(50) 50
Discount3UnitPrice DT_R8 float
Discount3UnitPriceDisplay DT_WSTR nvarchar(50) 50
Discount4DiscountPercent DT_R8 float
Discount4DiscountValue DT_R8 float
Discount4DiscountValueDisplay DT_WSTR nvarchar(50) 50
Discount4UnitPrice DT_R8 float
Discount4UnitPriceDisplay DT_WSTR nvarchar(50) 50
Discount5DiscountPercent DT_R8 float
Discount5DiscountValue DT_R8 float
Discount5DiscountValueDisplay DT_WSTR nvarchar(50) 50
Discount5UnitPrice DT_R8 float
Discount5UnitPriceDisplay DT_WSTR nvarchar(50) 50
DiscountReason DT_WSTR nvarchar(64) 64
DiscountPeriodCount DT_WSTR nvarchar(4000) 4000
AvailableStart DT_DBDATE date
AvailableEnd DT_DBDATE date
SetupFeePrice DT_R8 float
SetupFeePriceDisplay DT_WSTR nvarchar(50) 50
SetupFeeReason DT_WSTR nvarchar(100) 100
If the column you are looking for is missing, consider customizing FastSpring 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 FastSpring Connector in API Source or in API Destination SSIS Data Flow components to read or write data.

API Source

This Endpoint belongs to the ProductPrices table, therefore it is better to use it, instead of accessing the endpoint directly:

API Source - FastSpring
Read / write FastSpring data related to Orders, Subscriptions, Quotes, Products, Accounts and more without coding.
FastSpring
ProductPrices
Optional Parameters
Country Code
Currency Code
EnablePivot True
SSIS API Source - Read from table or endpoint

API Destination

This Endpoint belongs to the ProductPrices table, therefore it is better to use it, instead of accessing the endpoint directly. Use this table and table-operation pair to get product prices:

API Destination - FastSpring
Read / write FastSpring data related to Orders, Subscriptions, Quotes, Products, Accounts and more without coding.
FastSpring
ProductPrices
Select
Optional Parameters
Country Code
Currency Code
EnablePivot True
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Read product prices

List product prices for specified currency or country. If you do not pass Country or Currency Parameter then all prices for all countries listed

SELECT 
 Product,
 Country,
 Currency,
 Price,
 PriceDisplay,
 
 Discount2DiscountPercent,
 Discount2DiscountValue,
 Discount2DiscountValueDisplay,
 Discount2UnitPrice,
 Discount2UnitPriceDisplay,
 
 Discount3DiscountPercent,
 Discount3DiscountValue,
 Discount3DiscountValueDisplay,
 Discount3UnitPrice,
 Discount3UnitPriceDisplay,
 
 Discount4DiscountPercent,
 Discount4DiscountValue,
 Discount4DiscountValueDisplay,
 Discount4UnitPrice,
 Discount4UnitPriceDisplay,
 
 Discount5DiscountPercent,
 Discount5DiscountValue,
 Discount5DiscountValueDisplay,
 Discount5UnitPrice,
 Discount5UnitPriceDisplay,
 
 DiscountReasonEn,
 DiscountPeriodCount,

 AvailableStart,
 AvailableEnd,
 SetupFeePrice,
 SetupFeePriceDisplay,
 SetupFeeReasonEn
 
FROM ProductPrices 
--WITH(Country='US') --//get prices for a specific country
--WITH(Currency='USD') --//get proces for a specific currency

get_product_prices endpoint belongs to ProductPrices 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:

Read product prices

List product prices for specified currency or country. If you do not pass Country or Currency Parameter then all prices for all countries listed

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT 
 Product,
 Country,
 Currency,
 Price,
 PriceDisplay,
 
 Discount2DiscountPercent,
 Discount2DiscountValue,
 Discount2DiscountValueDisplay,
 Discount2UnitPrice,
 Discount2UnitPriceDisplay,
 
 Discount3DiscountPercent,
 Discount3DiscountValue,
 Discount3DiscountValueDisplay,
 Discount3UnitPrice,
 Discount3UnitPriceDisplay,
 
 Discount4DiscountPercent,
 Discount4DiscountValue,
 Discount4DiscountValueDisplay,
 Discount4UnitPrice,
 Discount4UnitPriceDisplay,
 
 Discount5DiscountPercent,
 Discount5DiscountValue,
 Discount5DiscountValueDisplay,
 Discount5UnitPrice,
 Discount5UnitPriceDisplay,
 
 DiscountReasonEn,
 DiscountPeriodCount,

 AvailableStart,
 AvailableEnd,
 SetupFeePrice,
 SetupFeePriceDisplay,
 SetupFeeReasonEn
 
FROM ProductPrices 
--WITH(Country=''US'') --//get prices for a specific country
--WITH(Currency=''USD'') --//get proces for a specific currency';

EXEC (@MyQuery) AT [LS_TO_FASTSPRING_IN_GATEWAY];

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