需要 write_orders 权限点。
更多权限点使用信息,请参考:
PUT https://{handle}.myshopline.com/admin/openapi/v20260301/orders/:id.json
handle :店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com 的店铺,其 handleopen001
指定订单更新信息。如果字段传空值或不传,则不更新该字段信息。
路径参数
  • id string required
    订单 ID。
请求头
  • Content-Type string required
    字段值固定为 application/json; charset=utf-8
  • Authorization string required
    资源的访问令牌。参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入。
    例子:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
  • orderobject
    订单信息。
  • area_code string
    买家国家或地区的手机区号。
  • customer_id string
    买家 ID。
  • email string
    买家的邮箱地址。
  • id string
    订单号。
  • line_itemsobject[]
    需要更新标签的商品。
  • id string
    商品快照表的 ID,系统生成,与订单 ID 唯一确认一个商品。
  • tags string
    商品标签,多个以英文逗号分割,会覆盖现有标签。
  • note_attributesobject[]
    商家备注日志。
  • name string
    卖家标识,表明备注来源。
  • value string
    备注内容。
  • phone string
    买家的手机号码。
  • shipping_addressobject
    收货地址。
  • address1 string
    地址的第一行。通常是街道地址或邮政信箱编号等信息。
  • address2 string
    地址的第二行。通常是公寓、套房或单元等信息。
  • area string
    地址中的区县名称。
  • area_code string
    地址中的区县编码。
  • city string
    地址中的城市。
  • city_code string
    地址中的城市编码。
  • company string
    收件人所在的公司名称。 最大长度限制:64
  • country string
    地址中的国家或区域。 最大长度限制:64
  • country_code string
    地址中国家或区域的二位码,遵循 ISO 3166-1 国际标准的二位国家或区域码。
    例子: US
  • email string
    收件人的邮箱。
  • first_name string
    收件人的名。
  • last_name string
    收件人的姓。 最大长度限制:64
  • latitude string
    地址所在的纬度。
  • longitude string
    地址所在的经度。
  • phone string
    收件人的手机号。
  • province string
    地址中的省份。
  • province_code string
    地址中省份或区域的编码,该编码为系统自动生成。
  • zip string
    地址的邮编信息。
  • tags string
    商品标签,多个以逗号隔开。
状态码
更多状态码信息,参考 HTTP 状态码

响应头
  • traceId
    请求的全局唯一标识符。用于追踪请求在系统中的流转,以便于问题发生时进行定位和调试。
