简要描述:

  • B2B接口 —mkt.test.azmks.com/

    接口列表:

接口uri 说明
mark-checkout 结算页面
mark-checkout/change-payment 设置红包\地址、支付方式 等操作
mark-checkout/submit 提交订单
mark-checkout/result 订单支付结果

简要描述:

  • 订单支付结果

请求URL:

  • mark-checkout/result

请求方式:

  • GET

请求参数:

参数名 是否必须 类型 说明
id :— :—– order_id
order_sn :— :—– order_sn

返回示例:

正确时返回:


{
    "code": 0,
    "data": {
        "order_sn": "20241014162247829650",
        "is_pay": 0 /1, //是否支付完成
    },
    "message": ""
}

请求参数:

参数名 说明
order_id order_id
notice_message 安全提示
money_paid_format 支付金额
is_pay 0 未支付 1支付成功
order_sn order_sn

简要描述:

  • 提交订单

请求URL:

  • mark-checkout/submit

请求方式:

  • GET

返回示例:

正确时返回:


{
    "code": 0,
    "data": {
        "out_trade_no": "20241014162247829650",
        "subject": "八客(AZMBK.COM) - 全球直购 | 好货不贵 --订单支付",
        "total_fee": "0.00",
        "body": "订单支付",
        "txnAmt": 0,
        "pay_log_id": "169413",
        "order_sn": "20241014162247829650",
        "order_id": "318374",
        "pay_code": "month_pay",
        "pay_type": "0",
        "user_id": 32630,
        "data": { // APP 独有参数
            'page':"",
            'mini_name':"",
        },
        "qrCode": false
    },
    "message": ""
}

简要描述:

  • 结算页面

请求URL:

  • mark-checkout

请求方式:

  • GET

