# Returns 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

## API Endpoints

The Daasity Amazon Seller Central - Reports API - Returns 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)
* [Returns Reports](https://developer-docs.amazon.com/sp-api/docs/report-type-values#returns-reports)

## Entity Relationship Diagram (ERD)

[Click here to view the ERD for the Daasity Amazon Seller Central - Reports API - Returns integration](https://lucid.app/documents/embedded/e6b138b9-bb8b-423f-b68b-a8b9ea847c3a) 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.

* This report provides detailed returns information, including return request date, RMA ID, label details, ASIN, and return reason code.
* [Flat File Returns Report by Return Date](#flat-file-returns-report-by-return-date)
* [XML Returns Report by Return Date](#xml-returns-report-by-return-date)
* [XML Prime Returns Report by Return Date](#xml-prime-returns-report-by-return-date)

### **Flat File Returns Report by Return Date**

* This report contains detailed Seller Fulfilled Prime returns information, including return request date, RMA ID, label details, ASIN, and return reason code.
* Endpoint: [Returns Reports](https://developer-docs.amazon.com/sp-api/docs/report-type-values#returns-reports)
* Update Method: UPSERT
* Table Name:\
  \[`AMAZON_SELLER_CENTRAL.GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE]`

{% 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.
  {% endhint %}

### **XML Returns Report by Return Date**

* This report contains detailed Seller Fulfilled Prime returns information, including return request date, RMA ID, label details, ASIN, and return reason code.
* Endpoint: [Returns Reports](https://developer-docs.amazon.com/sp-api/docs/report-type-values#returns-reports)
* Update Method: UPSERT
* Table Name:\
  \[`AMAZON_SELLER_CENTRAL.GET_XML_RETURNS_DATA_BY_RETURN_DATE`]

{% 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.
  {% endhint %}

### **XML Prime Returns Report by Return Date**

* Endpoint: [Returns Reports](https://developer-docs.amazon.com/sp-api/docs/report-type-values#returns-reports)
* Update Method: UPSERT
* Table Name:\
  \[`AMAZON_SELLER_CENTRAL.GET_XML_MFN_PRIME_RETURNS_REPORT`]

{% 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.
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.daasity.com/core-concepts/data-integrations/setup-guides/digital-integrations/amazon-seller-central/integration-specifications/returns-reports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
