美文网首页
人人商城二开-接口对接

人人商城二开-接口对接

作者: 平凡啊菜 | 来源:发表于2019-08-19 12:37 被阅读0次

Main System to New E-Commerce API To Prepare

Update User API Requirement

Parameter To Receive

  1. 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
  2. password
    • 已加密过后的,只需要更新数据
    • 新加坡服务器password字段要一致
  3. email
    • 更新email值
  4. phone_no
    • 更新mobile字段
  5. status
    • Option available
      a. 1 = Active
      b. 0 = Inactive
  6. 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
  7. merchant
    • Either in object or null
    • null 的情况下,无json值
    • Sample data in object
      a. {"name": "", "phone_no": ""}

Field To Update For Table

  1. ims_ewei_shop_member
    • pwd
    • email
    • mobile
    • status
  2. ims_ewei_shop_merch_account
    • pwd
    • status
  3. ims_ewei_shop_merch_user
    • merchname
    • realname = merchname
    • mobile
    • status

New E-Commerce to Main System API

Order Sync API Requirement

Parameter To Pass

  1. username

    • Username will be used to determine which user make the order
  2. merchant_username

    • Merchant username will be used to determine which merchant the user order from
  3. ref_no

    • Order reference number
    • It will be used to determine which order to update
  4. 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
  5. subtotal_amount

    • Total of all item excluding all other fees
  6. shipping_amount

  7. discount_amount

  8. total_amount

    • Total amount including shipping, discount and any other fees
  9. total_reward_point

    • Total reward point user to receive
  10. status

    • Option available
      a. Pending
      b. Cancelled
      c. Complete

非常好的模式,让我今年收益翻倍的文章,强烈推荐分享下:
2020年4月至6月净利润断层实战小结-真香~

相关文章

网友评论

      本文标题:人人商城二开-接口对接

      本文链接:https://www.haomeiwen.com/subject/sssssctx.html