请求参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
    "code": 0,
    "data": {
        "address_list": [
            {
                "address_id": "15027",
                "address_name": "",
                "user_id": "32603",
                "consignee": "李四",
                "region_code": "11,01,02,001",
                "address_lng": "0",
                "address_lat": "0",
                "address_detail": "ABCD小区",
                "mobile": "13455678911",
                "tel": null,
                "email": null,
                "zipcode": null,
                "address_house": "门牌号",
                "address_label": "",
                "card_id": null,
                "real": "0",
                "address_type": "1",
                "is_real": "0",
                "real_name": null,
                "id_code": null,
                "is_default": "1",
                "region_name": "北京市 北京市 西城区 白纸坊街道",
                "selected": 1,
                "mobile_format": "134****8911",
                "id_code_format": "**********"
            }
        ],
        "bonus_list": [
            {
                "id": 0,
                "bonus_name": "不使用红包",
                "bonus_limit": "0",
                "bonus_price": "0"
            },
            {
                "id": "71989",
                "user_bonus_id": "71989",
                "user_id": "32603",
                "bonus_id": "628",
                "bonus_sn": "172878289310404TSKO",
                "new_user_bonus": "0",
                "erp_bonus": "0",
                "bonus_price": "1.00",
                "bonus_data": "a:5:{s:16:\"min_goods_amount\";s:4:\"5.00\";s:17:\"is_original_price\";i:0;s:12:\"is_self_shop\";i:1;s:7:\"cat_ids\";i:0;s:9:\"goods_ids\";a:0:{}}",
                "receive_time": "1728782893",
                "used_time": "0",
                "start_time": "1728748800",
                "end_time": "1729439999",
                "add_time": "1728782893",
                "order_sn": "0",
                "bonus_status": "0",
                "is_delete": "0",
                "sales_id": "0",
                "user_card_id": "0",
                "from_order_id": null,
                "bonus_type": "1",
                "min_goods_amount": "5.00",
                "is_original_price": "0",
                "use_range": "0",
                "bonus_price_format": "1.00",
                "start_time_format": "2024-10-13 00:00:00",
                "end_time_format": "2024-10-20 23:59:59",
                "min_goods_amount_format": "5.00",
                "goods_list": [
                    {
                        "goods_id": "21596",
                        "number": "20",
                        "goods_price": "1.40",
                        "original_price": "1.50",
                        "discount_fee": 20
                    }
                ],
                "bonus_limit": 1,
                "bonus_limit_format": "1.00",
                "bonus_name": "省1.00,1.00红包",
                "selected": "selected"
            }
        ],
        "goods_list": [
            {
                "cart_id": "113485",
                "user_id": "32603",
                "session_id": "0",
                "shop_id": "22",
                "comstore_id": "0",
                "goods_id": "21596",
                "sku_id": "21991",
                "cart_act_id": null,
                "goods_name": "红霉素软膏 1%*10g",
                "goods_number": "20",
                "goods_price": "1.40",
                "goods_type": 0,
                "parent_id": "0",
                "is_gift": "0",
                "buyer_type": "0",
                "add_time": "1728865385",
                "buy_type": "0",
                "ext_info": null,
                "cart_key": null,
                "store_id": "0",
                "special_offer": "0",
                "cat_id": "2863",
                "other_attrs": "a:7:{i:0;a:2:{s:9:\"attr_name\";s:12:\"商品名称\";s:10:\"attr_value\";a:1:{i:0;s:15:\"红霉素软膏\";}}i:1;a:2:{s:9:\"attr_name\";s:12:\"药品分类\";s:10:\"attr_value\";a:1:{i:0;s:12:\"非处方药\";}}i:2;a:2:{s:9:\"attr_name\";s:6:\"规格\";s:10:\"attr_value\";a:1:{i:0;s:6:\"1%*10g\";}}i:3;a:2:{s:9:\"attr_name\";s:12:\"用法用量\";s:10:\"attr_value\";a:1:{i:0;s:62:\"局部外用。取本品适量,涂于患处,一日2次。 \";}}i:4;a:2:{s:9:\"attr_name\";s:9:\"有效期\";s:10:\"attr_value\";a:1:{i:0;s:8:\"24个月\";}}i:5;a:2:{s:9:\"attr_name\";s:12:\"批准文号\";s:10:\"attr_value\";a:1:{i:0;s:21:\"国药准字H36020018\";}}i:6;a:2:{s:9:\"attr_name\";s:12:\"生产企业\";s:10:\"attr_value\";a:1:{i:0;s:30:\"江西德成制药有限公司\";}}}",
                "vip_discount": null,
                "distribution_price": "0.00",
                "right_id": null,
                "vip_refund": null,
                "brand_id": null,
                "goods_status": true,
                "goods_audit": "1",
                "is_delete": "0",
                "goods_image": "/shop/3/gallery/2020/06/15/15922110757556.jpg",
                "give_integral": 17,
                "invoice_type": "0",
                "stock_mode": "0",
                "spu_number": "984",
                "contract_ids": null,
                "goods_sn": "90852",
                "act_id": 0,
                "order_act_id": "965",
                "goods_moq": "3",
                "user_discount": "0",
                "sales_model": "0",
                "sku_name": "红霉素软膏 1%*10g",
                "sku_image": "/shop/3/gallery/2020/06/15/15922110757556.jpg",
                "sku_number": "984",
                "market_price": "1.80",
                "jd_id": "0",
                "cost_price": "1.00",
                "spec_names": null,
                "sku_sn": "90852",
                "sku_enable": "1",
                "shop_name": "澳洲玛医药官方旗舰店",
                "start_price": "0.00",
                "shop_status": "1",
                "act_type": null,
                "is_cross_border": "0",
                "is_hot_medicine": null,
                "is_prescription_medicine": "0",
                "generic_name": null,
                "drug_specifications": null,
                "requency_usage": null,
                "unit_name": "支",
                "is_supply": "1",
                "medicine_type": "0",
                "hd_categorys": "170104",
                "hd_region": null,
                "hd_is_special": "1",
                "is_sync_restriction": "1",
                "hd_price_group": null,
                "original_price": "1.50",
                "tag_image": null,
                "tag_position": null,
                "goods_min_number": 1,
                "goods_max_number": "984",
                "select": 1,
                "activity": null,
                "order_activity": {
                    "act_id": "965",
                    "act_img": "/shop/22/images/2024/10/09/17284409579226.png",
                    "act_type": "12",
                    "act_name": "测试满减",
                    "purchase_num": "0",
                    "ext_info":"{\"discount\":{\"5\":{\"reduce_cash\":\"5\"},\"20\":{\"reduce_cash\":\"20\"},\"35\":{\"gift\":\"966\",\"gift_name\":\"\送\赠\品XSD\"},\"40\":{\"reduce_percent\":\"2\"}},\"bonus_list\":null,\"gift_list\":[\"966\"],\"use_range_check\":\"1\",\"use_range\":\"21596\"}",
                    "end_time": "1730946641",
                    "start_time": "1728440921",
                    "act_price": "1.50",
                    "act_stock": "0",
                    "sale_base": "0",
                    "sku_id": "21991",
                    "goods_number": "984",
                    "goods_status": "1",
                    "goods_price": "1.50",
                    "discount": {
                        "5": {
                            "reduce_cash": "5"
                        },
                        "20": {
                            "reduce_cash": "20"
                        },
                        "35": {
                            "gift": "966",
                            "gift_name": "送赠品XSD"
                        },
                        "40": {
                            "reduce_percent": "2"
                        }
                    },
                    "bonus_list": null,
                    "gift_list": [
                        "966"
                    ],
                    "use_range_check": "1",
                    "use_range": "21596",
                    "act_code": "full_cut",
                    "discount_message": [
                        "满5元,减5元;",
                        "满20元,减20元;",
                        "满35元,送赠品;",
                        "满40元,可抵扣2%;"
                    ],
                    "reduce_percent": "2",
                    "discount_label": [
                        "reduce_cash",
                        "gift",
                        "reduce_percent"
                    ],
                    "act_color": null
                },
                "prices": {
                    "is_original_price": false,
                    "price_type": "member_price",
                    "original_price": "1.50",
                    "activity_price": false,
                    "member_price": "1.40",
                    "goods_price": "1.40",
                    "flag_type": "0.00",
                    "vip_price": false,
                    "vip_refund": "0.00",
                    "activity_enable": "0.00"
                },
                "goods_price_format": "1.40",
                "market_price_format": "1.80",
                "original_price_format": "1.50",
                "activity_tag": [
                    "3份起购"
                ],
                "date_validity": "24个月",
                "manufactor": "江西德成制药有限公司",
                "add_time_format": "2024-10-14 08:23:05",
                "vip_amount": "28.00",
                "goods_amount": "28.00",
                "market_amount": "36.00",
                "goods_amount_format": "28.00",
                "cart_disable": 0,
                "contract_list": null,
                "gift_list": [
                    {
                        "gift_id": "162",
                        "goods_id": "21596",
                        "sku_id": "21991",
                        "gift_goods_id": "21593",
                        "gift_sku_id": "21988",
                        "gift_number": 20,
                        "shop_id": "22",
                        "sku_name": "莱亿芬 醋氯芬酸分散片 0.1g*6s*2板 关节炎 类风湿性关节炎",
                        "spec_ids": null,
                        "spec_names": null,
                        "sku_image": "/shop/3/gallery/2020/04/01/15857203474280.jpg",
                        "sku_number": "1",
                        "cost_price": "13.39",
                        "sku_sn": "73922",
                        "sku_enable": "1",
                        "goods_name": "莱亿芬 醋氯芬酸分散片 0.1g*6s*2板 关节炎 类风湿性关节炎",
                        "spu_number": "1",
                        "goods_images": "a:1:{s:7:\"default\";a:5:{i:0;s:45:\"/shop/3/gallery/2020/04/01/15857203474280.jpg\";i:1;s:45:\"/shop/3/gallery/2020/04/01/15857203477842.jpg\";i:2;s:45:\"/shop/3/gallery/2020/04/01/15857203476799.jpg\";i:3;s:45:\"/shop/3/gallery/2020/04/01/15857203479600.jpg\";i:4;s:45:\"/shop/3/gallery/2020/04/01/15857203475579.jpg\";}}",
                        "goods_image": "/shop/3/gallery/2020/04/01/15857203474280.jpg",
                        "goods_sn": "73922",
                        "stock_mode": "0",
                        "goods_status": true,
                        "goods_audit": "1",
                        "is_delete": "0",
                        "goods_min_number": 1,
                        "goods_max_number": "1",
                        "goods_price": 0,
                        "goods_price_format": "0.00",
                        "goods_amount": 0,
                        "goods_amount_format": "0.00",
                        "goods_number": "1",
                        "sku_image_thumb": "http://oss.azmbk.com/images/shop/3/gallery/2020/04/01/15857203474280.jpg?x-oss-process=image/resize,m_pad,limit_0,h_80,w_80",
                        "act_number": 20
                    }
                ],
                "reduce_cash": 20,
                "reduce_percent": null,
                "gift": null,
                "freight_free": null,
                "point": null,
                "bonus": null,
                "discount_fee": 20,
                "vip_amount_format": "28.00",
                "shop_bonus_amount": 1,
                "other_price": 1
            }
        ],
        "order": {
            "pay_code": null,
            "order_amount": "17.00",
            "goods_amount": 28,
            "shipping_fee": 10,
            "balance": 0,
            "integral": 0,
            "integral_amount": 0,
            "inv_fee": 0,
            "money_pay": 17,
            "is_cash": 0,
            "cash_more": 0,
            "bonus_id": 0,
            "bonus_amount": 0,
            "coupons_amount": 0,
            "shop_bonus_amount": 1,
            "buyer_type": 0,
            "shop_store_card_amount": 0,
            "full_cut_amount": 20,
            "full_cut_bonus": 0,
            "full_cut_point": 0,
            "order_data": null,
            "order_type": 0,
            "other_shipping_fee_amount": 0,
            "packing_fee": 0,
            "integral_goods_amount": 0,
            "cs_delivery_fee": 0,
            "order_vip_amount": 0,
            "vip_refund_amount": 0,
            "vip_goods_amount": 8,
            "is_cod": 0,
            "pay_id": null,
            "pay_name": null,
            "discount_fee": 20,
            "is_has_prescription_medicine": 0,
            "give_integral": 17,
            "shop_index_only_pickup": 2,
            "total_bonus_amount": 1,
            "vip_money_pay": 0,
            "order_vip_amount_format": "0.00",
            "vip_goods_amount_format": "8.00",
            "vip_refund_amount_format": "0.00",
            "order_amount_format": "17.00",
            "goods_amount_format": "28.00",
            "shipping_fee_format": "10.00",
            "integral_amount_format": "0.00",
            "money_pay_format": "17.00",
            "cash_more_format": "0.00",
            "shop_bonus_amount_format": "1.00",
            "bonus_amount_format": "0.00",
            "coupons_amount_format": "0.00",
            "total_bonus_amount_format": "1.00",
            "full_cut_amount_format": "20.00",
            "discount_fee_format": "20.00",
            "shop_store_card_amount_format": "0.00",
            "balance_format": "0.00",
            "other_shipping_fee_amount_format": "0.00",
            "packing_fee_format": "0.00",
            "cs_delivery_fee_format": "0.00",
            "is_vip": false,
            "vip_discounts": "17.00",
            "vip_flag": 0,
            "free_vip_money": 0
        },
        "pay_list": [
            {
                "id": "10",
                "name": "银盛微信",
                "code": "ys_weixin",
                "tips": "",
                "checked": "",
                "disabled": 0,
                "icon": "https://m.azmbk.com/images/user/ic_wechat.png"
            }
        ],
        "buy_type": 0,
        "shop_id": "22",
        "check_address": 1,
        "consignee_list": null,
        "consignee": null,
        "balance_enable": "1",
        "balance_first": "1",
        "topay_enable": false,
        "consignee_house": null,
        "arrived_text": "立即配送",
        "first_key": 0,
        "arrived_time": "",
        "best_time1": null,
        "delivery_type": 0,
        "back_url": null,
        "money_pay": 1
    },
    "message": ""
}

