人人商城二开-接口对接
2019-08-19 本文已影响0人
平凡啊菜
Main System to New E-Commerce API To Prepare
Update User API Requirement
Parameter To Receive
- username
- Username will be used to determine which user/merchant to update only, do not include into the update query
- 马来新增用户,邮箱数据更改(username 作为更新主字段,不重复)
- 更新update
- 成功OK,失败重试
- ims_ewei_shop_member && ims_ewei_shop_merch_account
- password
- 已加密过后的,只需要更新数据
- 新加坡服务器password字段要一致
- email
- 更新email值
- phone_no
- 更新mobile字段
- status
- Option available
a. 1 = Active
b. 0 = Inactive
- Option available
- type
- Option available
a. Individual = User
b. Corporate = Merchant- 根据type判断更新是ims_ewei_shop_member 或者是 ims_ewei_shop_merch_account && ims_ewei_shop_merch_user
- 先获取ims_ewei_shop_merch_account的merchid
- Option available
- merchant
- Either in object or null
- null 的情况下,无json值
- Sample data in object
a. {"name": "", "phone_no": ""}
Field To Update For Table
- ims_ewei_shop_member
- pwd
- mobile
- status
- ims_ewei_shop_merch_account
- pwd
- status
- ims_ewei_shop_merch_user
- merchname
- realname = merchname
- mobile
- status
New E-Commerce to Main System API
Order Sync API Requirement
Parameter To Pass
-
username
- Username will be used to determine which user make the order
-
merchant_username
- Merchant username will be used to determine which merchant the user order from
-
ref_no
- Order reference number
- It will be used to determine which order to update
-
payment_method
- Option available
a. 1 = Billplz
b. 2 = Bonus Point
c. 3 = Business Account
d. 4 = Transaction Account
e. 6 = Visa
f. 7 = Mastercard
g. 8 = Unionpay
- Option available
-
subtotal_amount
- Total of all item excluding all other fees
-
shipping_amount
-
discount_amount
-
total_amount
- Total amount including shipping, discount and any other fees
-
total_reward_point
- Total reward point user to receive
-
status
- Option available
a. Pending
b. Cancelled
c. Complete
- Option available
非常好的模式,让我今年收益翻倍的文章,强烈推荐分享下:
2020年4月至6月净利润断层实战小结-真香~