需要 write_draft_orders 权限点。
更多权限点使用信息,请参考:
PUT https://{handle}.myshopline.com/admin/openapi/v20260301/orders/draft_orders.json
handle :店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com 的店铺,其 handleopen001
对一个草稿单的内容进行编辑,可以编辑商品、收货地址等信息。
请求头
  • Content-Type string required
    字段值固定为 application/json; charset=utf-8
  • Authorization string required
    资源的访问令牌。参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入。
    例子:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
  • draft_orderobject
    草稿单对象。
  • billing_addressobject
    支付账单地址。
  • address1 string
    支付账单地址的第一行。通常是街道地址或邮政信箱编号等信息。 最大长度限制:255
  • address2 string
    支付账单地址的第二行。通常是公寓、套房或单元等信息。 最大长度限制:255
  • area string
    支付账单地址中的行政区名称。
  • area_code string
    支付账单地址中的行政区编码,自定义编号。
  • city string
    支付账单地址的城市。
  • city_code string
    支付账单地址中城市的编码。
  • company string
    支付账单地址的国家/地区。
  • country string
    支付账单地址的国家/地区。
  • country_code string
    支付账单地址的国家/地区编码。 遵循 ISO 3166-1 (alpha 2) 国际标准的二位国家或区域码,用于识别市场所在的国家或地区。
  • email string
    买家邮箱。
  • first_name string
    买家的名。
  • last_name string
    买家的姓。
  • phone string
    买家的手机号。
  • province string
    支付账单地址中州/省的名称。
  • province_code string
    支付账单地址中省份的编码,该编码可以是自定义编号或者为二位的 ISO 3166-2 国际编码。
  • same_as_receiver boolean
    该地址是否与收货信息相同。 •true: 相同 •false: 不同
  • zip string
    支付账单地址的邮编信息。
  • calc_sku_stock_mode string required
    计算库存模式。 •not_limit : 无限库存 •real : 真实库存 •reserve_real : 预留库存 + 真实库存
    例子: string
  • customerobject
    买家信息。
  • area_code string
    买家联系地址的区号。
  • email string
    买家邮箱。
  • first_name string
    买家的名。
  • id string required
    买家的唯一标识符 ID。
    例子: string
  • last_name string
    买家的姓。
  • phone string
    买家的手机号。
  • discount_amount_ext string
    订单优惠金额,精度 2 的 double 类型的字符串。 例如,12.41。
  • discount_amount_ext_name string
    订单优惠名称。 最大长度限制:64
  • discountable boolean
    是否叠加营销优惠。 •true: 叠加 •false: 不叠加
  • id string required
    草稿单号。
    例子: string
  • language_infoobject
    语言信息。
  • customer_language string
    买家侧下单语种,优先使用此语种。
  • merchant_language string
    卖家侧下单语种,优先使用买家侧语种。
  • line_itemsobject[] required
    商品信息列表。
  • applied_discountobject
    商品折扣信息
  • description string
    折扣描述。
  • title string
    折扣名称。
  • value long
    折扣值数额。当折扣类型为 DISCOUNT_AMOUNT_PERCENTAGE 时,此值最大默认100,最小为0。
  • value_type string
    折扣类型。有效枚举值包含: · fixed_amount:固定金额 · percentage:百分比
  • discountable boolean
    是否使用在线商店营销活动。 •true: 使用 •false: 不使用
  • gift_card boolean
    是否为礼品卡商品。 •true: 是 •false: 不是
  • id string
    订单商品行 ID,商品行的唯一标识符。
  • price string
    商品售价,精度2的double类型的字符串,eg:"12.41"。
  • product_id string required
    商品 ID。
    例子: string
  • product_source string required
    商品来源。 •main_site: 主站商品 •customize: 自定义商品
    例子: string
  • propertiesobject[]
    商品定制信息。
  • name string
    自定义属性名称。
  • show boolean
    是否要在前端展示。 •true: 展示 •false: 不展示
  • type string
    商品属性类型。有效枚举值: ● text:文本类型 ● picture:图片类型 ● link:链接类型
  • urls array
    URL 资源列表。
  • value string
    自定义属性值。
  • quantity integer required
    商品数量。 取值范围:0-120
  • requires_shipping boolean
    是否需要发货。 •true: 需要 •false: 不需要
  • sku string
    商家定义的商品货号,最大长度限制:255。
  • title string
    商品名称。
  • variant_id string required
    商品 SKU 序列号。
    例子: string
  • market_region_country_code string
    市场国家。
  • note string
    草稿单备注。
  • note_attributesobject[]
    附加信息。
  • name string
    附加信息的名称。
  • value string
    附加信息的值。
  • outer_id string
    操作的唯一标识,同一个 id 只能执行一次操作。
  • payment_termsobject
    付款信息。
  • pay_channel_id string required
    支付方式的唯一标识符 ID。
    例子: string
  • pay_status string
    付款状态。 •unpaid: 支付 •paid: 未支付
  • payment_channel_name string
    支付渠道名称。
  • shipping_addressobject
    买家的收货地址信息。
  • address1 string
    收货地址的第一行。通常是街道地址或邮政信箱编号等信息。
  • address2 string
    收货地址的第二行。通常是公寓、套房或单元等信息。
  • city string
    收货地址址中城市名称。
  • city_code string
    收货地址中城市的编码。
  • company string
    收货地址中收货人的公司名称
  • country string
    收获地址中的国家或地区。
  • country_code string
    收获地址的国家/地区编码。 遵循 ISO 3166-1 (alpha 2) 国际标准的二位国家或区域码,用于识别市场所在的国家或地区。
  • district string
    收货地址中的行政区名称。
  • district_code string
    收货地址中区的编码,自定义编号。
  • first_name string
    买家的名。
  • last_name string
    买家的姓。
  • phone string
    买家的联系电话。
  • province string
    收货地址中州/省的名称。
  • province_code string
    收货地址中省份/州的编码,该编码可以是自定义编号或者为二位的 ISO 3166-2 国际编码。
  • zip string
    收货地址邮政编号。
  • shipping_linesobject
    物流信息。
  • delivery_id string
    送货方式ID、运费模板ID。
  • price string
    物流运费,精度2的double类型的字符串。
  • shipping_type string required
    物流类型。有效枚举值包含: · system:系统物流 · custom:自定义物流 当物流为系统物流时只需要传 delivery_id,当物流类型伟自定义物流时传 title 和 price 字段
    例子: string
  • title string
    物流名称。
  • stock_reserved boolean required
    订单维度是否有库存预留标识。 •true: 是 •false: 否
  • stock_reserved_time long
    订单维度库存预预留时间。
  • tags array
    草稿单标签,多个标签间用逗号分隔。
  • tax_exempt string
    该商品是否需要收税。 •true: 需要收税 •false: 不需要收税
