创建结算明细

Path: /optimus/core/order/createCheckoutItems

入参说明(JSON 格式)

入参整体结构

字段 类型 描述
appid String 应用ID
seller Object 商户信息
mallID Object 商城ID
buyer Object 买家信息
checkoutItems Array 结算商品列表

入参字段结构

mallID 字段明细

字段 类型 描述
mallSn String 商城编号
signature String 商城签名

seller 字段明细

字段 类型 描述
merchantId String 商户ID
merchantUserId String 商户用户ID
role String 角色

buyer 字段明细

字段 类型 描述
buyerId String 买家ID

checkoutItems 字段明细: 商品会自动根据数量*价格算出需要支付的总金额

字段 类型 描述
image String 商品图片
price Long 商品价格(单位:分)
spuId String SPU ID
quantity String 数量
type String 类型
title String 商品标题
skuId String SKU ID

出参说明(JSON 格式)

出参整体结构

字段 类型 描述
success Boolean 是否成功
code String 返回码
msg String 返回消息
data Object 数据

出参字段结构

data 字段明细

字段 类型 描述
checkoutItemsId String 结算明细ID
totalAmount Long 总金额(单位:分)

示例

{
    "appid": "2025082700005615",
    "seller": {
        "merchantId": "fd567f94-9a44-4ae5-879f-9acc919d0f89",
        "merchantUserId": "42c556cc-1509-4de0-bfc3-dfbcb48eae57",
        "role": "super_admin"
    },
    "mallID": {
        "mallSn": "2026032016163406527",
        "signature": "qCbBQ9l99yCXdpuao945"
    },
    "buyer": {
        "buyerId": "fd567f94-9a44-4ae5-879f-9acc919d0f89"
    },
    "checkoutItems": [
        {
            "image": "https://images.wosaimg.com/bb/026955bfac02f24828a729ca355a936b24c9c0.png",
            "price": 1,
            "spuId": "1",
            "quantity": "1",
            "type": "1",
            "title": "测试商品",
            "skuId": "1"
        }
    ]
}

results matching ""

    No results matching ""