Request a report
Learn how to use the Reports API to request and retrieve a report.
Learn how to use the Reports API to request and retrieve a report.
Prerequisites
To complete these tutorials, you need:
- Authorization from the selling partner for whom you are making calls. For more information, refer to Authorizing Selling Partner API applications.
- One of the required roles for the Reports API assigned to your developer profile.
- One of the required roles for the Reports API selected in the app registration page for your application.
- The report type that you will request. Refer to Report Type Values for a list of the available report types.
- A working Java Development Kit (JDK) installation to run sample code.
Request and retrieve a report
Step 1. Request a report
To request a report, specify the report type and marketplaces that you are requesting, and any optional parameters.
- Call the
createReport
operation, passing the following parameters:
Name | Description | Required |
---|---|---|
reportOptions | Additional information passed to reports. This varies by report type. Type: ReportOptions | No |
reportType | The report type. For more information, refer to Report Type Values. Type: string | Yes |
dataStartTime | The start of a date and time range, in ISO 8601 date-time format, used for selecting the data to report. The default is now. The value must be prior to or equal to the current date and time. Not all report types make use of this. Type: string (date-time) | No |
dataEndTime | The end of a date and time range, in ISO 8601 date-time format, used for selecting the data to report. The default is now. The value must be prior to or equal to the current date and time. Not all report types make use of this. Type: string (date-time) | No |
marketplaceIds | A list of marketplace identifiers. The report document's contents will contain data for all of the specified marketplaces, unless the report type indicates otherwise. Type: < string > array | Yes |
createReport
request example
createReport
request examplePOST https://sellingpartnerapi-na.amazon.com/reports/2021-06-30/reports
{
"reportType": "GET_MERCHANT_LISTINGS_ALL_DATA",
"dataStartTime": "2019-12-10T20:11:24.000Z",
"marketplaceIds": [
"A1PA6795UKMFR9",
"ATVPDKIKX0DER"
]
}
createReport
response
createReport
responseA successful response includes the following:
Name | Description |
---|---|
reportId | The identifier for the report. This identifier is unique only in combination with a seller ID. Type: string |
createReport
response example
createReport
response example{
"reportId": "ID323"
}
Step 2. Confirm that the report processing is complete
To confirm that the report processing is complete, refer to Verify that report processing is complete.
Step 3. Retrieve the report
To retrieve the report, refer to Retrieve a report.
Request and retrieve a bulk invoice report for MCF orders (India only)
Step 1. Request a report
To request a report, specify the report type and marketplaces that you are requesting, and any optional parameters.
- Call the
createReport
operation, passing the following parameters:
Name | Description | Required |
---|---|---|
reportOptions | Additional information passed to reports. This varies by report type. Type: ReportOptions | No |
reportType | The report type. The value must be FBA_BULK_INVOICE . For more information, refer to Regulatory Compliance Report Type Values.Type: string | Yes |
dataStartTime | The start of a date and time range, in ISO 8601 date-time format, used for selecting the data to report. The default is now. The value must be prior to or equal to the current date and time. Not all report types make use of this. Type: string (date-time) | No |
dataEndTime | The end of a date and time range, in ISO 8601 date-time format, used for selecting the data to report. The default is now. The value must be prior to or equal to the current date and time. Not all report types make use of this. Type: string (date-time) | No |
marketplaceIds | A list of marketplace identifiers. The report document's contents will contain data for all of the specified marketplaces, unless the report type indicates otherwise. Type: < string > array | Yes |
createReport
request example
createReport
request examplePOST https://sellingpartnerapi-na.amazon.com/reports/2021-06-30/reports
{
"marketplaceIds": [
"A2XZLSVIQ0F4JT"
],
"reportType": "FBA_BULK_INVOICE",
"dataEndTime": "2023-05-27T23:59:59+00:00",
"dataStartTime": "2023-05-22T00:00:00+00:00"
}
createReport
response
createReport
responseA successful response includes the following:
Name | Description |
---|---|
reportId | The identifier for the report. This identifier is unique only in combination with a seller ID. Type: string |
createReport
response example
createReport
response example{
"reportId": "51665019712"
}
Step 2. Confirm that the report processing is complete
To confirm that the report processing is complete, refer to Verify that report processing is complete.
Step 3. Retrieve the report
To retrieve the report, refer to Retrieve a report.
Updated about 23 hours ago