返回参数说明:

参数名 类型 说明
address_list arr 地址列表
address_list.selected int 地址是否被选中
pay_list arr 支付方式
bonus_list arr 可用红包
bonus_list.id string 红包ID
bonus_list.bonus_name string 红包名称
bonus_list.bonus_name string 红包名称
bonus_list.use_range string 0所有商品可用、 1部分商品可用
bonus_list.end_time_format string 可用结束时间
disable_bonus_list arr 不可用红包
goods_list arr 商品列表
goods_list.manufactor string 生产企业
goods_list.activity_tag arr [“特惠X”,”份起购”]
goods_list.date_validity string 有效期
goods_list.goods_name string 商品名称
goods_list.goods_number string 商品数量
goods_list.goods_price string 商品单价
goods_list.market_price string 商品单价划线价
goods_list.goods_image string 商品图片
goods_list.goods_amount string 商品总价
goods_list.market_amount string 商品总价划线价
shipping_list arr 配送方式
order arr 订单信息
order.order_amount_format string 订单总金额
order.goods_amount_format string 商品总金额
order.shipping_fee_format string 快递费
order.total_bonus_amount_format string 红包抵扣
order.full_cut_amount_format string 满减活动优惠
order.total_discount_amount string 总优惠

备注:

简要描述:

  • 切换支付方式

