Skip to content

查询订单信息

接口

  • /scOrder/selectOrderInfo

公共参数

参数名称参数类型是否必须示例值参数描述
nameStringscOrder.selectOrderInfo调用的 API 接口名称
appKeyString2w42E9JBF8hBSg3m4MmzqQ应用创建完成后被分配的 key
timestampString1742621225时间戳,格式为 10 位时间戳,时区为 GMT+8
versionString1API 协议版本
dataString%7b%22appKey%22%3a%22...标准 json 类型经 URL 编码,里面是业务参数。
signString480F2F3CEC131AB0209D3C76BE1CF4B0输入参数签名结果
accessTokenStringeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...访问令牌
json
{
  "name": "token.refreshToken",
  "appKey": "2w42E9JBF8hBSg3m4MmzqQ",
  "timestamp": "1742621225",
  "version": "1",
  "data": "%7b%22appKey%22%3a%222w42E9JBF8hBSg3m4MmzqQ%22%2c%22refreshToken%22%3a%2249694e4d-d5ee-420f-8c5d-b130f44089ed%22%7d",
  "sign": "480F2F3CEC131AB0209D3C76BE1CF4B0",
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJtaXNzaW9uIjoiMSwyLDMiLCJleHAiOjE3NDE3ODc1OTEsImlhdCI6MTc0MTc4MDM5MX0.DkTbj6bOxSkrHTcYcvH5KsDiMUJKQoW2FOYq8Fo4-5U"
}

业务参数

参数名称参数类型是否必须示例值参数描述
pageNoString"1"当前页码
pageSizeString"20"每页显示的数据条数
douyinChildObject{"orderId":"4662322776609800430"}抖音子订单相关信息
douyinChild.orderIdString"4662322776609800430"抖音子订单 ID,若该字段未指定,则下面 2 个字段其中之一必填
douyinChild.shopIdListarray["1111111","222222","3333333"]店铺列表
douyinChild.childBeginAndEndDatearray["2025-03-12 21:54:37","2025-03-15 21:54:37"]查询时间范围,一个起始时间,一个结束时间

响应参数

参数名称参数类型是否必须示例值参数描述
successBooleanTRUE表示操作是否成功
messageString操作成功!操作的结果提示信息
codeInteger200返回码,通常 200 表示成功
resultarray订单结果集
timestampInteger1741780391747响应生成的时间戳,单位为毫秒

array 内对象

