Table Subscriptions
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_subscriptions | |
| INSERT | ||
| UPDATE | ||
| UPSERT | ||
| DELETE | ||
| LOOKUP | get_subscription |
Examples
SSIS
Use FastSpring Connector in API Source component to read data or in API Destination component to read/write data:
Read from Subscriptions table using API Source
| There are no parameters to configure. |
Read/write to Subscriptions table using API Destination
| There are no parameters to configure. |
ODBC application
Use these SQL queries in your ODBC application data source:
Read accounts
<p>Gets all accounts for your store. Use the <code>Accounts</code> table. Optionally filter by <code>Email</code>, <code>CustomKey</code>, <code>OrderID</code>, <code>OrderReference</code>, <code>SubscriptionId</code>, <code>Products</code>, <code>Refunds</code>, <code>SubscriptionStatus</code> in the <code>WITH</code> clause.</p>
SELECT *
FROM Accounts
SELECT "Id"
, "ContactFirst"
, "ContactLast"
, "ContactEmail"
, "ContactCompany"
, "ContactPhone"
, "ContactSubscribed"
, "AddressLine1"
, "AddressLine2"
, "City"
, "Region"
, "RegionCustom"
, "PostalCode"
, "AddressCompany"
, "Language"
, "Country"
, "LookupGlobal"
, "Url"
, "PaymentMethods"
, "PaymentActive"
, "Orders"
, "Subscriptions"
, "Charges"
, "Subscribed"
, "TaxExemptionData"
FROM Accounts
--Use WITH clause --OR-- Key column(s) in WHERE clause
--WHERE [Id] = 'abcd'
--search by one or more parameters below
/*
WITH (
Email='X'
, CustomKey='X'
, GlobalKey='X'
, OrderID='X'
, OrderReference='X'
, SubscriptionId='X'
, Products='PROD-1,PROD-2,PROD-3'
, Refunds='true'
, SubscriptionStatus='active'
)
*/
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Read accounts
<p>Gets all accounts for your store. Use the <code>Accounts</code> table. Optionally filter by <code>Email</code>, <code>CustomKey</code>, <code>OrderID</code>, <code>OrderReference</code>, <code>SubscriptionId</code>, <code>Products</code>, <code>Refunds</code>, <code>SubscriptionStatus</code> in the <code>WITH</code> clause.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT *
FROM Accounts
SELECT "Id"
, "ContactFirst"
, "ContactLast"
, "ContactEmail"
, "ContactCompany"
, "ContactPhone"
, "ContactSubscribed"
, "AddressLine1"
, "AddressLine2"
, "City"
, "Region"
, "RegionCustom"
, "PostalCode"
, "AddressCompany"
, "Language"
, "Country"
, "LookupGlobal"
, "Url"
, "PaymentMethods"
, "PaymentActive"
, "Orders"
, "Subscriptions"
, "Charges"
, "Subscribed"
, "TaxExemptionData"
FROM Accounts
--Use WITH clause --OR-- Key column(s) in WHERE clause
--WHERE [Id] = ''abcd''
--search by one or more parameters below
/*
WITH (
Email=''X''
, CustomKey=''X''
, GlobalKey=''X''
, OrderID=''X''
, OrderReference=''X''
, SubscriptionId=''X''
, Products=''PROD-1,PROD-2,PROD-3''
, Refunds=''true''
, SubscriptionStatus=''active''
)
*/';
EXEC (@MyQuery) AT [LS_TO_FASTSPRING_IN_GATEWAY];