响应体
  • orderobject
    订单信息。
  • app_id string
    应用方 ID。
  • billing_addressobject
    用于邮寄账单发票的地址。
  • address1 string
    账单地址的第一行。通常是街道地址或邮政信箱编号等信息。
  • address2 string
    账单地址的第二行。通常是公寓、套房或单元等信息。
  • city string
    账单地址中的城市。
  • company string
    账单收件人所在的公司名称。
  • country string
    账单地址中的国家或区域。
  • country_code string
    账单地址中国家或地区的二位码,遵循 ISO 3166-1 国际标准。
    例子: US
  • first_name string
    账单收件人的名。
  • last_name string
    账单收件人的姓。
  • name string
    账单收件人的全名。
  • phone string
    账单收件人的手机号。
  • province string
    账单地址中的省份。
  • province_code string
    地址中省份或区域的编码,该编码为系统自动生成。
  • standard_province_code string
    地址中省份或区域的编码,值为 ISO 3166-2 国际编码的后二位或三位,例如 RIENG
  • zip string
    账单地址的邮编信息。
  • browser_ip string
    买家下单时的浏览器 IP 地址。
  • cancel_reason string
    卖家取消原因。
  • cancelled_at string
    订单取消时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • cart_token string
    购物车数据的唯一标识。
  • checkout_id string
    弃单 ID。
  • checkout_token string
    弃单数据的唯一标识,C 端用户发起结算,会生成弃单 。
  • client_detailsobject
    客户端详细信息。
  • browser_ip string
    买家下单时的浏览器 IP 地址。
  • session_hash string
    会员会话加密信息。
  • user_agent string
    客户端代理。
  • companyobject
    买家下单时买家所在的公司信息。
  • id string
    公司 ID。
  • location_id string
    地点 ID。
  • tax_registration_id string
    税号信息。
  • created_at string
    订单创建时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • credit_limitobject
    信用支付信息。
  • credit_limit_currency string
    信用额度币种,与店铺币种相同。三位币种码,遵循 ISO 4217 国际标准。
  • is_credit_limit boolean
    订单是否使用了信用支付。
    • true:有使用
    • false:未使用
  • outstanding_credit_limit string
    占用的信用额度总和。初始和 total_credit_limit 相等,如果后续有类似还款操作,占用的额度则相应减少。
  • total_credit_limit string
    使用的信用额度总和,即该笔订单用了多少信用额度支付。
  • currency string
    订单交易币种。该字段值为三位币种码,遵循 ISO 4217 标准。
    例子: USD
  • current_subtotal_price string
    商品金额总和,为商品单价 * 数量,以店铺币种展示。
  • current_subtotal_price_setobject
    商品金额总和,为商品单价 * 数量,分别以买家币种和店铺币种展示。
  • presentment_moneyobject
    展示给买家的订单价格信息。
  • amount string
    商品金额。数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的订单价格信息。
  • amount string
    商品金额。数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • current_total_discounts string
    折扣金额总和,数值保留到小数点后两位,为营销优惠 + 人工折扣,以店铺币种展示。
  • current_total_discounts_setobject
    折扣金额总和,数值保留到小数点后两位,为营销优惠 + 人工折扣,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的折扣金额信息。
  • amount string
    折扣金额总和,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的折扣金额信息。
  • amount string
    折扣金额总和,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • current_total_duties_setobject
    商品总关税,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的商品总关税信息。
  • amount string
    关税金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的的商品总关税信息。
  • amount string
    关税金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • current_total_price string
    订单总额,以店铺币种金额展示。
  • current_total_price_setobject
    订单总额,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的订单总额信息。
  • amount string
    订单总额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的订单总额信息。
  • amount string
    订单总额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • current_total_tax string
    税费金额总和,以店铺币种金额展示
  • current_total_tax_setobject
    税费金额总和,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • customerobject
    买家信息。
  • addressesobject
    买家地址信息。
  • address1 string
    买家地址的第一行。通常是街道地址或邮政信箱编号等信息。
  • address2 string
    买家地址的第二行。通常是公寓、套房或单元等信息。
  • city string
    买家地址中的城市。
  • country string
    买家地址中的国家或区域。
  • country_code string
    买家地址中国家或地区的二位码,遵循 ISO 3166-1 国际标准。
    例子: US
  • first_name string
    买家地址中收件人的名。
  • last_name string
    买家地址中收件人的姓。
  • name string
    买家的姓名。
  • phone string
    买家的手机号码。
  • province string
    买家地址中的省份。
  • province_code string
    地址中省份或区域的编码,该编码为系统自动生成。
  • zip string
    买家地址的邮编信息。
  • area_code string
    国家或地区的手机区号。
  • created_at string
    买家信息创建时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • currency string
    三位币种码,遵循 ISO 4217 国际标准。
  • email string
    买家的邮箱地址。
  • first_name string
    买家的名。
  • id string
    买家 ID。
  • last_name string
    买家的姓。
  • phone string
    买家的手机号。
  • updated_at string
    买家信息更新时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • customer_locale string
    买家语种编码 + 国家或地区码。语种编码遵循 ISO 639 标准。国家或地区码遵循 ISO 3166-1 标准。无法获取到语言信息时,仅返回国家或地区代码。
  • deduct_member_point_amount string
    当前订单会员积分抵扣金额,以店铺币种展示。数值保留到小数点后两位。
  • deduct_member_point_amount_setobject
    当前订单会员积分抵扣金额,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    买家侧记录的币种信息。
  • amount string
    抵扣金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的订单抵扣金额信息。
  • amount string
    抵扣金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • discount_applicationsobject[]
    折扣信息。
  • allocation_method string
    折扣的范围。有效枚举值包括:
    • across: 按照购买总数折扣
    • each: 按照单个商品分别折扣
    示例:如一次购买三个相同的商品,折扣为 10 元。如果 allocation_methodacross 代表三个一起减 10 元;如果 allocation_methodeach 代表每个减 10 元。
  • code string
    折扣码。
  • description string
    自定义折扣的描述。
  • target_selection string
    折扣范围。有效枚举值包括:
    • explicit:单个商品维度的折扣
    • entitled:整个商品行维度的折扣
    • all:若target_typeline_item,折扣适用于整单;若target_typeshipping_line,折扣适用于运费
  • target_type string
    折扣应用的对象。有效枚举值包含:
    • line_item:作用在商品上的折扣
    • shipping_line:作用在运费上的折扣
  • title string
    自动折扣的标题。
  • type string
    折扣类型。有效枚举值包含:
    • manual:手动折扣
    • automatic:自动折扣
    • discount_code:折扣码
  • value string
    折扣的具体值,以店铺币种展示。
    • value_typefix_amount 时,此字段值表示特定的折扣金额。例如,如果值为 10 ,商店币种为人民币,则表示折扣为 10 元。
    • value_typepercentage 时,此字段值的值表示特定的折扣百分比。例如,10 表示订单金额的 10% 折扣。
  • value_type string
    折扣值的类型。有效枚举值包含:
    • fix_amount:固定金额折扣。例如,如果 value10,则意味着折扣为 10 元。
    • percentage:百分比折扣。例如,如果 value10,则表示订单金额的 10% 折扣。
  • discount_codesobject[]
    优惠码信息列表。
  • amount string
    优惠金额,以店铺币种展示,数值保留到小数点后两位。
  • amount_setobject
    优惠金额,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的优惠金额信息。
  • amount string
    优惠金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的优惠金额信息。
  • amount string
    优惠金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • code string
    优惠码。
  • type string
    优惠类型。有效枚举值包含:
    • 减金额:全场满 100 元立减 10 元
    • 打折:全场满 100 元打 9 折
    • 免运费:满 3 件免运费
    • 加价品:需要支付额外金额
    • 任意N件优惠价:任意买 3 件商品,只需 99 元
    • A+B组合优惠价:同时买 A 商品和 B 商品,两件一起只需 88 元
    • 赠品:购买制定商品赠送额外商品
    • 固定售价:统一售价 29 元
    • 最低价商品免费:买 3 件商品,最便宜的那件免费
    • 打包价:多件商品组合以固定总价出售
    • 第N件打折:第 2 件打 8 折
    • 买x送y:满 2 件送 1 件
    • 自定义:自定义折扣
    废弃:返回的值为中文。 该字段自 API 版本 v20250601 起已废弃。
  • email string
    买家邮箱。
  • financial_status string
    订单付款状态。有效枚举值包含:
    • unpaid:未支付
    • authorized:已授权
    • pending:处理中
    • partially_paid:部分付款
    • paid:已付款
    • partially_refunded:部分退款
    • refunded:已退款
  • fulfillment_status string
    发货状态。有效枚举值包含:
    • fulfilled:已发货
    • partial:部分发货
    • null:未发货
  • fulfillmentsobject[]
    发货单信息列表。
  • created_at string
    发货单创建时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • id string
    发货单 ID。
  • line_itemsobject[]
    商品列表。
  • attribute string
    款式规格信息,以款式名称和规格值拼接展示。
    例子: color - red
  • fulfillable_quantity integer
    商品剩余可发货数量。
  • fulfillment_service string
    物流商名称。
  • fulfillment_status string
    商品发货状态。有效枚举值包含:
    • fulfilled:已发货
    • partial:部分发货
    • null:未发货
  • grams double
    重量,单位:g。
  • id string
    商品快照表的 ID,系统生成,与订单 ID 唯一确认一个商品。
  • name string
    SKU 标题,该字段值和 title 一致。
  • price string
    商品售价,以店铺币种展示。数值保留到小数点后两位。
  • price_setobject
    商品售价,分别以店铺币种金额和买家币种金额展示。
  • presentment_moneyobject
    展示给买家的商品售价信息。
  • amount string
    商品售价,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的商品售价信息。
  • amount string
    商品售价,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • product_id string
    款式对应商品的唯一标识 ID。
  • quantity integer
    订单中的商品数量。
  • requires_shipping boolean
    商品是否需要发货。
    • true:需要发货
    • false:不需要发货
  • sku string
    商品 SKU。
  • tax_linesobject[]
    税费明细列表。
  • price string
    税费,以店铺币种展示。数值保留到小数点后两位。
  • price_setobject
    税费,分别以买家币种和店铺币种展示。
  • presentment_moneyobject
    展示给买家的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • rate double
    税率,以小数形式表示,数值保留到小数点后四位。如果税率为2%,该值为0.0200。该信息只做展示作用。
  • title string
    税费说明标题。该信息只做展示作用。
  • taxable boolean
    该商品是否需要收税。
    • true:需要收税
    • false:不需要收税
  • title string
    商品标题。
  • variant_id string
    款式的唯一标识 ID。
  • variant_title string
    商品款式值,多个以 / 分割。
  • vendor string
    供应商。
  • name string
    发货单编码。
  • order_id string
    订单号。
  • shipment_status string
    发货单物流状态。有效枚举值包含:
    • out_for_delivery:正在配送
    • delivered:已送达
    • faliure:配送失败
    • picked_up:已取货
  • status string
    发货单状态。有效枚举值包含:
    • success:已发货
    • cancelled:已取消
  • tracking_company string
    废弃:物流公司名称。该字段自 API 版本 v20250601 起已废弃。查看 tracking_info_list 字段。
  • tracking_info_listobject[]
    物流追踪信息列表。
  • tracking_company string
    物流服务商。
  • tracking_number string
    物流单号。
  • tracking_url string
    物流公司的域名。
  • tracking_number string
    第三方物流单号。
    废弃:该字段自 API 版本 v20250601 起已废弃。查看 tracking_info_list 字段。
  • tracking_url string
    物流公司的域名。
    废弃:该字段自 API 版本 v20250601 起已废弃。查看 tracking_info_list 字段。
  • updated_at string
    订单包裹更新时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • id string
    订单号,系统自定义编号。
  • line_itemsobject[]
    订单商品快照信息列表。
  • attribute string
    款式规格信息,以款式名称和规格值拼接展示。
    例子: color - red
  • country_code_of_origin string
    原产地或发货地的国家或地区代码。遵循 ISO 3166-1 国际标准。
  • discount_allocationsobject[]
    营销折扣金额,分别以买家币种金额和店铺币种金额展示。
  • amount string
    营销折扣金额,数值保留到小数点后两位。
  • amount_setobject
    折扣明细金额多币种。
  • presentment_moneyobject
    展示给买家的营销折扣金额信息。
  • amount string
    营销折扣金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的营销折扣金额信息。
  • amount string
    营销折扣金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • discount_application_index integer
    标明商品行应用的折扣在 orders.discount_applications 中的位置。
  • dutiesobject[]
    关税信息。
  • country_code_of_origin string
    原产地或发货地的国家或地区代码。遵循 ISO 3166-1 国际标准。
    例子: US
  • harmonized_system_code string
    海关编码,用于在国际贸易中对产品进行分类。
  • id string
    关税编号。
  • priceobject
    关税金额,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的关税金额信息。
  • amount string
    关税金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的关税金额信息。
  • amount string
    关税金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • tax_linesobject[]
    税费信息列表。
  • price_setobject
    税费金额,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的税费信息。
  • amount string
    税费金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的税费信息。
  • amount string
    税费金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • rate double
    税率,以小数形式表示,数值保留到小数点后四位。如果税率为2%,该值为0.0200。该信息只做展示作用。
  • rate_percentage double
    税率,以百分比数值形式表示,数值保留到小数点后两位。如果税率为2%,该值为2.00。该信息只做展示作用。
  • title string
    税费标题,该信息只做展示作用。
  • fulfillable_quantity integer
    剩余可发货数量。
  • fulfillment_service string
    物流商名称。
  • fulfillment_status string
    商品发货状态。有效枚举值包含:
    • fulfilled:已发货
    • partial:部分发货
    • null:未发货
  • grams double
    重量,单位:g。
  • harmonized_system_code string
    海关编码,用于在国际贸易中对产品进行分类。
  • id string
    商品快照表的 ID,系统生成,与订单 ID 唯一确认一个商品。
  • location_id string
    本地配送地点编号或普通配送地点编号。
  • name string
    SKU 标题,该字段值和 title 一致。
  • price string
    商品售价,以店铺币种金额展示,数值保留到小数点后两位。
  • price_setobject
    商品售价,分别以店铺币种金额和买家币种金额展示。
  • presentment_moneyobject
    展示给买家的商品售价信息。
  • amount string
    商品售价,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
  • shop_moneyobject
    商家侧记录的商品售价信息。
  • amount string
    商品售价,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • product_id string
    款式对应商品的唯一标识 ID。
  • propertiesobject[]
    商品定制信息列表。
  • additional string
    定制商品附加字段,比如当 name文字additional 可以附加文字的字号、字体、颜色等。
  • name string
    自定义属性名称。
  • type string
    定制信息类型。有效枚举值包含:
    • text:字符类型
    • picture:图片类型
    • link:链接类型
  • urls array
    URL 列表。如果 typepicture,可通过 urls 获取缩略图,如果 typelink,那么超链接为 urls 的第一个。
  • value string
    自定义属性值。
  • quantity integer
    订单中的商品数量。
  • requires_shipping boolean
    商品是否需要发货。
    • true:需要发货
    • false:不需要发货
  • sku string
    商品 SKU。
  • tags string
    商品标签,多个以逗号隔开。
  • tax_linesobject[]
    税费明细列表。
  • price string
    税费,以店铺币种展示。数值保留到小数点后两位。
  • price_setobject
    税费,分别以买家币种和店铺币种展示。
  • presentment_moneyobject
    展示给买家的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • rate double
    税率,以小数形式表示,数值保留到小数点后四位。如果税率为2%,该值为0.0200。该信息只做展示作用。
  • title string
    税费说明标题。该信息只做展示作用。
  • type string
    税费类型。有效枚举值包含:
    • product_tax: 商品税
    • shipping_tax: 运费税
  • taxable boolean
    该商品是否需要收税。
    • true:需要收税
    • false:不需要收税
  • title string
    商品标题。
  • variant_id string
    款式的唯一标识 ID。
  • variant_title string
    商品属性值,多个以 / 分割。
  • vendor string
    供应商。
  • locationsobject[]
    到店取货地点地址信息列表。
  • location_id string
    取货地点唯一编号。
  • name string
    取货地址名称。
  • type string
    地点类型。有效枚举值包含:
    • posLocation:POS 渠道创建该订单的门店地点(建议使用pos_location_id,后续将废弃)。
    • pickupLocation:当订单的配送方式为自提时,自提的门店地点。
    • productLocation:订单中商品的库存地点(建议使用商品行中的 location_id 信息,后续将废弃)。
  • name string
    商家自定义的订单号,从 1001 开始,可以设置前缀。
  • note string
    商家备注内容。
  • note_attributesobject[]
    商家备注日志。
  • create_time string
    备注创建时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • name string
    卖家标识,表明备注来源。
  • value string
    备注内容。
  • order_source string
    订单来源渠道,目前只有 POS 渠道该字段才有值,其他渠道该值为空。
  • order_status_url string
    订单状态页 URL。
  • payment_detailsobject[]
    支付单信息列表。
  • create_time string
    支付单创建时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • order_seq string
    订单号。
  • pay_amount double
    支付金额,以店铺币种金额展示。数值保留到小数点后两位。
  • pay_channel_deal_id string
    外部渠道支付流水号。
  • pay_seq string
    支付单号。
  • pay_status string
    支付单状态。有效枚举值包含:
    • unpaid:未支付
    • pending:支付中
    • risking:风控中
    • paid:已支付
    • paid_overtime:支付超时
    • paid_failed:支付失败
  • processed_at string
    支付单创建时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • status_code string
    支付网关标准状态码。
  • status_msg string
    支付网关状态码信息。
  • payment_gateway_names array
    付款方式列表。有效枚举值包含:
    • SLpayments
    • Paypal(PayPal支付)
    • Oceanpay(钱海支付)
    • TwoCheckout
    • AsiaBill
    • Stripe
    • Pacypay
    • WorldPay
    • COD(货到付款)
    • CUSTOM(自定义)
    • adjustPay(资金调整)
    • Xendit(xendit 信用卡)
    • XenditOther
  • phone string
    买家的手机号。
  • po_number string
    B2B 场景在订单上记录的采购订单号。
  • pos_location_id string
    POS 交易地点 ID。
  • presentment_currency string
    买家侧币种,同卖家侧币种。三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • processed_at string
    成单时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • processed_user_id string
    订单创建者的 ID。
  • refundsobject[]
    退款列表。
  • created_at string
    退款单创建时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • id string
    退款 ID。
  • note string
    卖家退款备注。
  • order_id string
    订单号。
  • processed_at string
    退款发起时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • refund_line_itemsobject[]
    商品行退款详情列表。
  • id string
    退款单号。
  • line_itemobject
    发货单商品行信息。
  • attribute string
    款式规格信息,以规格名称和规格值拼接展示。
    例子: color - red
  • fulfillable_quantity integer
    剩余可发货数量。
  • fulfillment_service string
    物流商名称。
  • fulfillment_status string
    商品发货状态。有效枚举值包含:
    • fulfilled:已发货
    • partial:部分发货
    • null:未发货
  • grams double
    重量,单位:g。
  • id string
    商品快照表的 ID,系统生成,与订单 ID 唯一确认一个商品。
  • name string
    SKU 标题,该字段值和 title 一致。
  • price string
    商品售价,以店铺币种展示。数值保留到小数点后两位。
  • price_setobject
    商品售价,分别以店铺币种金额和买家币种金额展示。
  • presentment_moneyobject
    展示给买家的商品售价信息。
  • amount string
    商品售价,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的商品售价信息。
  • amount string
    商品售价,数值保留到小数点后两位。
  • currency_code string
    商品金额币种。该字段值为三位币种码,遵循 [ISO 4217]三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • product_id string
    款式对应商品的唯一标识 ID。
  • quantity integer
    订单中的商品数量。
  • requires_shipping boolean
    商品是否需要发货。
    • true:需要发货
    • false:不需要发货
  • sku string
    商品 SKU。
  • tax_linesobject[]
    税费明细列表。
  • price string
    税费,以店铺币种展示。数值保留到小数点后两位。
  • price_setobject
    税费,分别以买家币种和店铺币种展示。
  • presentment_moneyobject
    展示给买家的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • rate double
    税率,以小数形式表示,数值保留到小数点后四位。如果税率为2%,该值为0.0200。该信息只做展示作用。
  • title string
    税费说明标题。该信息只做展示作用。
  • taxable boolean
    该商品是否需要收税。
    • true:需要收税
    • false:不需要收税
  • title string
    商品标题。
  • variant_id string
    款式的唯一标识 ID。
  • variant_title string
    商品属性值,多个以 / 分割。
  • vendor string
    供应商。
  • line_item_id string
    商品快照表的 ID,系统生成,与订单 ID 唯一确认一个商品。
  • quantity integer
    退款商品数量。
  • restock_type string
    库存返还类型。有效枚举值包含:
    • no_restock:未返还
    • cancel:取消
    • return:返还
  • subtotal double
    退款金额合计,以店铺币种金额展示。数值保留到小数点后两位。
  • subtotal_setobject
    退款总额,按单价和数量的乘积计算,分别以买家币种和店铺币种展示。
  • presentment_moneyobject
    展示给买家的退款金额信息。
  • amount string
    退款金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循ISO 4217 标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的退款金额信息。
  • amount string
    退款金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循ISO 4217 标准。
    例子: USD
  • total_tax double
    退款商品的税额,以店铺币种展示。数值保留到小数点后两位。
  • total_tax_setobject
    总税额,分别以买家币种和店铺币种展示。
  • presentment_moneyobject
    展示给买家的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • transactionsobject[]
    退款交易信息列表。
  • amount string
    退款金额,数值保留到小数点后两位。
  • created_at string
    退款交易单创建时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • currency string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • id string
    退款 ID。
  • kind string
    交易类型, 返回值为 refund
  • order_id string
    订单号。
  • processed_at string
    退款单更新时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • status string
    处理状态。有效枚举值包含:
    • pending:退款中
    • failure:退款失败
    • success:退款成功
    • error:退款出错
  • user_id string
    买家 ID。
  • user_id string
    买家 ID。
  • shipping_addressobject
    收货地址。
  • address1 string
    地址的第一行。通常是街道地址或邮政信箱编号等信息。
  • address2 string
    地址的第二行。通常是公寓、套房或单元等信息。
  • city string
    地址中的城市。
  • company string
    收件人所在的公司名称。
  • country string
    地址中的国家或区域。
  • country_code string
    地址中国家或区域的二位码,遵循 ISO 3166-1 国际标准的二位国家或区域码。
  • first_name string
    收件人的名。
  • last_name string
    收件人的姓。
  • latitude string
    地址所在的纬度。
  • longitude string
    地址所在的经度。
  • name string
    买家的全名。
  • phone string
    收件人的手机号码。
  • province string
    收货地址中州或省的名称。
  • province_code string
    地址中省份或区域的编码,该编码为系统自动生成。
  • standard_province_code string
    地址中省份或区域的编码,值为 ISO 3166-2 国际编码的后二位或三位,例如 RIENG
  • zip string
    地址的邮编信息。
  • shipping_linesobject[]
    运费列表。
  • code string
    只有本地配送运费方案有值,返回 Local delivery
  • discount_allocationsobject[]
    营销折扣金额,分别以买家币种金额和店铺币种金额展示。
  • amount string
    折扣金额,以店铺币种展示。数值保留到小数点后两位。
  • amount_setobject
    折扣金额,分别以买家币种和店铺币种展示。
  • presentment_moneyobject
    展示给买家的折扣金额信息。
  • amount string
    营销折扣金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的折扣金额信息。
  • amount string
    折扣金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循ISO 4217 标准。
    例子: USD
  • discount_application_index integer
    标明商品行应用的折扣在 orders.discount_applications 中的位置。
  • discounted_price string
    折扣金额,以店铺币种展示。数值保留到小数点后两位。
  • discounted_price_setobject
    折扣金额,分别以买家币种和店铺币种展示。
  • presentment_moneyobject
    展示给买家的折扣金额信息。
  • amount string
    折扣金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循ISO 4217 标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的折扣金额信息。
  • amount string
    折扣金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循ISO 4217 标准。
    例子: USD
  • phone string
    买家的手机号。
  • price string
    运费,以店铺币种展示。数值保留到小数点后两位。
  • price_setobject
    运费金额,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的运费信息。
  • amount string
    运费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循ISO 4217 标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的运费信息。
  • amount string
    运费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循ISO 4217 标准。
    例子: USD
  • requested_fulfillment_service_id string
    运输服务代号。
  • shipping_price string
    原运费金额值,非折扣后金额,以店铺币种展示。数值保留到小数点后两位。
  • shipping_price_setobject
    原运费金额值,非折扣后金额,分别以买家币种和店铺币种展示。
  • presentment_moneyobject
    展示给买家的运费信息。
  • amount string
    运费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的运费信息。
  • amount string
    运费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 标准。
    例子: USD
  • source string
    物流承运商类型。有效枚举值包含:
    • Shipper:Shipper 物流
    • Oneship:Oneship 物流
    • Api:通过开放能力添加的承运商的物流
    • null:系统物流或自定义物流
  • tax_linesobject[]
    税费信息列表。
  • price string
    税费,以店铺币种展示。数值保留到小数点后两位。
  • price_setobject
    税费,分别以买家币种和店铺币种展示。
  • presentment_moneyobject
    展示给买家的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • rate double
    税率,以小数形式表示,数值保留到小数点后四位。如果税率为2%,该值为0.0200。该信息只做展示作用。
  • title string
    税费名称。
  • title string
    物流公司名称。
  • store_id string
    店铺 ID。
  • subtotal_price string
    商品折后价总和,数值保留到小数点后两位,为商品总价 - 营销优惠 - 自定义折扣,以店铺币种展示。
  • subtotal_price_setobject
    商品折后价总和,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的折后价格信息。
  • amount string
    折后价格,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的折后价格信息。
  • amount string
    折后价格,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 标准。
    例子: USD
  • tags string
    订单标签。
  • tax_linesobject[]
    税费信息列表。
  • price string
    税费,以店铺币种展示。数值保留到小数点后两位。
  • price_setobject
    税费,分别以买家币种和店铺币种展示。
  • presentment_moneyobject
    展示给买家的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • rate double
    税率,以小数形式表示,数值保留到小数点后四位。如果税率为2%,该值为0.0200。该信息只做展示作用。
  • title string
    税费说明标题。该信息只做展示作用。
  • tax_number string
    税号。
  • tax_type string
    订单的税费类型。有效枚举值包含:
    • product_tax:商品税
    • shipping_tax:运费税
  • taxes_included boolean
    该订单是否包含税费金额。
    • true:包含税费金额
    • false:不包含税费金额
  • total_discounts string
    订单折扣总和,为营销折扣 + 自定义折扣,数值保留到小数点后两位,以店铺币种金额展示。
    废弃:该字段自 API 版本 v20210901 起已废弃。
    例子: 3.25
  • total_discounts_setobject
    订单折扣总和,为营销折扣 + 自定义折扣,分别以店铺币种金额和买家币种金额展示。
    废弃:该字段自 API 版本 v20210901 起已废弃。
  • presentment_moneyobject
    展示给买家的折扣信息。
  • amount string
    折扣金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的折扣信息。
  • amount string
    折扣金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 标准。
    例子: USD
  • total_line_items_price string
    商品原价总和,数值保留到小数点后两位,以店铺币种金额展示。
  • total_line_items_price_setobject
    商品原价总和,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的商品原价信息。
  • amount string
    商品原价,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的商品原价信息。
  • amount string
    商品原价,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • total_outstanding string
    未付款金额总额,数值保留到小数点后两位,以店铺币种金额展示。
  • total_outstanding_setobject
    未付款金额,分别以店铺币种金额和买家币种金额展示。
  • presentment_moneyobject
    展示给买家的未付款金额信息。
  • amount string
    未付款金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循ISO 4217 标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的未付款金额信息
  • amount string
    未付款金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循ISO 4217 标准。
    例子: USD
  • total_shipping_price_setobject
    订单运费总和,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的运费信息。
  • amount string
    运费金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的运费信息。
  • amount string
    运费金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • total_tax string
    税费总额,数值保留到小数点后两位,以店铺币种金额展示。
  • total_tax_setobject
    税费金额总和,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    展示给买家的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的税费信息。
  • amount string
    税费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • total_tip_received string
    小费,数值保留到小数点后两位,以店铺币种金额展示。
  • total_tip_received_setobject
    小费,分别以店铺币种金额和买家币种金额展示。
  • presentment_moneyobject
    展示给买家的小费信息。
  • amount string
    小费金额,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • shop_moneyobject
    商家侧记录的小费信息。
  • amount string
    小费,数值保留到小数点后两位。
  • currency_code string
    三位币种码,遵循 ISO 4217 国际标准。
    例子: USD
  • total_weight double
    商品总重量,单位:g。
  • updated_at string
    订单更新时间。格式:ISO 8601
    例子: 2024-08-31T02:20:26+08:00
  • user_id string
    买家 ID。
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20260301