请求URL:

  • mark-checkout/change-payment

请求方式:

  • POST

请求参数:

参数名 是否必须 类型 说明
pay_code string 支付方式code
shop_id string 店铺ID
bonus_id string 红包ID
shipping_id string 配送方式ID
pickup_id string 自提点ID
pay_code string 支付方式——code
address_id string 地址ID

返回示例:

正确时返回:

{
    "code": 0,
    "data": null,
    "message": "",
    "pay_list": [{
        "id": "10",
        "name": "银盛微信",
        "code": "ys_weixin",
        "tips": "",
        "checked": "",
        "disabled": 0,
        "icon": "https:\/\/m.azmbk.com\/images\/user\/ic_wechat.png"
    }, {
        "id": "11",
        "name": "支付宝Mini",
        "code": "ys_alimini",
        "tips": "",
        "checked": "checked",
        "disabled": 0,
        "icon": "https:\/\/m.azmbk.com\/images\/user\/ic_alipay.png"
    }, {
        "id": "15",
        "name": "月结",
        "code": "month_pay",
        "tips": "",
        "checked": "",
        "disabled": 0
    }],
    "user_info": {
        "user_name": "BK177DMRW8748",
        "mobile": "17764838748",
        "address_now": "",
        "detail_address": "",
        "pay_point": 0,
        "pay_point_amount": 0,
        "pay_point_amount_format": "0.00",
        "balance": "0.00",
        "online_balance": "0.00",
        "balance_format": "0.00",
        "balance_password_enable": 0
    },
    "order": {
        "pay_code": "ys_alimini",
        "order_amount": "36.20",
        "goods_amount": "27.20",
        "shipping_fee": 10,
        "balance": 0,
        "integral": 0,
        "integral_amount": 0,
        "inv_fee": 0,
        "money_pay": 36.2,
        "is_cash": 0,
        "cash_more": 0,
        "bonus_id": 0,
        "bonus_amount": 0,
        "coupons_amount": 0,
        "shop_bonus_amount": 1,
        "buyer_type": 0,
        "shop_store_card_amount": 0,
        "full_cut_amount": 0,
        "full_cut_bonus": 0,
        "full_cut_point": 0,
        "order_data": [],
        "order_type": 0,
        "other_shipping_fee_amount": 0,
        "packing_fee": 0,
        "integral_goods_amount": 0,
        "cs_delivery_fee": 0,
        "order_vip_amount": 36.2,
        "vip_refund_amount": 0,
        "vip_goods_amount": "27.20",
        "is_cod": 0,
        "pay_id": "11",
        "pay_name": "支付宝Mini",
        "discount_fee": 0,
        "is_has_prescription_medicine": 0,
        "give_integral": 328,
        "shop_index_only_pickup": 2,
        "total_bonus_amount": 1,
        "vip_money_pay": 36.2,
        "order_vip_amount_format": "36.20",
        "vip_goods_amount_format": "27.20",
        "vip_refund_amount_format": "0.00",
        "order_amount_format": "36.20",
        "goods_amount_format": "27.20",
        "shipping_fee_format": "10.00",
        "money_pay_format": "36.20",
        "shop_bonus_amount_format": "1.00",
        "bonus_amount_format": "0.00",
        "coupons_amount_format": "0.00",
        "total_bonus_amount_format": "1.00",
        "full_cut_amount_format": "0.00",
        "discount_fee_format": "0.00",
        "shop_store_card_amount_format": "0.00",
        "balance_format": "0.00",
        "other_shipping_fee_amount_format": "0.00",
        "packing_fee_format": "0.00",
        "cs_delivery_fee_format": "0.00",
        "is_vip": false,
        "vip_discounts": "0.00",
        "vip_flag": 0,
        "free_vip_money": 0
    },
    "check_address": 1,
    "pickup_id": null
}

返回参数说明:

参数名 类型 说明
xxx arr xxx

备注:

文档更新时间: 2024-10-25 09:18   作者:xieyuhua