Showing
1 changed file
with
259 additions
and
0 deletions
@@ -401,3 +401,262 @@ code为200即为成功,否则是失败。 | @@ -401,3 +401,262 @@ code为200即为成功,否则是失败。 | ||
401 | } | 401 | } |
402 | ``` | 402 | ``` |
403 | 403 | ||
404 | +## 5、获取店铺的品牌排名,当前等级、排名、上升名词## | ||
405 | + | ||
406 | +获取店铺的品牌排名,当前等级、排名、上升名词(method=app.shops.shopbrandrank) | ||
407 | +#### 公共请求参数 | ||
408 | +| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 | | ||
409 | +|:-------| -----:|-----:|-----:|-----:|-----:|----:| | ||
410 | +|client_secret|string|50|否|5ac68f20cb18efe154be||进入接口提供的参数加密信息| | ||
411 | +|app_version|float|10|否|1||APP版本| | ||
412 | +|os_version|string|20|否|Android4.4||系统版本+机器型号| | ||
413 | +|client_type|string|20|否|iphone/android/ipad||手机型号(不区分大小写)| | ||
414 | +|screen_size|string|20|否|800x900||(手机尺寸)| | ||
415 | + | ||
416 | +#### 请求参数 | ||
417 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 | | ||
418 | +|:-------| -----:|-----:|-----:|----:| | ||
419 | +|brandId|int|否||品牌id| | ||
420 | +|dateId |int|否||日期| | ||
421 | + | ||
422 | + | ||
423 | +注意,通用的头部没有列出。 | ||
424 | +请求示例 | ||
425 | +http://192.168.102.217:8080/gateway?method=app.shops.shopbrandrank&brandId=1200&dateId=20160524 | ||
426 | + | ||
427 | + | ||
428 | +### 响应 | ||
429 | +code为200即为成功,否则是失败。 | ||
430 | +响应JSON格式如下所示: | ||
431 | +```json | ||
432 | +{ | ||
433 | + { | ||
434 | + "alg": "SALT_MD5", | ||
435 | + "code": 200, | ||
436 | + "data": { | ||
437 | + "brandId": 1200, | ||
438 | + "brandMainCategory": 2, | ||
439 | + "dateId": 20160524, | ||
440 | + "rankChange": 5, | ||
441 | + "rankLevel": 1, | ||
442 | + "rankNow": 15 | ||
443 | + }, | ||
444 | + "md5": "64cdf0d30ba9174ddce76ecf71a91ad8", | ||
445 | + "message": "shop business overview." | ||
446 | +} | ||
447 | +} | ||
448 | +``` | ||
449 | + | ||
450 | + | ||
451 | +## 6、查询网销信息## | ||
452 | + | ||
453 | +查询网销信息(method=app.shops.storagestatistics) | ||
454 | +#### 公共请求参数 | ||
455 | +| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 | | ||
456 | +|:-------| -----:|-----:|-----:|-----:|-----:|----:| | ||
457 | +|client_secret|string|50|否|5ac68f20cb18efe154be||进入接口提供的参数加密信息| | ||
458 | +|app_version|float|10|否|1||APP版本| | ||
459 | +|os_version|string|20|否|Android4.4||系统版本+机器型号| | ||
460 | +|client_type|string|20|否|iphone/android/ipad||手机型号(不区分大小写)| | ||
461 | +|screen_size|string|20|否|800x900||(手机尺寸)| | ||
462 | + | ||
463 | +#### 请求参数 | ||
464 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 | | ||
465 | +|:-------| -----:|-----:|-----:|----:| | ||
466 | +|productSkn|int|是||商品skn| | ||
467 | +|factory_code|string|是||商品厂家编码| | ||
468 | +|productSku|int|是||商品sku| | ||
469 | +|shopId|int|是||店铺Id| | ||
470 | +|brandId|int|是||品牌Id| | ||
471 | +|maxSortId|int|是||一级分类Id| | ||
472 | +|middleSortId|int|是||二级分类Id| | ||
473 | +|smallSortId|int|是||三级分类Id| | ||
474 | + | ||
475 | +注意,通用的头部没有列出。 | ||
476 | +请求示例 | ||
477 | +http://192.168.102.217:8080/gateway?method=app.shops.storagestatistics&brandId=11 | ||
478 | + | ||
479 | + | ||
480 | +### 响应 | ||
481 | +code为200即为成功,否则是失败。 | ||
482 | +响应JSON格式如下所示: | ||
483 | +```json | ||
484 | +{ | ||
485 | + { | ||
486 | + "alg": "SALT_MD5", | ||
487 | + "code": 200, | ||
488 | + "data": { | ||
489 | + "additionInfo": { | ||
490 | + "onSaleTotalNum": 1, // 已上架商品数 | ||
491 | + "outSaleTotalNum": 1, // 已下架商品数 | ||
492 | + "preSaleTotalNum": 2, // 待上架商品数 | ||
493 | + "storageTotalMoney": 67.3, // 库存总金额(元) | ||
494 | + "storageTotalNum": 47 // 库存总数量 | ||
495 | + }, | ||
496 | + "list": [ | ||
497 | + { | ||
498 | + "brandId": 11, | ||
499 | + "brandName": "", | ||
500 | + "colorId": 0, | ||
501 | + "colorName": "", | ||
502 | + "dateId": 0, | ||
503 | + "goodsName": "", | ||
504 | + "imageUrl": "0", | ||
505 | + "maxSortId": 0, | ||
506 | + "maxSortName": "0", | ||
507 | + "middleSortId": 0, | ||
508 | + "middleSortName": "", | ||
509 | + "productSkc": 0, | ||
510 | + "productSkn": 0, | ||
511 | + "productSku": 0, | ||
512 | + "purchasePrice": 0, | ||
513 | + "salesPrice": 0, | ||
514 | + "shopId": 0, | ||
515 | + "shopName": "", | ||
516 | + "sizeId": 0, | ||
517 | + "sizeName": "", | ||
518 | + "smallSortId": 0, | ||
519 | + "smallSortName": "", | ||
520 | + "status": "1", | ||
521 | + "storageAmount": 33.3, | ||
522 | + "storeNums": 11 | ||
523 | + }, | ||
524 | + { | ||
525 | + "brandId": 11, | ||
526 | + "brandName": "", | ||
527 | + "colorId": 0, | ||
528 | + "colorName": "", | ||
529 | + "dateId": 0, | ||
530 | + "goodsName": "", | ||
531 | + "imageUrl": "0", | ||
532 | + "maxSortId": 0, | ||
533 | + "maxSortName": "0", | ||
534 | + "middleSortId": 0, | ||
535 | + "middleSortName": "", | ||
536 | + "productSkc": 0, | ||
537 | + "productSkn": 0, | ||
538 | + "productSku": 0, | ||
539 | + "purchasePrice": 0, | ||
540 | + "salesPrice": 0, | ||
541 | + "shopId": 0, | ||
542 | + "shopName": "", | ||
543 | + "sizeId": 0, | ||
544 | + "sizeName": "", | ||
545 | + "smallSortId": 0, | ||
546 | + "smallSortName": "", | ||
547 | + "status": "2", | ||
548 | + "storageAmount": 22, | ||
549 | + "storeNums": 22 | ||
550 | + }, | ||
551 | + { | ||
552 | + "brandId": 11, | ||
553 | + "brandName": "", | ||
554 | + "colorId": 0, | ||
555 | + "colorName": "", | ||
556 | + "dateId": 0, | ||
557 | + "goodsName": "", | ||
558 | + "imageUrl": "0", | ||
559 | + "maxSortId": 0, | ||
560 | + "maxSortName": "0", | ||
561 | + "middleSortId": 0, | ||
562 | + "middleSortName": "", | ||
563 | + "productSkc": 0, | ||
564 | + "productSkn": 0, | ||
565 | + "productSku": 0, | ||
566 | + "purchasePrice": 0, | ||
567 | + "salesPrice": 0, | ||
568 | + "shopId": 0, | ||
569 | + "shopName": "", | ||
570 | + "sizeId": 0, | ||
571 | + "sizeName": "", | ||
572 | + "smallSortId": 0, | ||
573 | + "smallSortName": "", | ||
574 | + "status": "3", | ||
575 | + "storageAmount": 11, | ||
576 | + "storeNums": 13 | ||
577 | + }, | ||
578 | + { | ||
579 | + "brandId": 11, | ||
580 | + "brandName": "", | ||
581 | + "colorId": 0, | ||
582 | + "colorName": "", | ||
583 | + "dateId": 0, | ||
584 | + "goodsName": "", | ||
585 | + "imageUrl": "0", | ||
586 | + "maxSortId": 0, | ||
587 | + "maxSortName": "0", | ||
588 | + "middleSortId": 0, | ||
589 | + "middleSortName": "", | ||
590 | + "productSkc": 0, | ||
591 | + "productSkn": 0, | ||
592 | + "productSku": 0, | ||
593 | + "purchasePrice": 0, | ||
594 | + "salesPrice": 0, | ||
595 | + "shopId": 0, | ||
596 | + "shopName": "", | ||
597 | + "sizeId": 0, | ||
598 | + "sizeName": "", | ||
599 | + "smallSortId": 0, | ||
600 | + "smallSortName": "", | ||
601 | + "status": "2", | ||
602 | + "storageAmount": 1, | ||
603 | + "storeNums": 1 | ||
604 | + } | ||
605 | + ], | ||
606 | + "page": 1, | ||
607 | + "size": 10, | ||
608 | + "total": 4, | ||
609 | + "totalPage": 1 | ||
610 | + }, | ||
611 | + "md5": "83ccbb2eb14e08c90558b7c00d6c0b8e", | ||
612 | + "message": "storage statistics list" | ||
613 | +} | ||
614 | +} | ||
615 | +``` | ||
616 | + | ||
617 | +## 7、获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品 金额## | ||
618 | + | ||
619 | +获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品 金额(method=app.shops.shopbusinessoverview) | ||
620 | +#### 公共请求参数 | ||
621 | +| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 | | ||
622 | +|:-------| -----:|-----:|-----:|-----:|-----:|----:| | ||
623 | +|client_secret|string|50|否|5ac68f20cb18efe154be||进入接口提供的参数加密信息| | ||
624 | +|app_version|float|10|否|1||APP版本| | ||
625 | +|os_version|string|20|否|Android4.4||系统版本+机器型号| | ||
626 | +|client_type|string|20|否|iphone/android/ipad||手机型号(不区分大小写)| | ||
627 | +|screen_size|string|20|否|800x900||(手机尺寸)| | ||
628 | + | ||
629 | +#### 请求参数 | ||
630 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 | | ||
631 | +|:-------| -----:|-----:|-----:|----:| | ||
632 | +|brandId|int|否||品牌id| | ||
633 | +|dateId |int|否||日期| | ||
634 | + | ||
635 | + | ||
636 | +注意,通用的头部没有列出。 | ||
637 | +请求示例 | ||
638 | +http://192.168.102.217:8080/gateway?method=app.shops.shopbrandrank&brandId=1200&dateId=20160524 | ||
639 | + | ||
640 | + | ||
641 | +### 响应 | ||
642 | +code为200即为成功,否则是失败。 | ||
643 | +响应JSON格式如下所示: | ||
644 | +``` json | ||
645 | +{ | ||
646 | + "alg": "SALT_MD5", | ||
647 | + "code": 200, | ||
648 | + "data": { | ||
649 | + "brandId": 1200, | ||
650 | + "brandName": "wss", | ||
651 | + "buyNumbers": 100, | ||
652 | + "dateId": 20160523, | ||
653 | + "orderAmount": 100, | ||
654 | + "shopId": 431, | ||
655 | + "shopName": "wss" | ||
656 | + }, | ||
657 | + "md5": "1d143fd1d71504f9d7a82121202c4bfc", | ||
658 | + "message": "shop business overview." | ||
659 | +} | ||
660 | + | ||
661 | +``` | ||
662 | + |
-
Please register or login to post a comment