内容接口
商城配置
读取商城的公开配置:币种、承运商、已启用的支付渠道与运费规则。
获取商城公开配置
GET
/_api/commerce/config公开接口前端渲染币种、承运商与支付方式时使用,无需鉴权。
响应示例
{
"defaultCurrency": "cny",
"supportedCurrencies": ["cny", "usd"],
"supportedCarriers": ["sf", "yto", "zto", "jd"],
"paymentGatewayEnabled": true,
"enabledPaymentChannels": ["alipay", "wechat"],
"shippingFee": 12,
"freeShippingThreshold": 199
}