Endpoint Get Report Data - Tab Separated File (TSV)
Name
get_report_tsv
Description
Parameters
| Parameter | Required | Options | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
                    Name:
                     Label: ReportType  | 
                YES | |||||||||||||||||||||||||||||||||||||||||||||||
| 
                    Name:
                     Label: MarketplaceIds  | 
                YES | 
                        
  | 
            ||||||||||||||||||||||||||||||||||||||||||||||
| 
                    Name:
                     Label: StartDate Report Start date if applicable - Must be UTC date in ISO format e.g. (2020-01-31T00:00:00Z). You can use static values or date functions. Supported functions are now|today|yesterday|weekstart|weekend|monthstart|monthend|yearstart|yearend and supported intervals for add/subtract are ms|s|sec|min|h|hour|y|year|d|day|m|month|y|year. Example monthstart-3d (subtract 3days from month start) | 
                
                        
  | 
            |||||||||||||||||||||||||||||||||||||||||||||||
| 
                    Name:
                     Label: EndDate Report End date if applicable - Must be UTC date in ISO format e.g. (2020-01-31T00:00:00Z). You can use static values or date functions. Supported functions are now|today|yesterday|weekstart|weekend|monthstart|monthend|yearstart|yearend and supported intervals for add/subtract are ms|s|sec|min|h|hour|y|year|d|day|m|month|y|year. Example monthstart-3d (subtract 3days from month start) | 
                
                        
  | 
            |||||||||||||||||||||||||||||||||||||||||||||||
| 
                    Name:
                     Label: ReportOptions  | 
                
Output 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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
        If the column you are looking for is missing, consider customizing Amazon Selling Partner (SP-API) Connector.
    
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 Amazon Selling Partner (SP-API) Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Source
API Source - Amazon Selling Partner (SP-API)
    Amazon Selling Partner Connector (SP-API) can be used to integrated SP-API that helps Amazon sellers to programmatically exchange data on listings, orders, payments, reports, and more.
    Amazon Selling Partner (SP-API)
    Get Report Data - Tab Separated File (TSV)
    | Required Parameters | |
|---|---|
| ReportType | Fill-in the parameter... | 
API Destination
API Destination - Amazon Selling Partner (SP-API)
    Amazon Selling Partner Connector (SP-API) can be used to integrated SP-API that helps Amazon sellers to programmatically exchange data on listings, orders, payments, reports, and more.
    Amazon Selling Partner (SP-API)
    Get Report Data - Tab Separated File (TSV)
    | Required Parameters | |
|---|---|
| ReportType | Fill-in the parameter... | 
ODBC application
Use these SQL queries in your ODBC application data source:
Generate Report
This example shows how to get data from a specified report
SELECT *
FROM get_report_tsv
WITH(
	  ReportType='GET_MERCHANT_LISTINGS_ALL_DATA'
	, MarketplaceIds='ATVPDKIKX0DER'
)
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Generate Report
This example shows how to get data from a specified report
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT *
FROM get_report_tsv
WITH(
	  ReportType=''GET_MERCHANT_LISTINGS_ALL_DATA''
	, MarketplaceIds=''ATVPDKIKX0DER''
)';
EXEC (@MyQuery) AT [LS_TO_AMAZON_SELLING_PARTNER_SP_API_IN_GATEWAY];