服务生效回调
服务生效回调接口
Section titled “服务生效回调接口”该接口由电商平台实现,URL 在店铺接入时配置。请求头 xmh-hmc-signature。仅 HTTP 200 视为成功(见 鉴权 §4.2)。不解析 body 中的 errCode。
保单生效时,可能同时收到本回调与 服务单状态回调(serviceState=3)。请按 serviceOrderId 做幂等。
完整字段说明见 API 接口文档 · webhook serviceActivated。不要对着 OpenAPI 域名点 Send。
注意:
- 含
guaranteeBegTime/guaranteeEndTime(RFC3339)。 insureItem在serviceType=PP时有值;SP 保障整单。其字段按xmhOpenApiSdk.DItemJSON 协议定义,不是只有商品 ID 的精简对象。
{ "platformOrderId": "6462084809006", "serviceOrderId": "20251010XPP3310437F8F86", "serviceType": "PP", "guaranteeBegTime": "2026-08-04T10:15:30+08:00", "guaranteeEndTime": "2027-08-04T10:15:30+08:00", "insureItem": { "itemId": "15925587542318", "variantId": "48951949590830", "skuId": "12345609", "productId": "9434472513838", "orderGoodsId": "6462084809006-item-1", "itemName": "The Collection Snowboard: Liquid", "ItemPicInfoMain": ["https://example.com/products/snowboard.jpg"], "currency": "USD", "unitNum": "1", "isPackageItem": false, "isPPItem": false, "unitPrice": "100.00", "preferentialPrice": "0.00", "totalPrice": "100.00", "totalPayPrice": "100.00", "insuredPayPrice": "9.20", "Properties": {"Color": "Black"}, "ppVariant": { "variantId": "18DUD7SCT4800_100", "name": "1 Year", "price": "9.20", "currency": "USD", "currencySymbol": "$", "properties": { "Plan ID": "1 Year", "Product": "The Collection Snowboard: Liquid", "Reference": "15925587542318" } }, "serviceOrderIds": ["20251010XPP3310437F8F86"] }}