Request Report
POST {{SL_BASE_URL}}/api/reports/request
Once you've your account id you can start making report requests using that account id. This endpoint accepts list of following parameters to successfully log your request: * sellerid -- The Amazon Seller ID * marketplaceid -- The Amazon Marketplace ID * productsku -- SellerSKU of amazon listing, this must belong to the provided accountid. * dpsdate -- The amazon order date if sales data is concerned. * lastupdated_date -- The last update date at SellerLegend, the API responds with all data updated on and after this date
The API responds with 'reportid' if the request went successful. And the maximum time a report takes to get ready to download is 3 hours. You can check the status of your requested report using this 'reportid', and can download when the status gets 'done'
Request Body
[{"name"=>"seller_id", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"marketplace_id", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"product_sku", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"dps_date", "value"=>"<yyyy-mm-dd>", "datatype"=>"string"}, {"name"=>"last_updated_date", "value"=>"<yyyy-mm-dd>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
Content-Type | string |
RESPONSES
status: OK
{"status":"Success","code":200,"message":"Request Submitted","path":"api/reports/request","report_id":177667}