商品销售报告

属性说明必含类型

data

数据

object

data>>add_events

添加购物车计数

int

data>>order_count

订单数

int

data>>total_sales

总销售额

number

data>>sales_count

销售量

int

data>>net_sales

净销售额

number

data>>product_id

商品ID

int

data>>rate

转化率

number

data>>unit_price

客单价

number

data>>session_visits

浏览量

int

data>>checkout_events

发起结算计数

int

data>>title

商品名称

string

data>>image

商品图片

string

data>>deleted

是否删除

boolean

data>>public_url

公开链接

string

all_counts

总数据

object

all_counts>>add_events

添加购物车事件计数

int

all_counts>>order_count

订单数量

int

all_counts>>total_sales

总销售额

number

all_counts>>sales_count

销售数量

int

all_counts>>net_sales

净销售额

number

all_counts>>session_visits

浏览量

int

all_counts>>checkout_events

发起结算事件计数

int

all_counts>>rate

转化率

number

all_counts>>unit_price

客单价

number

获取销售报告

GET openapi/2021-08/reports/sales_report

权限:read_report

Query Parameters

NameTypeDescription

filter[start]*

String

查询起始时间,如 2020-01-01 (00:00:00)

filter[sort]

String

排序 (-)visits/add_events/checkout_events/order_count/rate/unit_price/sales_count/total_sales

filter[sales]

String

是否有销售额,可选:true,false

filter[end]*

String

查询结束时间,如 2020-01-01 (00:00:00)

filter[title]

String

商品名称/slug/spu/sku

filter[category_id]

String

商品分类id

per_page

String

每页条目数

page

String

页码

{
    "data": [
        {
            "add_events": "0",
            "order_count": "1",
            "total_sales": "197.74",
            "sales_count": "8",
            "net_sales": "175.92",
            "product_id": 45786,
            "rate": 0,
            "unit_price": 197.74,
            "session_visits": "0",
            "checkout_events": "0",
            "title": "Retro Geometric Shirt",
            "image": "https://adoutest.s3.us-east-2.amazonaws.com/image/2022/06/f814a4e4b056b726704b4443479c432f9ddd823c2587343bdcfaf41c0ce0d6f6.jpeg",
            "deleted": false,
            "public_url": "lnwshop.frp.codefriend.top/products/retro-geometric-shirt-3"
        },
        {
            "add_events": "0",
            "order_count": "1",
            "total_sales": "54.36",
            "sales_count": "2",
            "net_sales": "53.36",
            "product_id": 45766,
            "rate": 0,
            "unit_price": 54.36,
            "session_visits": "0",
            "checkout_events": "0",
            "title": "Retro Geometric Shirt",
            "image": "https://adoutest.s3.us-east-2.amazonaws.com/image/2022/06/ce4d8fad7ebed333af0a690bb400fc7565ce9f846d5d7bc71f93afd5fdf7ff88.jpeg",
            "deleted": false,
            "public_url": "lnwshop.frp.codefriend.top/products/retro-geometric-shirt-2"
        }
    ],
    "links": {
        "first": "http://shop.com/openapi/2021-08/reports/sales_report?filter%5Bstart%5D=2021-09-15&filter%5Bend%5D=2022-09-15&filter%5Btitle%5D=Retro%20Geometric%20Shirt&page_size=25&page=1",
        "last": "http://shop.com/openapi/2021-08/reports/sales_report?filter%5Bstart%5D=2021-09-15&filter%5Bend%5D=2022-09-15&filter%5Btitle%5D=Retro%20Geometric%20Shirt&page_size=25&page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "http://shop.com/openapi/2021-08/reports/sales_report",
        "per_page": 25,
        "to": 3,
        "total": 3
    },
    "all_counts": {
        "add_events": "4",
        "order_count": "16",
        "total_sales": "741.05",
        "sales_count": "33",
        "net_sales": "675.05",
        "session_visits": "0",
        "checkout_events": "4",
        "rate": 0,
        "unit_price": 46.32
    }
}

Last updated