The Product analytics section has three mandatory call input parameters:
- Header - Authorization
- URL parameter - fileType
- filter - a request body parameter
Method |
POST | ||||||||||||||||||||||||
3P URL |
<Post Authentication Base URL>/report/product | ||||||||||||||||||||||||
1P URL |
<Post Authentication Base URL>/report/product/v2 | ||||||||||||||||||||||||
Headers |
Authorization: Bearer <access token> (Same as described above) | ||||||||||||||||||||||||
URL parameters |
|
||||||||||||||||||||||||
Body |
A JSON-like object containing different filters from the table below Mandatory Filters
Optional Filters A detailed explanation of all optional filters can be found in the next section of this article. |
||||||||||||||||||||||||
Example response |
{ "requestId":<requestId> } |
Optional Filters with detailed explanation
This API section's optional filters have two important components that make the reports generated via API as close as possible output-wise to the Products tab on the dashboard.
- CURRENT / HISTORICAL nested state filter
- CURRENT - This filter will lead to an output that will be populated based only on the latest value of configuration stored in the database for the Latest date available (usually, 'yesterday's' value)
- HISTORICAL - This filter will lead to an output that will include records based on historical values. e.g applying this filter to the Repricing Status filter with a value of "True" will lead to getting ALL items that match the condition of "Repricing was enabled at least once for the filtered period"
- String-Related filtering - EQUALS / NOT_EQUALS / CONTAINS / NOT_CONTAINS / BEGINS / ENDS
- Numerical filtering - EQUALS / NOT_EQUALS / GT (greater than) / LT (less than) / GTE (greater than or equal) / LTE (less than or equal)
- Some filters are always displayed/exported based on the Latest date available (usually, 'yesterday's' value):
- Fulfillable Quantity
- Reserved Quantity
- Inbound Quantity
- Inventory Value = SUM(Fulfillable Quantity+Reserved Quantity+Inbound Quantity) * Inventory Cost
| Filter | Description | Acceptable State Values | Example usage |
| repricingStatus |
|
|
|
| advertisingOptimized |
|
|
|
| advertisingStatus |
|
|
|
| repricingMethod |
|
|
|
| cohort |
|
|
|
| inStock |
|
|
|
| ffc |
|
|
|
| searchBy |
|
|
|
| orderedUnits |
|
|
|
| sales |
|
|
|
| profit |
|
|
|
| profitMargin |
|
|
|
| avgSalesRank |
|
|
|
| daysInStock |
|
|
|
| avgListedPrice |
|
|
|
| avgBuyBoxPrice |
|
|
|
| avgBuyBoxShare |
|
|
|
| sessions |
|
|
|
| adSpend |
|
|
|
| adSales |
|
|
|
| adOrderedUnits |
|
|
|
| acos |
|
|
|
| roas |
|
|
|
| fulfillableQuantity |
|
|
|
| reservedQuantity |
|
|
"reservedQuantity": {"value": 10, "filter": "GTE"} |
| inboundQuantity |
|
|
"inboundQuantity": {"value": 10, "filter": "LT"} |
| operatingMargin |
|
|
"operatingMargin": {"value": 10, "filter": "GTE"} |
| velocity |
|
|
"velocity": {"value": 10, "filter": "GT"} |
| conversionRate |
|
|
"conversionRate": {"value": -10.5, "filter": "LTE"} |
| vendor |
|
|
"vendor": {"value": "some vendor", "filter": "BEGINS"} |
| brand |
|
|
"brand": {"value": "Nike, "filter": "EQUALS"} |
Here are a few Example Filters
-
All item from store 1234, between dates 2023-02-16 and 2023-02-21, that has ACOS greater than 90 and that are currently repriced:
{ "accounts": [1234], "startDate": "2023-02-16", "endDate": "2023-02-21", "acos": {"value": 90, "filter": "GT"}, "repricingStatus": {"flag": true, "state": "CURRENT"}, "comparisonType": "PERIOD" } -
All item from stores 1234 and 5678, between dates 2023-02-16 and 2023-02-21, that has a profit less than -50.5 and buy box share less than or equal to 20:
{ "accounts": [1234,5678], "startDate": "2023-02-16", "endDate": "2023-02-21", "profit": {"value": -50.5, "filter": "LT"}, "avgBuyBoxShare": {"value": 20, "filter": "LTE"}, "comparisonType": "PERIOD" } -
All item from store 1234, between dates 2023-02-16 and 2023-02-21, that has listed price equal to 150:
{ "accounts": [1234], "startDate": "2023-02-16", "endDate": "2023-02-21", "avgListedPrice": {"value": 150, "filter": "EQUALS"}, "comparisonType": "PERIOD" }
Comments
0 comments
Please sign in to leave a comment.