Endpoint Get Product Prices
Name
get_product_prices
Description
Related Tables
Parameters
Parameter | Required | Options |
---|---|---|
Name:
Label: Country Code |
||
Name:
Label: Currency Code |
||
Name:
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 |
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:
Optional Parameters | |
---|---|
Country Code | |
Currency Code | |
EnablePivot | True |

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:
Optional Parameters | |
---|---|
Country Code | |
Currency Code | |
EnablePivot | True |

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