状态码
更多状态码信息参考 HTTP 状态码

响应头
  • traceId
    请求的全局唯一标识符。用于追踪请求在系统中的流转,以便于问题发生时进行定位和调试。
响应体
  • draft_orderobject
    草稿单对象。
  • billing_addressobject
    账单地址信息。
  • address1 string
    支付账单地址的第一行。通常是街道地址或邮政信箱编号等信息。 最大长度限制:255
  • address2 string
    支付账单地址的第二行。通常是公寓、套房或单元等信息。 最大长度限制:255
  • area string
    支付账单地址中的行政区名称。
  • area_code string
    支付账单地址中的行政区编码,自定义编号。
  • city string
    支付账单地址的城市。
  • city_code string
    支付账单地址中城市的编码。
  • company string
    支付账单地址的国家/地区。
  • country string
    支付账单地址的国家/地区。
  • country_code string
    支付账单地址的国家/地区编码。 遵循 ISO 3166-1 (alpha 2) 国际标准的二位国家或区域码,用于识别市场所在的国家或地区。
  • email string
    买家的邮箱。
  • first_name string
    买家的名。
  • last_name string
    买家的姓。
  • phone string
    买家的手机号。
  • province string
    支付账单地址中州/省的名称。
  • province_code string
    支付账单地址的国家/地区编码。 遵循 ISO 3166-1 (alpha 2) 国际标准的二位国家或区域码,用于识别市场所在的国家或地区。
  • same_as_receiver boolean
    该地址是否与收货信息相同。 •true: 相同 •false: 不同 默认值:false
  • standard_province_code string
    账单地址中省份的编码,该编码为二位的 ISO 3166-2 国际编码,区别于province_code返参为自定义编码。
  • zip string
    收货地址的邮政编号。
  • create_time long
    草稿单的创建时间。格式:ISO 8601。 例子:2021-08-31T02:20:26+08:00
  • currency string
    店铺币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY 。
  • customerobject
    买家信息。
  • area_code string
    买家联系地址的区号。
  • email string
    买家邮箱。
  • first_name string
    买家的名。
  • id string
    买家的唯一标识符 ID。
  • last_name string
    买家的姓。
  • phone string
    买家的手机号。
  • discount_amount_ext string
    订单优惠金额,精度 2 的 double 类型的字符串。 例如,12.41。
  • discount_amount_ext_name string
    订单优惠名称。
  • discount_amount_ext_setobject
    订单优惠金额,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    卖家收款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家收款金额。数值保留到小数点后两位。
  • currency_code string
    卖家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • id string
    草稿单的唯一标识符 ID。
  • invoice_url string
    发票链接。
  • line_itemsobject[]
    商品信息列表。
  • applied_discountobject
    商品自定义折扣信息。
  • amount string
    折扣金额,精度 2 的double类型的字符串。 例如:12.41
  • amount_setobject
    折扣金额的详细信息,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家收款金额。数值保留到小数点后两位。
  • currency_code string
    卖家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • before_amount string
    商品售价,精度2的double类型的字符串,eg:"12.41"
  • before_amount_setobject
    商品原售价信息,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家收款金额。数值保留到小数点后两位。
  • currency_code string
    卖家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • description string
    折扣描述。
  • title string
    折扣名称。
  • value long
    折扣数额。当折扣类型为 percentage 时,此值最大默认100,最小为0。
  • value_type string
    折扣类型。 •fixed_amount: 固定金额 •percentage: 百分比
  • gift_card boolean
    是否为礼品卡商品。 •true: 是 •false: 不是
  • id string
    商品行 ID, 唯一确认一个商品行。
  • image_url string
    商品图片。
  • price string
    商品参加自定义折扣后的金额。
  • price_setobject
    商品参加自定义折扣后的金额,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家收款金额。数值保留到小数点后两位。
  • currency_code string
    卖家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • product_id string
    商品 SPU 序列号。
  • product_source string
    商品来源。 •main_site: 主站商品 •customize: 自定义商品。
  • propertiesobject[]
    商品定制信息。
  • name string
    自定义属性名称。
  • show boolean
    是否要在前端展示。 •true: 展示 •false: 不展示
  • type string
    属性类型: ● text:文本类型 ● picture:图片类型 ● link:超链接类型
  • urls array
    url 资源列表。
  • value string
    自定义属性值。
  • quantity integer
    商品数量。 取值范围:0-120
  • requires_shipping boolean
    是否需要实物发货。 •true: 需要 •false: 不需要 默认值:false
  • sku string
    商品的 SKU 序列号,商品款式的唯一标识 ID。 最大长度限制:64
  • tax_linesobject[]
    税费信息。
  • name string
    税费名称。
  • price string
    税费金额。
  • price_setobject
    金额信息。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家收款金额。数值保留到小数点后两位。
  • currency_code string
    卖家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • rate double
    税率。如果税率为 2%,请传入 0.02。该信息只做展示作用。 Example: 0.02
  • type string
    税费类型。用于区分商品税和运费税。 product_tax:商品税 shipping_tax:运费税
  • title string
    商品标题。
  • variant_id string
    商品 sku 序列号。
  • variant_title string
    商品 sku 标题。
  • logistics_price string
    运费总金额。
  • logistics_price_setobject
    运费总金额(多币种)。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • logistics_tax string
    运费总税费。
  • logistics_tax_setobject
    运费总税费(多币种)。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • market_name string
    市场名称。
  • market_region_country_code string
    市场国家。
  • note string
    草稿单备注。
  • note_attributesobject[]
    草稿单附加信息。
  • name string
    附加信息的名称。
  • value string
    附加信息的值。
  • payment_termsobject
    支付条款和付款信息。
  • created_at string
    支付条款的创建时间。格式:ISO 8601。 例子:2021-08-31T02:20:26+08:00
  • due_in_days integer
    在选定的付款条件模板中定义的发票日期和到期日之间的天数。
  • id string
    支付条款的唯一识别 ID。
  • overdue boolean
    支付条款是否超时。 •true: 超时 •false: 未超时
  • pay_channel_id string
    支付渠道的 ID。
  • pay_status string
    支付单状态。已支付 paid 草稿单生成订单后,该状态不会同步订单的支付状态。 •unpaid: 支付 •paid: 未支付
  • payment_channel_name string
    支付渠道名称。
  • payment_schedulesobject[]
    与付款条件相关联的一组时间表。
  • completed_at string
    购买完成的日期和时间。最初返回 null,并在捕获付款时更新。
  • due_at string
    付款到期的日期和时间。根据 issued_at 和 due_in_days 计算。如果类型固定,则根据自定义的固定日期计算。
  • issued_at string
    付款条件启动的日期和时间。 格式:ISO 8601。 Example: 2021-08-31T02:20:26+08:00
  • payment_terms_name string
    用于创建付款条件的付款条件模板的名称。
  • payment_terms_type string
    用于创建付款条件的付款条件模板类型: •FIXED: 商家指定日期 •FULFILLMENT: 完成发货日期 •NET: 固定条件日期 •RECEIPT: 发送账单日期 •UNKNOWN: 未知类型
  • updated_at string
    支付条款的更新时间。 格式:ISO 8601。 Example: 2021-08-31T02:20:26+08:00
  • po_number string
    B2B 场景在订单上记录的采购订单号。
  • presentment_currency_code string
    市场币种。
  • product_tax string
    商品总税费。
  • product_tax_setobject
    商品总税费,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家付款金额。数值保留到小数点后两位。
  • currency_code string
    卖家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shipping_addressobject
    收货地址。
  • address1 string
    收货人详细地址的第一行。通常是街道地址或邮政信箱编号等信息。
  • address2 string
    收货人详细地址的第二行。通常是公寓、套房或单元等信息。
  • city string
    收货地址中的城市名称。
  • city_code string
    收货地址中城市的编码,自定义编号。
  • company string
    收货人的公司名称
  • country string
    收货地址的国家/地区。
  • country_code string
    收货地址中国家的二位国家码,遵循 ISO 3611-1 国际标准,例如 US。
  • district string
    收货地址中的行政区名称。
  • district_code string
    收货地址中区的编码,自定义编号。
  • first_name string
    买家的名。
  • last_name string
    买家的姓。
  • phone string
    买家的联系电话。
  • province string
    收货地址中州/省的名称。
  • province_code string
    收货地址中省份/州的编码,该编码可以是自定义编号或者为二位的 ISO 3166-2 国际编码。
  • standard_province_code string
    地址中省份的编码,该编码为二位的 ISO 3166-2 国际编码,区别于province_code返参为自定义编码。
  • zip string
    收货地址邮政编号。
  • shipping_linesobject
    物流信息。
  • delivery_id string
    送货方式ID、运费模板ID。
  • price long
    物流运费,精度2的double类型的字符串。
  • price_setobject
    物流运费(多币种)。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家付款金额。数值保留到小数点后两位。
  • currency_code string
    卖家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shipping_type string
    物流类型: •system : 系统物流 •custom : 自定义物流
  • title string
    物流名称。
  • status integer
    草稿单状态: •completed •open
  • stock_reserved boolean
    订单维度是否有库存预留标识。 •true: 是 •false: 否
  • stock_reserved_time long
    订单维度库存预预留时间。
  • store_id string
    店铺的唯一标识符 ID。
  • tags array
    草稿单标签,多个标签间用逗号分隔,店铺维度最大支持99个标签。
  • tax_linesobject[]
    税费信息。
  • name string
    税费信息名称。
  • price string
    金额。
  • price_setobject
    价格信息。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家付款金额。数值保留到小数点后两位。
  • currency_code string
    卖家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • rate double
    税率。
  • type string
    税费类型。用于区分商品税和运费税。 · product_tax:商品税 · shipping_tax:运费税
  • total_duties_setobject
    总关税。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家付款金额。数值保留到小数点后两位。
  • currency_code string
    卖家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • total_line_items_price string
    当前草稿单商品总金额。
  • total_line_items_price_setobject
    商品总金额。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家付款金额。数值保留到小数点后两位。
  • currency_code string
    卖家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • total_price string
    当前草稿单总金额,商品售价-折扣+税费+运费。
  • total_price_setobject
    草稿单总金额,分别以买家币种金额和店铺币种金额展示。
  • presentment_moneyobject
    买家侧金额。
  • amount string
    买家付款金额。数值保留到小数点后两位。
  • currency_code string
    买家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • shop_moneyobject
    卖家侧金额。
  • amount string
    卖家付款金额。数值保留到小数点后两位。
  • currency_code string
    卖家侧币种。该字段值为三位币种码,遵循 ISO 4217 标准,例如 CNY。
  • update_time long
    草稿单的更新时间。 格式:ISO 8601。 Example: 2021-08-31T02:20:26+08:00
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20260301

