Download Report
GET {{SL_BASE_URL}}/api/reports/download?report_id=<integer>
This endpoint is supposed to provide content of the requested report. It requires 'report_id' which should be the one provided by the 'Request Report' endpoint.
The API responds with ',' delimited csv file as gzencoded string, which needs to be decoded by the client
The headers for the data are: sku, date, productcost, vat, fees, totalpromoamount, ppcspent, ppcsales, ppcunits, ppcclicks, ppcimpressions, profitafterppc, promounits, organicunits, quantityordered, quantityreturned, orderscount, promosales, organicsales, ooe, revenue, sessions, pageviews, quantityreturnedonpurchasedate, pendingrevenue, estimatedprincipal, taxes, incomeprincipal, incomeother, incomefees, incomecommissionfees, incomeotherfees, refundprincipal, refundother, refundfees, refundcommissionfees, refundotherfees, estimatedfees, productvat, marketplacevat, quantityshipped, shippingcost, miscellaneouscosts, mininventory, maxinventory, avg_inventory
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
report_id | string | (Required) The report id given in response of api/reports/request endpoint |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
"\u001f�\b\u0000\u0000\u0000\u0000\u0000\u0000\u0003mRKv� \f��\u0018Y�N\u003c=,;z�\u0012E�Mn_�\u0010�m7�\u0019I�\u000f���o��\t\f�\u0015�Lٛ�V�\u0006��\u0011�\\\u0026\u0006���U\u001c����b�N#\u001e6�\u0016\\��d����c\u0000ZcBU\u0012ֽ�L�`6L��w�\u0014\u0019��\u0016`:��2�����\t\u0013Ng*��čk^-��N���oh����\u0013nȹZz�\u000f\u0016t\u001b��W�\t������\u001b[D��\u0017wȡ\u001a��9��\u0011{�\u0010�F�ي\u0017FV��:%v�t��\u0012\u001d�c���/G�\u001a\\�9�n��x�������\u001dsub|��笐\u001eh1��μ��w���S����+e=�\u0000�����Xv�e�\u0026�դ�\u0017\f�r�\u001f?�[���\u0002\u0000\u0000"