Endpoint Get Account Charges
Name
get_account_charges
Description
Related Tables
Parameters
Parameter | Required | Options | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Name:
Label: PageSize |
||||||||||||
Name:
Label: Email Account email |
||||||||||||
Name:
Label: Account custom key |
||||||||||||
Name:
Label: Account global key |
||||||||||||
Name:
Label: Account orderID |
||||||||||||
Name:
Label: Account orderReference |
||||||||||||
Name:
Label: Account subscriptionId |
||||||||||||
Name:
Label: Products filters results to include only transactions involving the specified product ID(s) / product path(s) |
||||||||||||
Name:
Label: Show Returned Only filters results to include orders with or without returns; response includes returns array with return IDs where applicable |
|
|||||||||||
Name:
Label: Subscription Status 'active', 'ended', 'canceled', 'started' will return accounts with subscriptions in the corresponding state |
|
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
AccountId |
DT_WSTR
|
nvarchar(100)
|
100 | |
ChargeDate |
DT_DBDATE
|
date
|
||
Total |
DT_R8
|
float
|
||
Currency |
DT_WSTR
|
nvarchar(12)
|
12 | |
PayoutCurrency |
DT_WSTR
|
nvarchar(12)
|
12 | |
TotalInPayoutCurrency |
DT_R8
|
float
|
||
Status |
DT_WSTR
|
nvarchar(50)
|
50 | |
OrderId |
DT_WSTR
|
nvarchar(100)
|
100 | |
OrderReference |
DT_WSTR
|
nvarchar(100)
|
100 | |
SubscriptionId |
DT_WSTR
|
nvarchar(100)
|
100 | |
Timestamp |
DT_I8
|
bigint
|
||
TimestampValue |
DT_I8
|
bigint
|
||
TimestampInSeconds |
DT_I8
|
bigint
|
||
TimestampDisplay |
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 AccountCharges table, therefore it is better to use it, instead of accessing the endpoint directly:
There are no parameters to configure. |

API Destination
This Endpoint belongs to the AccountCharges table, therefore it is better to use it, instead of accessing the endpoint directly. Use this table and table-operation pair to get account charges:
There are no parameters to configure. |

ODBC application
Use these SQL queries in your ODBC application data source:
Get account charges
Use below query to search account charges
SELECT * from AccountCharges
--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_account_charges
endpoint belongs to
AccountCharges
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:
Get account charges
Use below query to search account charges
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * from AccountCharges
--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_account_charges
endpoint belongs to
AccountCharges
table(s), and can therefore be used via those table(s).