ParamOptions

header required

Body

required
{
  "draft_order": {
    "billing_address": {
      "address1": null,
      "address2": null,
      "area": null,
      "area_code": null,
      "city": null,
      "city_code": null,
      "company": null,
      "country": null,
      "country_code": null,
      "email": null,
      "first_name": null,
      "last_name": null,
      "phone": null,
      "province": null,
      "province_code": null,
      "same_as_receiver": null,
      "zip": null
    },
    "calc_sku_stock_mode": "string",
    "customer": {
      "area_code": null,
      "email": null,
      "first_name": null,
      "id": "string",
      "last_name": null,
      "phone": null
    },
    "discount_amount_ext": null,
    "discount_amount_ext_name": null,
    "discountable": null,
    "id": "string",
    "language_info": {
      "customer_language": null,
      "merchant_language": null
    },
    "line_items": [
      {
        "applied_discount": {
          "description": null,
          "title": null,
          "value": null,
          "value_type": null
        },
        "discountable": null,
        "gift_card": null,
        "id": null,
        "price": null,
        "product_id": "string",
        "product_source": "string",
        "properties": [
          {
            "name": null,
            "show": null,
            "type": null,
            "urls": null,
            "value": null
          }
        ],
        "quantity": 0,
        "requires_shipping": null,
        "sku": null,
        "title": null,
        "variant_id": "string"
      }
    ],
    "market_region_country_code": null,
    "note": null,
    "note_attributes": [
      {
        "name": null,
        "value": null
      }
    ],
    "outer_id": null,
    "payment_terms": {
      "pay_channel_id": "string",
      "pay_status": null,
      "payment_channel_name": null
    },
    "shipping_address": {
      "address1": null,
      "address2": null,
      "city": null,
      "city_code": null,
      "company": null,
      "country": null,
      "country_code": null,
      "district": null,
      "district_code": null,
      "first_name": null,
      "last_name": null,
      "phone": null,
      "province": null,
      "province_code": null,
      "zip": null
    },
    "shipping_lines": {
      "delivery_id": null,
      "price": null,
      "shipping_type": "string",
      "title": null
    },
    "stock_reserved": false,
    "stock_reserved_time": null,
    "tags": null,
    "tax_exempt": null
  }
}

Language

curl --request PUT \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20260301/orders/draft_orders.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json'
这篇文章对你有帮助吗?