Webhook-订单

订单处理类型

  • 订单创建:前台商城:购物车创建订单,通过buy it now创建订单,paypal快捷支付创建订单。商家后台:订单管理创建订单。
  • 订单发起支付:前台商城订单结账完成,进行订单支付发起
  • 订单支付失败:订单发起支付后,支付失败
  • 订单支付成功:支付成功
  • 订单取消:订单被取消

订单,推送的json数据格式如下:

格式:json

参数名称 是否必须 类型 描述
order_info 必须 array 订单信息
event_type 必须 int 事件类型:1.订单创建 ,2.订单发起支付,3.订单支付失败,4.订单支付成功,5.订单取消
event_note 必须 string 事件类型字符串:1.订单创建:order_create ,2.订单发起支付:order_payment_begin,3.订单支付失败:order_payment_fail,4.订单支付成功:order_payment_success,5.订单取消:order_canceled
access_key 选填 string 验签部分的字符串。为了安全,您可以进行验签,详细参看:Webhook-验签
{
    "order_info": {
        "id": 2950,
        "shop_id": 15,
        "order_number": "C130845039060608",
        "client_type": 1,
        "order_status": 2,
        "payment_status": 2,
        "fulfillment_status": 1,
        "checkout_type": 2,
        "lang_code": "en",
        "items_count": 1,
        "gram": "0.00",
        "currency_code": "EUR",
        "base_currency_code": "USD",
        "order_to_base_rate": "0.94",
        "curr_subtotal": "108.10",
        "base_subtotal": "115.00",
        "base_tax": "0.00",
        "curr_tax": "0.00",
        "curr_shipping_total": "2.82",
        "base_shipping_total": "3.00",
        "curr_subtotal_with_discount": "0.00",
        "base_subtotal_with_discount": "0.00",
        "curr_grand_total": "110.92",
        "base_grand_total": "118.00",
        "customer_type": 1,
        "customer_id": 76,
        "customer_email": "[email protected]",
        "customer_phone": "32132",
        "coupon_code": "",
        "discount_set": [],
        "payment_method": "paypal",
        "payment_position_type": 1,
        "payment_fee": "0.00",
        "shipping_method_id": 38,
        "shipping_method_name": "ttttttesttttt",
        "note": "",
        "cancelled_at": 0,
        "cancel_reason": 0,
        "payed_at": 0,
        "created_at": "2024-01-30 03:15:03",
        "updated_at": "2024-01-30 03:57:35",
        "billing_is_use_shipping_address": 1,
        "step": 5,
        "recall_status": 2,
        "recalled_at": 0,
        "recall_send_email_count": 0,
        "recall_send_email_time": 0,
        "fulfilled_at": 0,
        "post_saled_at": 0,
        "post_sale_status": 1,
        "tags": null,
        "over_sold_count": 0,
        "is_stock_deducted": 1,
        "fist_loading_url": "https:\/\/diydomain.fecmall.cn\/collections\/shoes",
        "affiliate_tracking_id": "432432",
        "remark": "45454",
        "items": [
            {
                "id": 3440,
                "shop_id": 15,
                "order_id": 2950,
                "product_id": 144,
                "variant_id": 659,
                "spu": "denim",
                "sku": "aadenim-Blue-M-1004527bb",
                "variant_title": "Blue \/ M",
                "product_title": "Jofshop Jofshop Denim Jacket",
                "image": "\/common\/15\/image\/2022\/11\/07\/b2a4f730fe18732fb8e693eba2c9faae.webp",
                "gram": "0.00",
                "base_price": "115.00",
                "curr_price": "108.10",
                "base_row_tax": "0.00",
                "curr_row_tax": "0.00",
                "addition_attr_base_price": "0.00",
                "addition_attr_curr_price": "0.00",
                "addition_attr": "",
                "glasses_custom_base_price": "0.00",
                "glasses_custom_curr_price": "0.00",
                "glasses_customized": null,
                "qty": 1,
                "curr_row_price": "108.10",
                "row_gram": "0.00",
                "base_row_price": "115.00",
                "is_reviewed": 2,
                "over_sold_count": 0,
                "created_at": 1706584503,
                "updated_at": 1706587055
            }
        ],
        "shippingAddress": {
            "id": 2009,
            "shop_id": 15,
            "order_id": 2950,
            "first_name": "Terry",
            "last_name": "zhao",
            "phone": "32132",
            "company": "qingdao feimao keji",
            "address_1": "chong qing zhong lu 111",
            "address_2": "",
            "city": "qingdao",
            "country_code": "AX",
            "province_code": "",
            "zip": "323232",
            "created_at": 1706587055,
            "updated_at": 1706587055
        },
        "billingAddress": null
    },
    "event_type": 1,
    "event_note": "order_create",
    "access_key": "bd91b187bea6b77909df95a56f9b99ba15b1ba4f0a17eec099663bec3ffb4952"
}
Copyright © Jofshop.com 2022 all right reserved,powered by Gitbook该文件修订时间: 2024-02-01 11:43:42

results matching ""

    No results matching ""