Table ProductPrices
Description
No description available
Supported Operations
Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.| Method | Supported | Reference EndPoint |
|---|---|---|
| SELECT | get_product_prices | |
| INSERT | ||
| UPDATE | ||
| UPSERT | ||
| DELETE | ||
| LOOKUP |
Examples
SSIS
Use FastSpring Connector in API Source component to read data or in API Destination component to read/write data:
Read from ProductPrices table using API Source
| Optional Parameters | |
|---|---|
| Country Code | |
| Currency Code | |
| EnablePivot | True |
Read/write to ProductPrices table using API Destination
| Optional Parameters | |
|---|---|
| Country Code | |
| Currency Code | |
| EnablePivot | True |
ODBC application
Use these SQL queries in your ODBC application data source:
Read product prices
<p>Gets product prices per country or currency. Use the <code>ProductPrices</code> table. Optionally pass <code>Country</code> or <code>Currency</code> in the <code>WITH</code> clause to filter; if omitted, prices for all countries are returned.</p>
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 prices for a specific currency
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Read product prices
<p>Gets product prices per country or currency. Use the <code>ProductPrices</code> table. Optionally pass <code>Country</code> or <code>Currency</code> in the <code>WITH</code> clause to filter; if omitted, prices for all countries are returned.</p>
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 prices for a specific currency';
EXEC (@MyQuery) AT [LS_TO_FASTSPRING_IN_GATEWAY];