# Order Tracking Reports

## Integration Overview

The Daasity Amazon Seller Central integrations utilize the Selling Partner API (SP-API) which is a REST-based API that helps Amazon selling partners programmatically access their data on orders, shipments, payments, and more.

## Integration Availability

This integration is available for:

* Enterprise
* Growth

{% hint style="info" %}
For Growth merchants, please note that only \[`Flat File Orders by Last Update Report`] is used.
{% endhint %}

## API Endpoints

The Daasity Amazon Seller Central - Reports API - Order Tracking extractor is built based on this [Amazon Seller Central API documentation](https://developer-docs.amazon.com/sp-api/docs/what-is-the-selling-partner-api).  The following endpoints are used by Daasity to replicate data from Amazon Seller Central:

* [Reports](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference)
* [Order Tracking Reports](https://developer-docs.amazon.com/sp-api/docs/report-type-values#order-tracking-reports)

## Entity Relationship Diagram (ERD)

[Click here to view the ERD for the Daasity Amazon Seller Central - Reports API - Order Tracking integration](https://lucid.app/documents/embedded/cff09abb-b185-4d22-9683-f9bce7692a5d) illustrating the different tables and keys to join across tables.

## Amazon Seller Central Schema

The Reports API will generate files in one of three formats (CSV, XML, and JSON).  A report might vary slightly for each Seller Central account and thus Daasity will dynamically create the table based on the file extracted from Amazon. Thus each table will be a direct mapping from the file output to the table with no transformation.

* [Flat File Orders by Last Update Report](#flat-file-orders-by-last-update-report)
* [Flat File Orders by Order Date Report](#flat-file-orders-by-order-date-report)

### **Flat File Orders by Last Update Report**

* This report provides order and item information for both FBA and seller-fulfilled orders including order status, fulfillment and sales channel information, and item details.  All recent orders including those that have not been shipped are in this report.  The report does not include customer-identifying information.
* Endpoint: [Order Tracking Reports](https://developer-docs.amazon.com/sp-api/docs/report-type-values#order-tracking-reports)
* Update Method: UPSERT
* Table Name:\
  \[`AMAZON_SELLER_CENTRAL.GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL`]

{% hint style="info" %}
**TIP:** Daasity recommends using this report as it will retrieve orders based on the last time an order was updated.
{% endhint %}

{% hint style="info" %}
**Limitations:**

* Daasity's defaults to extract daily.
  * To opt in for hourly extraction, please reach out to <Support@Daasity.com>
* Amazon updates data daily and data pulled is within the past 72 hours.
  {% endhint %}

### **Flat File Orders by Order Date Report**

* This report provides order and item information for both FBA and seller-fulfilled orders including order status, fulfillment and sales channel information, and item details.  All recent orders including those that have not been shipped are in this report.  The report does not include customer-identifying information.
* Endpoint: [Order Tracking Reports](https://developer-docs.amazon.com/sp-api/docs/report-type-values#order-tracking-reports)
* Update Method: UPSERT
* Table Name:\
  \[`AMAZON_SELLER_CENTRAL.GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL`]

{% hint style="info" %}
**.Limitations:**

* Daasity's defaults to extract daily.
  * To opt in for hourly extraction, please reach out to <Support@Daasity.com>
* Amazon updates data daily and data pulled is within the past 72 hours
  {% endhint %}
