Reference

Table AccountOrders


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_account_orders
INSERT
UPDATE
UPSERT
DELETE
LOOKUP get_account_orders_by_id

Examples

SSIS

Use FastSpring Connector in API Source component to read data or in API Destination component to read/write data:

Read from AccountOrders table using API Source

API Source - FastSpring
Read and write FastSpring data effortlessly. Integrate, manage, and automate orders, subscriptions, quotes, products, and accounts — almost no coding required.
FastSpring
AccountOrders
There are no parameters to configure.
SSIS API Source - Read from table or endpoint

Read/write to AccountOrders table using API Destination

API Destination - FastSpring
Read and write FastSpring data effortlessly. Integrate, manage, and automate orders, subscriptions, quotes, products, and accounts — almost no coding required.
FastSpring
AccountOrders
Select
There are no parameters to configure.
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Get account orders by email

SELECT * FROM AccountOrders
WITH(
	  Email='bob@abc.com'
)
	  
--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'
)
*/

Get order by reference

SELECT * FROM AccountOrders WHERE Reference='BIN240202-9666-28133' WITH(OrderReference='BIN240202-9666-28133')	
--or for handful rows use below way
--SELECT * FROM Orders WHERE Reference='BIN240202-9666-28133'

SQL Server

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

Get account orders by email

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM AccountOrders
WITH(
	  Email=''bob@abc.com''
)
	  
--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];

Get order by reference

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM AccountOrders WHERE Reference=''BIN240202-9666-28133'' WITH(OrderReference=''BIN240202-9666-28133'')	
--or for handful rows use below way
--SELECT * FROM Orders WHERE Reference=''BIN240202-9666-28133''';

EXEC (@MyQuery) AT [LS_TO_FASTSPRING_IN_GATEWAY];