给 AI

对象

ShippingQuote 对象

按供应商的运费模板,把商品寄到某地的运费。 所有平台字段一致。平台不展示的字段为 null,meta.unavailable 会列出它和原因。

字段类型起始 view说明
product_idstringcompact商品 ID。
destinationstringcompact寄往的地区,以显示为准。
unitstring | nullcompact运费按什么计:kg 或件。
first_unitsnumber | nullcompact首重(首件)有多少,单位见 unit。
first_feenumber | nullcompact首重(首件)运费,单位见 currency。
next_unitsnumber | nullcompact续重(续件)每档多少,单位见 unit。
next_feenumber | nullcompact每档续重(续件)的运费。
quantityinteger | nullcompact按多少件算的。
weight_kgnumber | nullcompact按多重算的(kg),给了的话。
total_feenumber | nullcompact这个件数或重量的总运费;商城不算时为 null(按上面的首续重自己算)。
currencystringcompactISO 4217 货币代码。
extobjectfull平台特有字段,只在 view=full 时返回。 · 仅 view=full

返回 ShippingQuote 的接口

接上一次,以后直接问 AI。

新 key 自带 $0.10 试用额度。贴一句话,就能接进你的智能体。

免费开始
一句话接进你的 AI

把这句话发给你的智能体

读一下 https://okdata.online/zh/agents.md,帮我把 okdata 配好;我的 key 在环境变量 OKDATA_API_KEY 里。

Claude Code、Cursor、Codex 等能打开网址的智能体,读完会自己配好。

MCP 地址https://api.okdata.online/mcp