انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Export report

GET/admin/v1/stores/{store_id}/analytics/reports/{report}/export

    The report as a CSV download (UTF-8 with a byte-order mark, so spreadsheets read Arabic; money as decimals in the store currency; up to 10,000 rows, X-Report-Truncated: true when more matched). Same permissions as the report.

    معاملات المسار

    • store_idstringمطلوب

      معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

    • reportenumمطلوب

      Which report

      • sales_over_time
      • sales_by_product
      • sales_by_variant
      • sales_by_collection
      • sales_by_channel
      • sales_by_country
      • sales_by_city
      • refusals_by_city
      • customers_over_time
      • top_customers
      • conversion_over_time
      • sessions_by_source
      • sessions_by_campaign
      • sessions_by_device
      • sessions_by_landing_page
      • sales_by_source
      • sales_by_campaign
      • profit_over_time
      • profit_by_product
      • profit_by_variant
      • profit_by_order
      • profit_by_discount
      • online_store_speed
      • top_searches
      • searches_without_results
      • stock_value_over_time
      • sell_through
      • days_out_of_stock
      • abc_by_profit
      • unsold_items
      • taxes_by_rate

    معاملات الاستعلام

    • fromstringمطلوب

      First store-local day, YYYY-MM-DD.

    • tostringمطلوب

      Last store-local day (included), YYYY-MM-DD. At most 366 days from from.

    • group_byenum

      Time series only: day, week (from Sunday) or month. Default: days up to a month, weeks up to half a year, months beyond.

      • day
      • week
      • month
    • languagestring

      Exports only: the language of the column headings, en or ar (default: the store's).

    الترويسات

    • shop-api-versionYYYY-MM

      الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

    ما يُرجعه

    200 The CSV file.

    الأخطاء

    • 403forbiddenMissing permission.
    • 404not_foundNo such store or report.
    • 422validation_failedInvalid dates or range.