参数名称参数类型是否必须示例值参数描述
idString"1234567890"主键 ID
fkIdString"1234567890"主表 ID
orderIdString"DOUYIN_ORDER_123456"订单 ID
shopIdString"330200"抖音店铺 ID
pidString"PARENT_ORDER_123456"父订单 ID
finalStatusBigDecimal2订单最终状态(1-待支付;2-备货中;3-已发货;4-已取消;5-已完成等)
openIdString"DOUYIN_MINIAPP_123456"抖音小程序 ID(下单时使用)
productIdString"PRODUCT_123456"商品 ID
productNameString"商品名称示例"商品名称
productPicString"http://example.com/image.jpg"商品主图 URL
comboIdString"SKU_123456"商品 SKU ID
comboAmountString"123.45"商品 SKU 金额
comboNumBigDecimal2商品 SKU 数量
codeString"CODE_123456"商品编码
specDescString"颜色:红色;尺码:M"商品规格描述
postAddrString"浙江省宁波市余姚市梨洲街道"收件人地址
postCodeString"315000"邮政编码
postReceiverString"张三"收件人姓名
postTelString"13800138000"收件人电话
buyerWordsString"请尽快发货"买家备注
sellerWordsString"注意核对地址"卖家备注
shopOrderTagUiString"标签内容"店铺订单标签
logisticsIdString"123456"物流公司 ID
logisticsCompanyCodeString"SF"物流公司编码
logisticsCodeString"1234567890"物流单号
logisticsTimeString"1630000000"发货时间(秒级时间戳)
receiptTimeString"1630000000"收货时间(秒级时间戳)
orderTypeBigDecimal0订单类型(0-实物;2-普通虚拟;4-POI 核销等)
preSaleTypeBigDecimal1商品发货方式(1-全款预售;2-阶梯预售;不返回则为现货)
createTimeString"1630000000"订单创建时间(秒级时间戳)
updateTimeString"1630000000"订单更新时间(秒级时间戳)
expShipTimeString"1630000000"最晚发货时间(秒级时间戳)
cancelReasonString"用户超时未支付"订单取消原因
payTypeBigDecimal1支付类型(0-货到付款;1-微信;2-支付宝)
payTimeString"2024-01-01 12:00:00"支付时间(格式:yyyy-MM-dd HH:mm:ss
payTimeListList<String>-支付时间列表(用于查询)
postAmountString"1000"邮费金额(单位:分)
couponAmountString"500"平台优惠券金额(单位:分)
shopCouponAmountString"300"商家优惠券金额(单位:分)
couponMetaIdString"COUPON_123456"优惠券 ID
couponInfoString"JSON 格式的优惠券信息"优惠券详情
totalAmountString"12345"子订单实付金额(单位:分)
platformDirectReductionPlatformAmountString"200"平台直降补贴金额(单位:分)
isCommentBigDecimal1是否评价(1-已评价;0-未评价)
urgeCntBigDecimal2催单次数
bTypeBigDecimal2订单 APP 渠道(0-站外;1-火山;2-抖音等)
subBTypeBigDecimal1订单来源类型(0-未知;1-APP;2-小程序;3-H5)
cBizBigDecimal2业务来源(1-鲁班;2-小店;3-好好学习等)
isInsuranceString"有"是否有退货运费险
cTypeString"类型描述"业务类型
cosRatioString"0.8"成本比率
userNameString"用户名示例"用户名
warehouseIdString"WAREHOUSE_123456"仓库 ID
outWarehouseIdString"OUT_WAREHOUSE_123456"仓库外部 ID
warehouseSupplierString"SUPPLIER_123456"供应商 ID
shopFullCampaignString"满 100 减 20"店铺满减优惠信息
shopCampaignIdString"CAMPAIGN_123456"店铺满减活动 ID
shopFullAmountString"200"分摊到该子订单上的满减金额(单位:分)
platformFullAmountString"300"平台满减金额(单位:分)
platformFullCampaignString"满 200 减 50"平台满减优惠信息
platformCampaignIdString"CAMPAIGN_789012"平台满减活动 ID
costSourceString"JSON 格式的分摊信息"平台满减分摊详情
promotionAmountString"500"单优惠总金额(单位:分)
sourceTypeBigDecimal1优惠由谁承担(1-店铺承担;2-平台承担)
shippedNumBigDecimal1已发货商品数量
itemIdsString"JSON 格式的商品 ID 列表"子订单中的商品 ID 列表
adjustAmountString"12345"修改的货款总计
dDateString"2024-01-01"日期字段
dDateListList<String>-日期字段列表(用于查询)
tsString"2024-01-01 12:00:00"时间戳字段
versionBigDecimal1版本号
campaignInfoString"活动描述"活动信息
orderStatusBigDecimal2订单状态(1-待支付;2-备货中;3-已发货;4-已取消;5-已完成等)
outProductIdString"OUT_PRODUCT_123456"外部商品 ID
outSkuIdString"OUT_SKU_123456"外部 SKU ID
allianceInfoString"联盟描述"联盟信息
authorIdString"AUTHOR_123456"带货达人 ID
authorNameString"达人姓名"达人名字
themeTypeBigDecimal1下单来源(1-直播间;2-短视频;3-文章)
appIdString"APP_123456"应用 ID
roomIdString"ROOM_123456"直播间 ID
contentIdString"CONTENT_123456"内容 ID
videoIdString"VIDEO_123456"视频 ID
originIdString"ORIGIN_123456"来源 ID
cidString"CID_123456"内容 ID
pageIdString"PAGE_123456"页面 ID
dLogisticsTimeString"2024-01-01 12:00:00"发货时间(格式:yyyy-MM-dd HH:mm:ss
dLogisticsTimeListList<String>-发货时间列表(用于查询)
dReceiptTimeString"2024-01-01 12:00:00"收货时间(格式:yyyy-MM-dd HH:mm:ss
dReceiptTimeListList<String>-收货时间列表(用于查询)
dCreateTimeString"2024-01-01 12:00:00"创建时间(格式:yyyy-MM-dd HH:mm:ss
dCreateTimeListList<String>-创建时间列表(用于查询)
dUpdateTimeString"2024-01-01 12:00:00"更新时间(格式:yyyy-MM-dd HH:mm:ss
dUpdateTimeListList<String>-更新时间列表(用于查询)
dExpShipTimeString"2024-01-01 12:00:00"最晚发货时间(格式:yyyy-MM-dd HH:mm:ss
dExpShipTimeListList<String>-最晚发货时间列表(用于查询)
nSettlementBigDecimal1是否已结算(0-否;1-是)
fkWhCompanyString"SUPPLIER_123456"供应商 ID
nAftersaleMoneyString"200"售后金额(单位:分)
nServiceMoneyString"300"服务费金额(单位:分)
nProductCostString"12345"商品成本(单位:分)
nLogisticsMoneyString"500"运费成本(单位:分)
nProductReturnBigDecimal1退货数量
tradeTypeBigDecimal1交易类型(0-其他;1-拼团;2-定金预售)
promotionShopAmountString"200"店铺优惠金额(单位:分)
promotionPlatformAmountString"300"平台优惠金额(单位:分)
shopCostAmountString"200"订单优惠商家承担部分(单位:分)
platformCostAmountString"300"平台承担的优惠金额(单位:分)
promotionTalentAmountString"100"达人优惠金额(单位:分)
promotionPayAmountString"50"支付优惠金额(单位:分)
shopReceivableAmountString"12345"卖家应收金额(单位:分)
nChangeBigDecimal1是否进行数据操作(0-否;1-是)
nUserBigDecimal1是否进行业务员同步(0-否;1-是)
nMoneyRetrunString"200"退款金额(单位:分)
nUserDockingBigDecimal1是否进行跟进人同步(0-否;1-是)
dSettlementString"2024-01-01 12:00:00"结算时间(格式:yyyy-MM-dd HH:mm:ss
dSettlementListList<String>-结算时间列表(用于查询)
payAmountString"12345"实际支付金额(单位:分)
platformCouponString"500"平台优惠券金额(单位:分)
payPromotionAmountString"100"支付优惠金额(单位:分)
orderRefundString"200"订单退款金额(单位:分)
nPlatMoneyString"300"平台服务费金额(单位:分)
realCommissionString"500"实际佣金金额(单位:分)
nOfflineCommissionString"200"线下佣金金额(单位:分)
goodLearnChannelFeeString"100"商品渠道费用(单位:分)
settleAmountString"12345"结算店铺获得金额(单位:分)
nLogisticsMoneyLookString"500"运费成本查看字段
fkWhPlatformString"PLATFORM_123456"平台 ID
estimatedComissionString"500"预估佣金金额(单位:分)
doudianOpenIdString"DOUYIN_OPEN_ID_123456"抖音开放 ID
bizBigDecimal2业务来源(0-unknown;2-精选联盟;8-小店自卖)
nOrdernumBigDecimal1订单数量
nGetCommissionBigDecimal1是否获取佣金(0-否;1-是)
nProductCostNewString"12345"最新成本(单位:分)
nLogisticsMoneyNewString"500"最新物流费(单位:分)
nServiceMoneyNewString"300"最新服务费(单位:分)
cUserworkString"用户工作信息描述"用户工作信息
cUsernameString"用户名"用户名
nSourceBigDecimal0数据来源(0-公司;1-个人)
cGrouidString"JSON 格式的组 ID 列表"当前及上级组 ID
cLeaderidString"JSON 格式的组长 ID 列表"当前及上级组长 ID
fkWhGroupString"WAREHOUSE_GROUP_123456"仓库组 ID
fkSysUserLeaderString"SYS_USER_LEADER_123456"系统用户组长 ID
fkSysUserString"SYS_USER_123456"系统用户 ID
fkWhBrandString"BRAND_123456"品牌 ID
nPerformanceString"12345"产品绩效额(单位:分)
nTzSettlementBigDecimal1团长结算状态(0-未结算;1-已结算)
settledGoodsAmountBigDecimal12345实际参与结算金额(单位:分)
commissionRateBigDecimal0.1佣金率
nIstzBigDecimal1是否团长(0-否;1-是)
cTzidString"TEAM_LEADER_123456"团长 ID
cTznameString"团长姓名"团长名称
cActicityidString"ACTIVITY_123456"团长活动 ID
nOutskuBigDecimal0是否外部商品(0-否;1-是)
fkSysUserProductPushString"PROMOTER_123456"团长商品推广者 ID
cTzMemoString"团长备注信息"团长备注
authorShortIdString"SHORT_ID_123456"达人短 ID
authorBuyinIdString"BUYIN_ID_123456"达人买断 ID
nInsureString"100"运费险金额(单位:分)
nTzcommissionString"500"团长佣金金额(单位:分)
countListString"2"物流每单的发货数量
childBeginAndEndDateList<String>--
shopIdListList<String>-商品 ID 列表
c69codeString-商家编码
cProductNameString-商品名称
nCountString-商品数量
nCostString-商品成本
nDiscountString-优惠价格

在线调试

API 调试工具GET/POST
接口地址
POST
AppKey
Secret
业务参数

响应示例

json
{
  {
    "success": true,
    "message": "操作成功!",
    "code": 200,
    "result": {
      "name": null,
      "appKey": null,
      "timestamp": null,
      "version": null,
      "data": null,
      "sign": null,
      "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJtaXNzaW9uIjoiMSwyLDMiLCJleHAiOjE3NDE3ODgxMTYsImlhdCI6MTc0MTc4MDkxNn0.fbRbMMSCu4r5t-zFQvYcFdrX6AhxP5_6idqMUOfx22s",
      "refreshToken": null
    },
    "timestamp": 1741780916923
  }
}