帮助中心

1100 - Store sales summary upload

2019-06-12

Scenario

External system uploads sales summary of single store to EZR, it will enable analysis of daily sales involving members.


Direction

External system will call EZR

Call path: api/csale/shopsaleupload


Core Logic

Each store only need to upload one time per day, repeated upload will re-write former result. 


Request Parameters


Field

Type

Required

Length

Description

ShopCode

string

Yes

1~16

Shop ID

SaleDate

string

Yes

-

Date of sale
  yyyy-MM-dd   HH:mm:ss

SaleNum

int

Yes


Number of   effective sales orders

SaleQty

int

Yes


Number of   sold items

SaleMoney

double

Yes


Total sales   amount of money

SaleDiscountMoney

double

Yes


Total   discounted amount of money

AvgPrice

double

Yes


Average price   of items

AvgDiscount

double

Yes


Average   discouts (0-100)

DataOrigin

int



Data origins:
  0: offline stores
  1: App
  2: official website
  6: EZR provided WeChat store
  7: EZR provided WeChat mini program
  10: Taobao
  11: JD

Example Request (JSON)

{

    "ShopCode": "HQS0001",

    "SaleDate": "2015-06-22",

    "SaleNum": 120,

    "SaleQty": 210,

    "SaleMoney": 50102.00,

    "SaleDiscountMoney": 1201.00,

    "AvgPrice": 309.00,

    "AvgDiscount": 75.00

}


Example Result (JSON)

{

    "Status": true,

    "StatusCode": 200,

    "Msg": "成功",

    "Timestamp": "20150622093101",

    "Sign": "6ECC9BF07C69E80F6D8552FF7B2E7A8FCA2CC80E",

    "Result": 见业务返回结果示例,

}


sales 1138