ParamOptions

path required
header required

Body

required
{
  "order": {
    "area_code": null,
    "customer_id": null,
    "email": null,
    "id": null,
    "line_items": [
      {
        "id": null,
        "tags": null
      }
    ],
    "note_attributes": [
      {
        "name": null,
        "value": null
      }
    ],
    "phone": null,
    "shipping_address": {
      "address1": null,
      "address2": null,
      "area": null,
      "area_code": null,
      "city": null,
      "city_code": null,
      "company": null,
      "country": null,
      "country_code": "US",
      "email": null,
      "first_name": null,
      "last_name": null,
      "latitude": null,
      "longitude": null,
      "phone": null,
      "province": null,
      "province_code": null,
      "zip": null
    },
    "tags": null
  }
}

Language

curl --request PUT \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20260301/orders/id.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json'
Examples
更新订单
Request
{
"order": {
"area_code": "86",
"customer_id": "*********4101",
"email": "www.example.com",
"id": "1001",
"line_items": [
{
"id": "*******639",
"tags": "tag1,tag2"
}
],
"note_attributes": [
{
"name": "Note source",
"value": "Notes"
}
],
"phone": "139****1234",
"shipping_address": {
"address1": "Address 1",
"address2": "Address 2",
"area": "Area",
"area_code": "210002",
"city": "New York",
"city_code": "210003",
"company": "google",
"country": "united states",
"country_code": "US",
"email": "www.example.com",
"first_name": "Lebron",
"last_name": "James",
"latitude": "33.111232",
"longitude": "11.22323",
"phone": "139****1234",
"province": "California",
"province_code": "212221",
"zip": "123551"
},
"tags": "xternal, Inbound, Outbound"
}
}
Response
{
"order": {
"adjust_price": "8.00",
"adjust_price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"app_id": "SL201",
"billing_address": {
"address1": "Address1",
"address2": "Address2",
"city": "New York",
"city_code": "NY",
"company": "Example",
"country": "United States",
"country_code": "US",
"first_name": "T**",
"last_name": "S****",
"name": "T** S****",
"phone": "139****1234",
"province": "California",
"province_code": "212221",
"standard_province_code": "US",
"zip": "123551"
},
"browser_ip": "157.119.232.35",
"buyer_note": "Notes",
"cancel_reason": "ABC",
"cancelled_at": "2024-08-31T02:20:26+08:00",
"cart_token": "*****************2969577",
"checkout_id": "***************972864",
"checkout_token": "********************2969577",
"client_details": {
"browser_ip": "157.119.232.35",
"session_hash": "***********22sf4",
"user_agent": "ABC"
},
"company": {
"id": "***************247856",
"location_id": "******************47856",
"tax_registration_id": "*****13"
},
"created_at": "2024-08-31T02:20:26+08:00",
"credit_limit": {
"credit_limit_currency": "USD",
"is_credit_limit": "true",
"outstanding_credit_limit": "1.00",
"total_credit_limit": "1.00"
},
"currency": "USD",
"current_extra_total_discounts": "799.00",
"current_extra_total_discounts_set": {
"presentment_money": {
"amount": "799.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "799.00",
"currency_code": "USD"
}
},
"current_on_line_total_discounts": "0.00",
"current_on_line_total_discounts_set": {
"presentment_money": {
"amount": "1.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "1.00",
"currency_code": "USD"
}
},
"current_subtotal_price": "1598.00",
"current_subtotal_price_set": {
"presentment_money": {
"amount": "1598.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "1598.00",
"currency_code": "USD"
}
},
"current_total_discounts": "799.00",
"current_total_discounts_set": {
"presentment_money": {
"amount": "799.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "799.00",
"currency_code": "USD"
}
},
"current_total_duties_set": {
"presentment_money": {
"amount": "8.88",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.88",
"currency_code": "USD"
}
},
"current_total_price": "799.00",
"current_total_price_set": {
"presentment_money": {
"amount": "799.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "799.00",
"currency_code": "USD"
}
},
"current_total_tax": "0.00",
"current_total_tax_set": {
"presentment_money": {
"amount": "0.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "0.00",
"currency_code": "USD"
}
},
"customer": {
"addresses": {
"address1": "Address1",
"address2": "Address2",
"city": "New York",
"country": "United States",
"country_code": "US",
"first_name": "T**",
"last_name": "S****",
"name": "T** S****",
"phone": "139****1234",
"province": "California",
"province_code": "212221",
"zip": "123551"
},
"area_code": "886",
"created_at": "2024-08-31T02:20:26+08:00",
"currency": "USD",
"email": null,
"first_name": "L***",
"id": "*********83235",
"last_name": "S****",
"phone": "139****1234",
"subscription": "ABC",
"updated_at": "2024-08-31T02:20:26+08:00"
},
"customer_locale": "US",
"deduct_member_point_amount": "8.00",
"deduct_member_point_amount_set": {
"presentment_money": {
"amount": "8.88",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.88",
"currency_code": "USD"
}
},
"discount_applications": {
"allocation_method": "across",
"code": "**********RBP5",
"description": "ABC",
"target_selection": "all",
"target_type": "line_item",
"title": "ABC",
"type": "manual",
"value": "20",
"value_type": "ABC"
},
"discount_codes": [
{
"amount": "799.00",
"amount_set": {
"presentment_money": {
"amount": "799.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "799.00",
"currency_code": "USD"
}
},
"code": "ABC",
"type": "custom discount"
}
],
"email": "*********@example.com",
"financial_status": "unpaid",
"fulfillment_status": "fulfilled",
"fulfillments": {
"created_at": "2022-11-04T10:18:46+00:00",
"id": "****************214336",
"line_items": {
"attribute": "big",
"bundle_parent_variant_id": "*****************34011",
"fulfillable_quantity": "1",
"fulfillment_service": "Sf international",
"fulfillment_status": "fulfilled",
"grams": "100",
"id": "***2",
"image_url": "www.example.com",
"is_bundle": "true",
"is_bundle_component": "true",
"location_id": "*************9997",
"name": "ABC",
"price": "8.00",
"price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"product_id": "*******************934011",
"quantity": "3",
"requires_shipping": "true",
"sku": "*****************644011",
"tax_lines": {
"price": "8.00",
"price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"rate": "1",
"title": "Tax"
},
"taxable": "true",
"title": "ABC",
"variant_id": "******************44011",
"variant_title": "big",
"vendor": "Supplier"
},
"name": "ABC",
"order_id": "*******************53153",
"shipment_status": "fulfilled",
"status": "success",
"tracking_company": "Sf international",
"tracking_info_list": {
"tracking_company": "ABC",
"tracking_number": "123",
"tracking_url": "www.example.com"
},
"tracking_number": "*******001",
"tracking_url": "www.example.com",
"updated_at": "2022-11-04T10:18:46+00:00"
},
"hidden_order": "true",
"id": "******************7930792",
"line_items": {
"attribute": "red",
"discount_allocations": {
"amount": "8.00",
"amount_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"discount_application_index": "1"
},
"duties": {
"country_code_of_origin": "US",
"harmonized_system_code": "ABC",
"id": "**2",
"price": {
"presentment_money": {
"amount": "8.88",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.88",
"currency_code": "USD"
}
},
"tax_lines": {
"price_set": {
"presentment_money": {
"amount": "8.88",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.88",
"currency_code": "USD"
}
},
"rate": null,
"rate_percentage": null,
"title": "ABC"
}
},
"fulfillable_quantity": "1",
"fulfillment_service": "Sf international",
"fulfillment_status": "yun0001",
"gift_card": "false",
"grams": "100",
"id": "**3",
"image_url": "www.example.com",
"location_id": "***************8524",
"name": "ABC",
"price": "8.00",
"price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"product_id": "***************934011",
"properties": {
"additional": "3",
"name": "ABC",
"type": "text",
"urls": [
"https://www.url.com"
],
"value": "ABC"
},
"quantity": "1",
"requires_shipping": "true",
"sku": "***************7644011",
"tags": "watch",
"tax_lines": {
"price": "8.00",
"price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"rate": "1",
"title": "Tax",
"type": "shipping_tax"
},
"taxable": "true",
"title": "ABC",
"variant_id": "*************44011",
"variant_title": "big",
"vendor": "Supplier"
},
"locations": {
"location_id": "*************8524",
"name": "ABC",
"type": "posLocation"
},
"name": "SHO25246",
"note": "ABC",
"note_attributes": {
"create_time": "2022-11-04T10:18:46+00:00",
"name": "ABC",
"value": "Content"
},
"order_at": "2021-08-16T08:27:57+00:00",
"order_source": "pos",
"order_status_url": "www.example.com",
"payment_details": {
"create_time": "2021-08-16T08:27:57+00:00",
"pay_amount": "8.00",
"pay_channel_deal_id": "*****************f48hX",
"pay_seq": "****************676128",
"pay_status": "unpaid",
"processed_at": "2023-04-12T22:59:52+08:00",
"status_code": "**********NG",
"status_msg": "PENDING_REVIEW"
},
"payment_gateway_names": [
"codPay"
],
"payment_terms": {
"created_at": "2025-08-13T16:31:59.715+0800",
"due_in_days": "2",
"id": "***************31747",
"overdue": "true",
"payment_schedules": {
"completed_at": "2025-08-13T16:31:59.715+0800",
"due_at": "2025-08-13T16:31:59.715+0800",
"issued_at": "2025-08-13T16:31:59.715+0800"
},
"payment_terms_name": "ABC",
"payment_terms_type": "RECEIPT",
"updated_at": "2025-08-13T16:31:59.715+0800"
},
"phone": "139****1234",
"po_number": "139****1234",
"pos_location_id": "****************08779",
"presentment_currency": "USD",
"processed_at": "2023-04-12T22:59:52+08:00",
"processed_user_id": "*********495",
"refunds": {
"created_at": "2021-08-16T08:27:57+00:00",
"id": "*************77634",
"note": "ABC",
"order_id": "*****************253153",
"processed_at": "2021-08-16T08:27:57+00:00",
"refund_line_items": {
"id": "*************877634",
"line_item_id": "**1",
"quantity": "1",
"restock_type": "no_restock",
"subtotal": "1.00",
"subtotal_set": {
"presentment_money": {
"amount": "1.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "1.00",
"currency_code": "USD"
}
},
"total_tax_set": {
"presentment_money": {
"amount": "1.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "1.00",
"currency_code": "USD"
}
}
},
"user_id": "**********495"
},
"shipping_address": {
"address1": "Address 1",
"address2": "Address 2",
"city": "New York",
"company": "ABC",
"country": "USA",
"country_code": "US",
"delivery_store_code": "***1",
"delivery_store_name": "ABC",
"district": "ABC",
"district_code": "*****300",
"first_name": "T**",
"last_name": "W****",
"latitude": "23.35773",
"longitude": "116.4151",
"name": "T** W****",
"phone": "139****1234",
"province": "California",
"province_code": "4200006",
"standard_province_code": "US",
"zip": "****00"
},
"shipping_lines": {
"code": "SF***********776",
"discount_allocations": {
"amount": "8.00",
"amount_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"discount_application_index": "1"
},
"discounted_price": "8.00",
"discounted_price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"phone": "139****1234",
"price": "8.00",
"price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"shipping_price": "8.00",
"source": "ABC",
"tax_lines": {
"price": "8.00",
"price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"rate": "1",
"title": "Tax"
},
"title": "ABC"
},
"status": "open",
"store_id": "1728640662479",
"subtotal_price": "8.00",
"subtotal_price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"tags": "watch",
"tax_lines": {
"price": "8.00",
"price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"rate": "1",
"title": "Tax"
},
"tax_number": "****11",
"tax_type": "Type",
"taxes_included": "true",
"total_discounts": "8.00",
"total_discounts_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"total_line_items_price": "8.00",
"total_line_items_price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"total_outstanding": "8.00",
"total_outstanding_set": {
"presentment_money": {
"amount": "8.88",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.88",
"currency_code": "USD"
}
},
"total_shipping_price_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"total_tax": "8.00",
"total_tax_set": {
"presentment_money": {
"amount": "8.00",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.00",
"currency_code": "USD"
}
},
"total_tip_received": "8.00",
"total_tip_received_set": {
"presentment_money": {
"amount": "8.88",
"currency_code": "USD"
},
"shop_money": {
"amount": "8.88",
"currency_code": "USD"
}
},
"total_weight": "USD",
"updated_at": "2021-08-16T08:27:57+00:00",
"user_id": "*********7495"
}
}
这篇文章对你有帮助吗?